RangeMapping_VC1

Performs range map transformation.

Syntax

IppStatus ippiRangeMapping_VC1_8u_C1R( const Ipp8u* pSrc, Ipp32s srcStep, Ipp8u* pDst, Ipp32s dstStep, IppiSize roiSize, Ipp32s rangeMapParam );

Parameters

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].

Description

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);

Return Values

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].


Submit feedback on this help topic

Copyright © 2000 - 2010, Intel Corporation. All rights reserved.