This is a follow up question to this thread. I have now managed to just rotate the UV components (chroma) without touching luma... sort of.
I convert from RGB to YUV using this solution, change the UV values and convert back to RGB.
However, the luma still seems to be affected - not sure why though. It doesn't seem to be limited to my code either - there's probably something that goes on that I don't understand about - as I see this happening in other VirtualDub plugins (such as Donald Graft's hue plugin).
To give you an example, I have rotated chroma randomly with different values on each line. The image here shows this.
The top left corner is the original image. The two images on the right are U and V and bottom left is the Y component (luma). As you can see, in this section, the brightly coloured luma parts are affected by the chroma change. Any ideas why this is? Is this to do with clipping in the RGB colour space or something else? And is there a way to overcome this?