How to find color matrix for YUV->RGB conversion

How to find color matrix for YUV->RGB conversion

Post by The March » Wed, 21 Jan 2009 12:19:21



I'm not sure what you mean by "color matrix" but here is a good site which
summarizes YUV and RGB types:

http://www.yqcomputer.com/

In dshow, if you look at the video media subtype GUID, the first four bytes
tell you the FourCC.

Here is an overview of conversions:

http://www.yqcomputer.com/

--
Please read this before replying:
1. Dshow & posting help: http://www.yqcomputer.com/
2. Trim & respond inline (please don't top post or snip everything)
3. Benefit others: follow up if you are helped or you found a solution
 
 
 

How to find color matrix for YUV->RGB conversion

Post by Qm9i » Wed, 21 Jan 2009 12:38:02

Thanks for the reply.

I'm aware of the fourcc and the data format. But to convert YUV to RGB, you
must know a transformation matrix from YUV space to RGB space. There are
several different standards, so I am not sure how to determine which
transformation matrix to use. The only one I know of for sure is that 'HDYC'
is 709, but the others I am not clear. Or are they 601 (or something else)
always, like HDYC is always 709?

 
 
 

How to find color matrix for YUV->RGB conversion

Post by Tim Robert » Fri, 23 Jan 2009 13:51:02


I seriously doubt that.

Remember, in most cases when you are playing a movie for live viewing, the
YUV can be sent directly to an overlay or texture surface. In that case,
your converting it to RGB is just a waste of cycles that causes information
to be lost.
--
Tim Roberts, XXXX@XXXXX.COM
Providenza & Boekelheide, Inc.