SpatialInterpolation_H263

Interpolates a picture by a factor of two horizontally, vertically, or both horizontally and vertically.

Syntax

IppStatus ippiSpatialInterpolation_H263_8u_C1R(const Ipp8u* pSrc, int srcStep, IppiSize srcRoiSize, Ipp8u* pDst, int dstStep, int interpType);

Parameters

pSrc

Pointer to the origin of the source image region of interest (ROI).

srcStep

Width in bytes of the source image plane, that is, distance in bytes between the starting ends of consecutive lines of the source image.

srcRoiSize

Size of the source ROI.

pDst

Pointer to the origin of the destination image ROI.

dstStep

Width in bytes of the destination image plane.

interpType

Interpolation type, takes one of the following values:

IPPVC_INTERP_HORIZONTAL,

indicating one-dimensional (1-D) horizontal interpolation,

IPPVC_INTERP_VERTICAL,

indicating 1-D vertical interpolation,

IPPVC_INTERP_2D,

indicating 2-D interpolation.

See the corresponding enumerator in the introduction to the General Functions.

Description

The function ippiSpatialInterpolation_H263_8u_C1R is declared in the ippvc.h header file. This function performs picture interpolation for 1-D or 2-D spatial scalability, as specified in [ITUH263], Annex O, clause O.6. Depending on interpType, the source image ROI is interpolated by a factor of 2 either horizontally, vertically, or both horizontally and vertically, the size of the destination image ROI being equal to the size of the source image ROI multiplied by 2 in the direction(s) for which the interpolation is performed.

This function is used in the H.263 decoder included into Intel IPP Samples. See introduction to H.263.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

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

ippStsSizeErr

Indicates an error condition if srcRoiSize has a field that is odd or less than 4.


Submit feedback on this help topic

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