Converts an BGR image to 4:1:1 YCbCr color model.
IppStatus ippiBGRToYCbCr411_JPEG_8u_C3P3R(const Ipp8u* pSrc, int srcStep, Ipp8u* pDst[3], int dstStep[3], IppiSize roiSize);
IppStatus ippiBGRToYCbCr411_JPEG_8u_C4P3R(const Ipp8u* pSrc, int srcStep, Ipp8u* pDst[3], int dstStep[3], IppiSize roiSize);
pSrc |
Pointer to the source image ROI. |
srcStep |
Distance in bytes between starts of consecutive lines in the source image. |
pDst |
Array of pointers to the ROI in each plane of the destination image. |
dstStep |
Array of distance values in bytes between starts of consecutive lines in each planes of the destination image. |
roiSize |
Size of the source and destination ROI in pixels. |
The function ippiBGRToYCbCr411_JPEG is declared in the ippj.h file. It operates with ROI (see Regions of Interest in Intel IPP).
This function converts an BGR image to the YCbCr color model and stores results in pDst packed in 4:1:1 sampling format (see Figure “Different JPEG Sampling Formats” for more details).
The function performs color conversion using the following formulas:
Y = 0.299*R + 0.587*G + 0.114*B
Cb = -0.16874*R - 0.33126*G + 0.5*B + 128
Cr = 0.5*R - 0.41869*G - 0.08131*B + 128
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error condition if any of the specified pointers is NULL. |
ippStsSizeErr |
Indicates an error condition if roiSize has a field with zero or negative value. |
ippStsStepErr |
Indicates an error condition if srcStep or dstStep has a zero or negative value. |
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.