Intel® Integrated Performance Primitives Developer Guide and Reference

ID 790148
Date 11/07/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

ResizeYCbCr422

Performs resizing of a 4:2:2 two-channel image.

Syntax

IppStatus ippiResizeYCbCr422_8u_C2R(const Ipp8u* pSrc, IppiSize srcSize, int srcStep, IppiRect srcROI, Ipp8u* pDst, int dstStep, IppiSize dstRoiSize, int interpolation, Ipp8u* pBuffer);

Include Files

ippi.h

Domain Dependencies

Headers: ippcore.h, ippvm.h, ipps.h

Libraries: ippcore.lib, ippvm.lib, ipps.lib

Parameters

pSrc

Pointer to the source image.

srcSize

Size, in pixels, of the source image.

srcStep

Distance, in bytes, between the starting points of consecutive lines in the source image buffer.

srcROI

Region of interest in the source image.

pDst

Pointer to the destination image ROI.

dstStep

Distance, in bytes, between the starting points of consecutive lines in the destination image buffer.

dstRoiSize

Size of the destination ROI in pixels.

interpolation

Type of interpolation to apply to the source image:

IPP_INTER_NN

Nearest neighbor interpolation

IPP_INTER_LINEAR

Linear interpolation

IPP_INTER_CUBIC

Cubic interpolation

IPPI_INTER_CUBIC2P_CATMULLROM

Catmull-Rom cubic filter

IPP_INTER_LANCZOS

Lanczos filter with size 6x6

pBuffer

Pointer to the external buffer.

Description

This function operates with ROI (see ROI Processing in Geometric Transforms).

This function resizes the source image ROI to the destination image ROI origin. The function performs resampling of the result using the interpolation mode specified by the interpolation parameter, and stores it in the destination image ROI.

The source image is a two-channel image in the 4:2:2 sampling format in color spaces with decoupled luminance and chrominance components, for example, YUV422 or YCrCb422.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error if pSrc, pDst, or pBuffer is NULL.

ippStsSizeErr

Indicates an error in the following cases:
  • width of either source or destination ROI is less than 2

  • height of either source or destination ROI is less than 1

ippStsDoubleSize

Indicates a warning if width of wither source or destination ROI is not a multiple of 2.

ippStsInterpolationErr

Indicates an error if interpolation has an illegal value.

ippStsWrongIntersectROI

Indicates a warning if srcROI does not intersect with the source image; no operation is required.