Intel® Integrated Performance Primitives
Community support and discussions relating to developing high-performance vision, signal, security, and storage applications.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
For the latest information on Intel’s response to the Log4j/Log4Shell vulnerability, please see Intel-SA-00646
6600 Discussions

Converting from pixel-order (C3) to planar (P3) data ?

gari154
Beginner
123 Views
Hi all,

I have a little problem to convert image color from pixel-order RGB to planar data YCbCr. Anybody know how to do that ? I need your suggestions.

Thanks,

Gunawan
0 Kudos
3 Replies
Vladimir_Dudnik
Employee
123 Views
Hi Gunawan
to find any particular functions in Image Processing domain. For example, convertion like you mention can be done with using the following functions (described in ippi.h file)
Code:
/* Pixel to Plane */
IPPAPI(IppStatus, ippiRGBToYUV_8u_C3P3R,( const Ipp8u* pSrc, int srcStep ,
       Ipp8u* pDst[3], int dstStep, IppiSize roiSize))
/* Plane to Pixel */
IPPAPI(IppStatus, ippiYUVToRGB_8u_P3C3R,(const Ipp8u* const pSrc[3], int srcStep,
       Ipp8u* pDst, int dstStep, IppiSize roiSize))
Regards,
Vladimir
gari154
Beginner
123 Views
Hi Vladimir,

Thanks for your suggestion. However I think YUV and YCbCr are different( based on the convertion formula on IPP reference manual ). I found "C3P3R" on RGBToYUV but not on RGBToYCbCr.

Thanks,
Gunawan
Vladimir_Dudnik
Employee
123 Views
You are right, there might be difference between YUV and YCbCr (depends how you define these color spaces). The exact formulae used in this functions are described in IPP documentation. By the way, we also have ippiRGBToYCbCr_JPEG_8u_C3P3R function in ippJP library (see ippj.h file)
Regards,
Vladimir
Reply