Converts 16-bit per pixel YCbCr image to 24-bit per pixel RGB image.
Case 1: Operation on pixel-order data
IppStatus ippiYCbCr422ToRGB_JPEG_8u_C2C3R(const Ipp8u* pSrc, int srcStep, Ipp8u* pDst, int dstStep, IppiSize roiSize);
Case 2: Operation on planar data
IppStatus ippiYCbCr422ToRGB_JPEG_8u_P3C3R(const Ipp8u* pSrc[3], int srcStep[3], Ipp8u* pDst, int dstStep, IppiSize roiSize);
IppStatus ippiYCbCr422ToRGB_JPEG_8u_P3C4R(const Ipp8u* pSrc[3], int srcStep[3], Ipp8u* pDst, int dstStep, IppiSize roiSize, Ipp8u aval);
pSrc |
Pointer to the source image ROI. Array of pointers to ROI in each plane of the planar source image. |
srcStep |
Distance in bytes between starts of consecutive lines in planes of the source image. Array of distance values in each plane of the planar source image. |
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. |
aval |
Constant value to create the fourth channel. |
The function ippiYCbCr422ToRGB_JPEG is declared in the ippj.h file. It operates with ROI (see Regions of Interest in Intel IPP).
This function converts an YCbCr image pSrc, packed in 4:2:2 sampling format (see Figure “Different JPEG Sampling Formats” for more details) to the RGB image pDst according to the same formulas as the function ippiYCbCrToRGB_JPEG does. The output RGB values are saturated to the range [0..255].
ippStsNoErr |
Indicates no error. Any other value indicates an error or a warning. |
ippStsNullPtrErr |
Indicates an error condition if pSrc or pDst pointer is NULL. |
ippStsSizeErr |
Indicates an error condition if roiSize has a field with zero or negative value. |
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.