Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

Converting from pixel to planar format

Anonymous63
Beginner
690 Views

Hi,

I'm having trouble converting 4:1:1 pixel format to planar P3 format.  What are the functions that I can use for this conversion? 

Thanks,

 

0 Kudos
3 Replies
Ying_H_Intel
Employee
690 Views

Hello,

Here is the related API in IPP.  but  In general, the 4:1:1 are stored by 2 planar ( Y planar and  interleaved chrominance plane) or 3 Planar.  Could you please say more about converting 4:1:1 pixel format?

YCbCr411

Converts 4:1:1 YCbCr image.
Syntax
IppStatus ippiYCbCr411_8u_P3P2R(const Ipp8u* pSrc[3], int srcStep[3], Ipp8u* pDstY, int
dstYStep, Ipp8u* pDstCrCb, int dstCbCrStep, IppiSize roiSize);
IppStatus ippiYCbCr411_8u_P2P3R(const Ipp8u* pSrcY, int srcYStep, const Ipp8u*
pSrcCrCb, int srcCrCbStep, Ipp8u* pDst[3], int dstStep[3], IppiSize roiSize);

Best Regards

Ying

0 Kudos
Anonymous63
Beginner
690 Views

Hi Ying,

If the pixel format is in the form of YYCbYYCr ...etc, is there a combination of steps i can use to convert this to planar P2 or P3 format?

Thanks!

0 Kudos
Sergey_P_Intel1
Employee
690 Views

Hi,

Unfortunately,  there is no functions to convert from your format to YCbCr411 plain format.

Sergey.

0 Kudos
Reply