Convert 16-bit per pixel image to the 24-bit image.
IppStatus ippiRGB565ToRGB_16u8u_C3R(const Ipp16u* pSrc, int srcStep, Ipp8u* pDst, int dstStep, IppiSize roiSize);
IppStatus ippiBGR565ToBGR_16u8u_C3R(const Ipp16u* pSrc, int srcStep, Ipp8u* pDst, 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 |
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 ippiRGB565ToRGB and ippiBGR565ToBGR are declared in the ippcc.h file. They operate with ROI (see Regions of Interest in Intel IPP).
These functions convert the 16-bit per pixel gamma-corrected R'G'B' (B'G'R') image pSrc to the 24-bit image pDst. The source image has a packed format RGB565 (BGR565), that is all 3 channel intensities for a pixel are packed into two consecutive bytes (16u data type) in the following order: 5 bits for blue, 6 bits for green, 5 bits for red (see Figure Converting an RGB Image to Gray Scale for more details).
ippStsNoErr |
Indicates no error. Any other value indicates an error. |
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. |
ippStsStepErr |
Indicates an error condition if one of srcStep or dstStep is less than or equal to 0. |
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.