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:haithem.rahm...@gmail.com]
Sent: Saturday, May 19, 2012 10:04 AM
To: Poole, Bryce
Cc: directfb-dev@directfb.org
Subject: Re: [directfb-dev] [PATCH] Added GetColorSpace to the IDirectFBSurface 
interface.

Hi,
On Fri, May 18, 2012 at 9:46 PM, Poole, Bryce 
<bryce.po...@intel.com<mailto:bryce.po...@intel.com>> 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
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to