Haithem,

Thanks for pointing out that macro. I wasn't aware of it. Unfortunately, it 
doesn't actually indicate the colorspace. It indicates if the format is RGB or 
YUV (and if it is YUV, then assumes it is BT601). How do you tell the 
difference between a surface that is BT601 and BT709? I believe the attached 
patch is the only way in order to get the complete information. Although I 
would be more than happy to be wrong. :)

Regards,
Bryce

From: haithem rahmani [mailto:[email protected]]
Sent: Saturday, May 19, 2012 10:04 AM
To: Poole, Bryce
Cc: [email protected]
Subject: Re: [directfb-dev] [PATCH] Added GetColorSpace to the IDirectFBSurface 
interface.

Hi,
On Fri, May 18, 2012 at 9:46 PM, Poole, Bryce 
<[email protected]<mailto:[email protected]>> wrote:
I needed a way to determine the colorspace of a surface. So I added a 
GetColorSpace API call to the IDirectFBSurface. I have attached the patch that 
I made from the repository head.


You can call the IDirectFBSurface::GetPixelFormat(), then call  the macro 
DFB_COLORSPACE_DEFAULT to get the colorspace.

HtH

regards
Haithem.

--
Never say that's "impossible", the word itself says "I'm Possible"

_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to