Create an YCbCr image from 411 MCU and convert it to the BGR color model.
IppStatus ippiYCbCr411ToBGR565LS_MCU_16s16u_P3C3R(const Ipp16s* pSrcMCU[3], Ipp16u* pDstBGR, int dstStep);
IppStatus ippiYCbCr411ToBGR555LS_MCU_16s16u_P3C3R(const Ipp16s* pSrcMCU[3], Ipp16u* pDstBGR, int dstStep);
pSrcMCU |
Array of 3 pointers to the source image blocks. |
pDstBGR |
Pointer to the destination image ROI. |
dstStep |
Distance in bytes between starts of consecutive lines in the destination image. |
The functions ippiYCbCr411ToBGR565LS_MCU and ippiYCbCr411ToBGR555LS_MCU are declared in the ippj.h file. They operate with ROI (see Regions of Interest in Intel IPP). These functions create YCbCr 8x8 image from 411 MCU (see Figure “MCU Structure for Different JPEG Sampling Formats”) and convert it to the BGR format using the same formulas as the ippiYCbCrToRGB_JPEG function for computing B, G, and R component values. Upsampling is performed by replication of the neighbor value.
Additionally, the functions convert data from the signed Ipp16s range [-128..127] to the unsigned Ipp8u range [0..255] performing level shift operation (by adding 128). The destination image pDstBGR has a reduced bit depth of 16 bits per pixel (see Figure “16-bit pixel formats”), and it can be in one of two possible formats : BGR565 (5 bits for blue, 6 bits for green, 5 bits for red), or BGR555 (5 bits for blue, green, red).
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error condition if any of the specified pointers is NULL. |
ippStsStepErr |
Indicates an error condition if dstStep has a zero or negative value. |
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.