InterpolateChromaBottom_H264

Performs interpolation for motion estimation of the chroma component at the frame bottom boundary.

Syntax

IppStatus ippiInterpolateChromaBottom_H264_8u_C1R(const Ipp8u* pSrc, Ipp32s srcStep, Ipp8u* pDst, Ipp32s dstStep, Ipp32s dx, Ipp32s dy, Ipp32s outPixels, IppiSize roiSize);

IppStatus ippiInterpolateChromaBottom_H264_16u_C1R(const IppVCInterpolate_16u* interpolateInfo, Ipp32s outPixels);

Parameters

pSrc

Pointer to the source.

srcStep

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

pDst

Pointer to the destination.

dstStep

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

dx, dy

Fractional parts of the motion vector in 1/8 pel units (0, 1, ..., 7).

outPixels

Number of pixels by which the data specified by pSrc reaches over the frame bottom boundary.

roiSize

Flag that specifies the dimensions of the region of interest (could be 16, 8, 4 or 2 in height dimension and 8, 4 or 2 in width dimension). See structure IppiSize.

interpolateInfo

Pointer to the IppVCInterpolate_16u structure.

Description

The functions ippiInterpolateChromaBottom_H264_8u_C1R and ippiInterpolateChromaBottom_H264_16u_C1R are declared in the ippvc.h file. These functions perform interpolation for motion estimation of the chroma component near the bottom boundary of the frame in accordance with 8.4.2.2.2 of [JVTG050]. Instead of data lines located in the invalid area, the closest line in the valid area is used.

The functions use only the fractional part of the motion vector. The integer part is used when finding the position (pointed to by pSrc) in the source frame.

See Example “Usage of ippiInterpolateChroma_H264” for a usage example.

Figure "Chroma Interpolation at Bottom Boundary" shows the data specified by pSrc in interpixel interpolation at the picture top boundary.

Chroma Interpolation at Bottom Boundary



Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error condition if at least one of the specified pointers is NULL.

ippStsStepErr

Indicates an error condition if srcStep value is less than 16.

ippStsBadArgErr

Indicates an error condition if dx or dy values fall outside [0,3].

ippStsSizeErr

Indicates an error condition if roi.width or roi .height take values other than {16, 8, 4}.


Submit feedback on this help topic

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