Performs forward irreversible component transformation.
Case 1: Operation on pixel-order data
IppStatus ippiICTFwd_JPEG2K_32f_C3P3R(const Ipp32f* pSrc, int srcStep, Ipp32f* pDst[3], int dstStep, IppiSize roiSize);
Case 2: In-place operation on planar data
IppStatus ippiICTFwd_JPEG2K_<mod>(Ipp<dataype>* pSrcDst[3], int srcDstStep, IppiSize roiSize);
Supported values for mod:
16s_P3IR | 32s_P3IR | 32f_P3IR |
pSrc |
Pointer to the source image ROI. |
srcStep |
Distance in bytes between starts of consecutive lines in the source image. |
pDst |
Pointer to the array of pointers to ROIs in the planes of the destination image. |
dstStep |
Distance in bytes between starts of consecutive lines in the destination image. |
pSrcDst |
Pointer to the array of pointers to the source and destination image ROIs for the in-place operation. |
dstSrcStep |
Distance in bytes between starts of consecutive lines in the source and destination image buffer for the in-place operation. |
roiSize |
Size of the source and destination ROI in pixels. |
The function ippiICTFwd_JPEG2K is declared in the ippj.h file. It operates with ROI (see Regions of Interest in Intel IPP).
This function performs forward irreversible component transformation (ICT) of the image buffer pSrc. The ICT is applied to all image component samples I0, I1, I2, corresponding to the first, second, and third components, and produces the transform samples Y0, Y1, Y2 in accordance with the following formulas:
Y0 = 0.299*I0 + 0.587*I1 + 0.114*I2
Y1 = -0.16875*I0 - 0.33126*I1 + 0.5*I2
Y2 = 0.5*I0 - 0.41869*I1 - 0.08131*I2
If the first three components are Red, Green and Blue components, then the forward ICT is of a YCbCr transformation.
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error when 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 any of the specified buffer step values is zero or negative. |
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.