Convert a YCbCr image that has 4:1:1 sampling format to the 16-bit per pixel BGR image.
IppStatus ippiYCbCr411ToBGR565_8u16u_P3C3R(const Ipp8u* pSrc[3], int srcStep[3], Ipp16u* pDst, int dstStep, IppiSize roiSize);
IppStatus ippiYCbCr411ToBGR555_8u16u_P3C3R(const Ipp8u* pSrc[3], int srcStep[3], Ipp16u* pDst, int dstStep, IppiSize roiSize);
pSrc |
An array of pointers to ROI in separate planes of the source image. |
srcStep |
An array of distances in bytes between starts of consecutive lines in the source image planes. |
pDst |
Pointer to the destination image ROI. |
dstStep |
Distance in bytes between starts of consecutive lines in the destination image. |
roiSize |
Size of the source and destination ROI in pixels. |
The functions ippiYCbCr411ToBGR565 and ippiYCbCr411ToBGR555 are declared in the ippcc.h file. They operate with ROI (see Regions of Interest in Intel IPP).
These functions convert the planar Y'Cb'Cr' image pSrc, packed in 4:1:1 sampling (see Table “Planar Image Formats” for more details), to the gamma-corrected B'G'R' image pDst according to the same formulas as the function ippiYCbCrToRGB does.
The destination image pDst is a packed 16-bit BGR image with reduced bit depth; all 3 channel intensities for a pixel are packed into two consecutive bytes (16u data type). It can be in one of two possible formats (see Figure 16-bit Pixel Formats for more details): BGR565 (5 bits for blue, 6 bits for green, 5 bits for red) and BGR555 (5 bits for blue, green, red).
ippStsNoErr |
Indicates no error. Any other value indicates an error or a warning. |
ippStsNullPtrErr |
Indicates an error condition if pSrc or pDst is NULL. |
ippStsSizeErr |
Indicates an error condition if roiSize has a field with a zero or negative value. |
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.