Performs range map transformation.
IppStatus ippiRangeMapping_VC1_8u_C1R( const Ipp8u* pSrc, Ipp32s srcStep, Ipp8u* pDst, Ipp32s dstStep, IppiSize roiSize, Ipp32s rangeMapParam );
pSrc |
Pointer to the source block. Block coefficient could be within the range of [0, 255]. |
srcStep |
Distance in bytes between starts of the consecutive lines in the source block. |
pDst |
Pointer to the destination block. |
dstStep |
Distance in bytes between starts of the consecutive lines in the destination block. |
roiSize |
Size of the source block. |
rangeMapParam |
Parameter for the range map; should be within the range of [0, 7]. |
The function ippiRangeMapping_VC1_8u_C1R is declared in the ippvc.h file. The function performs range map transformation according to 6.2.15.1 of [SMPTE421M].
the function calculates each coefficient of the source block as follows:
Y[n]=CLIP((((Y[n]-128)*(RANGE_MAPY + 9) + 4) >> 3) + 128);
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error condition when pSrc or pDst is NULL. |
ippStsOutOfRangeErr |
Indicates an error condition if rangeMapParam is out of the range [0, 7]. |
Copyright © 2000 - 2010, Intel Corporation. All rights reserved.