Click to See Complete Forum and Search --> : YCC colorspace conversion


HotChick
August 18th, 2005, 09:42 PM
Hi guys,

Im using microsoft directshow. My task is to convert all image colorspace to YCbCr. My question is, when I get a YUY2 mediasubtype image, is this really in YUV format? I have read that YUV and YCbCr are similar but not identical. YUV is for analog while YCbCr is for digital. With this, I can't seem to find formulas for converting YUV to YCbCr. Can anybody help me with this? thanks!

Hacker2
August 18th, 2005, 09:54 PM
Here are all the conversion formulas.
http://www.easyrgb.com/math.php?MATH=M18

as to whether it is right or not, this is easy:
1) take a guess as to which format it is.
2) Convert it from that format to a known type, such as RGB
3) Display it on the screen,
4) If it looks right, you made the right guess.
5) If not, check your code for bugs, or try another format.