Convert a BGR image to YCbCr color model.
IppStatus ippiBGR565ToYCbCr_JPEG_16u8u_C3P3R(const Ipp16u* pSrc, int srcStep, Ipp8u* pDst[3], int dstStep, IppiSize roiSize);
IppStatus ippiBGR555ToYCbCr_JPEG_16u8u_C3P3R(const Ipp16u* pSrc, int srcStep, Ipp8u* pDst[3], int dstStep, IppiSize roiSize);
pSrc |
Pointer to the source image ROI. |
srcStep |
Distance in bytes between starts of consecutive lines in the source image. |
pDst |
An array of pointers to the ROIs in the separate destination color planes. |
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 ippiBGR555ToYCbCr_JPEG and ippiBGR555ToYCbCr_JPEG are declared in the ippj.h file. They operate with ROI (see Regions of Interest in Intel IPP).
These functions convert an BGR image to the YCbCr image using the same formulas as in ippiRGBToYCbCr_JPEG function for computing Y, Cb, and Cr component values.The source image pSrcBGR 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. |
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.