Intel IPP Integration Wrappers Developer Guide and Reference

ID 751823
Date 1/18/2023
Public
Document Table of Contents

iwiResize

IW_DECL(IppStatus) iwiResize(
    const IwiImage         *pSrcImage,
    IwiImage               *pDstImage,
    IppiInterpolationType   interpolation,
    const IwiResizeParams  *pParams,
    IwiBorderType           border,
    const Ipp64f           *pBorderVal,
    const IwiTile          *pTile
);

Parameters

pSrcImage

Pointer to the source image.

pDstImage

Pointer to the destination image.

interpolation

Interpolation method. Supported values are ippNearest, ippLinear, ippCubic, ippLanczos, and ippSuper.

pParams

Pointer to the optional parameters structure. If NULL, the default parameters are used.

border

Extrapolation algorithm for out of image pixels processing. Supported values:

ippBorderConst

Values of all border pixels are set to a constant.

ippBorderRepl

Border is replicated from the edge pixels.

ippBorderMirror

Border pixels are mirrored from the source image boundary pixels.

ippBorderInMem

Border is obtained from the source image pixels in memory.

pBorderVal

Pointer to an array of values to assign to pixels of the constant border, one element of the array for each channel of the image. This parameter is applicable only to the ippBorderConst border type and can be NULL for other border types.

pTile

Pointer to the IwiTile structure for tiling. If NULL, the whole image is processed.

Description

This function performs resize oparation on a given ROI.

This function supports the following features:

Feature Support
Internal threading Yes (check the IW_ENABLE_THREADING_LAYER definition)
Manual tiling No
IwiTile simple tiling Yes
IwiTile pipeline tiling No

Return Values

ippStsNoErr

No errors.

ippStsSizeErr

Values of the size fields are illegal.

ippStsBorderErr

The border value is illegal.

ippStsDataTypeErr

The dataType value is illegal.

ippStsNumChannelsErr

The channels value is illegal.

ippStsNotEvenStepErr

The srcStep and/or dstStep value is not divisible by size of elements.

ippStsInplaceModeNotSupportedErr

In-place operation is not supported: pSrc is equal to pDst.

ippStsNotSupportedModeErr

Specified combination of parameters' values is not supported.

ippStsNoMemErr

Failed to allocate memory.

ippStsNullPtrErr

At least one of the pointers (except pTile and pBorderVal) is NULL.

ippStsNoOperation

Warning: width and/or height of the image is equal to zero.