ResizeYUV420GetBufSize

Computes the size of the external buffer for resizing a 4:2:0 two-plane image.

Syntax

IppStatus ippiResizeYUV420GetBufSize(IppiSize srcRoiSize, IppiSize dstRoiSize, int interpolation, int* pSize);

Parameters

srcRoiSize

Size of the source image ROI in pixels.

dstRoiSize

Size of the destination ROI in pixels.

interpolation

Specifies the interpolation mode. Use one of the following values:

IPPI_INTER_LANCZOS

interpolation with Lanczos window

IPPI_INTER_SUPER

supersampling interpolation, cannot be applied for image enlarging

pSize

Pointer to the size of the work buffer.

Description

The function ippiResizeYUV400GetBufSize is declared in the ippi.h file. It operates with ROI (see ROI Processing in Geometric Transforms).

This function computes the size of the external buffer that is required for the function ippiResizeYUV420.

Return Values

ippStsNoErr

Indicates no error. Any other value indicates an error.

ippStsNullPtrErr

Indicates an error condition if the pSize pointer is NULL.

ippStsSizeErr

Indicates an error condition if width or height of srcRoiSize or dstRoiSize is less than 2; or if width or height of the srcRoiSize is less than corresponding field of dstRoiSize for supersampling.

ippStsInterpolationErr

Indicates an error condition if interpolation has an illegal value.

ippStsDoubleSize

Indicates a warning if width or height of the srcRoiSize is odd.

Submit feedback on this help topic

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