InterpolateAverage8x4, InterpolateAverage8x8, InterpolateAverage16x8, InterpolateAverage16x16

Interpolate source block according to half-pixel offset and average the result with destination block.

Syntax

IppStatus ippiInterpolateAverage8x4_8u_C1IR(const Ipp8u* pSrc, int srcStep, Ipp8u* pSrcDst, int srcDstStep, int acc, int rounding);

IppStatus ippiInterpolateAverage8x8_8u_C1IR(const Ipp8u* pSrc, int srcStep, Ipp8u* pSrcDst, int srcDstStep, int acc, int rounding);

IppStatus ippiInterpolateAverage16x8_8u_C1IR(const Ipp8u* pSrc, int srcStep, Ipp8u* pSrcDst, int srcDstStep, int acc, int rounding);

IppStatus ippiInterpolateAverage16x16_8u_C1IR(const Ipp8u* pSrc, int srcStep, Ipp8u* pSrcDst, int srcDstStep, int acc, int rounding);

Parameters

pSrc

Pointer to the source block.

srcStep

Distance in bytes between starts of the consecutive lines in the source block.

pSrcDst

Pointer to the destination block.

srcDstStep

Distance in bytes between starts of the consecutive lines in the destination block.

acc

Parameter that determines half-pixel offset.

rounding

Parameter that determines type of rounding for pixel interpolation; may be 0 or 1.

Description

The functions ippiInterpolateAverage8x4_8u_C1IR, ippiInterpolateAverage8x8_8u_C1IR, ippiInterpolateAverage16x8_8u_C1IR, and ippiInterpolateAverage16x16_8u_C1IR are declared in the ippvc.h file. These functions interpolate the source block according to half-pixel offset and average the result with the destination block. Parameters rounding has the meaning as RTYPE in [ITUH263] and vop_rounding_type in [ISO14496]. Parameter acc is a two-bit value. Bit 0 defines half-pixel offset in horizontal direction and bit 1 defines half-pixel offset in vertical direction. These functions are used in MPEG-2 encoder and decoder included into Intel IPP Samples together with functions Copy8x4HP, Copy8x8HP, Copy16x8HP, Copy16x16HP for bidirectional motion compensation. See introduction to Motion Compensation.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error when at least one input pointer is NULL.


Submit feedback on this help topic

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