I am currently developing a Metro Style App which uses an MFT (Media Foundation Transform) to filter the webcam's video stream into grayscale, as demonstrated in this sample.
However, now I want to apply other types of filters, such as exposure, hue, luminance, texture, vignette, etc. This answer says I am supposed to modify the TransformChroma method in order to achieve this. Unfortunately, I can't figure out how to get the Y value, I can only get the U and V. How do I get the Y value in the formats NV12, YUY2, and UYVY?
All help is greatly appreciated and I always accept an answer!