Intel® Integrated Performance Primitives (Intel® IPP) Developer Guide and Reference

ID 790148
Date 3/22/2024
Public
Document Table of Contents

ResizeSuperShiftInit

Initializes the specification structure for image resizing with the super sampling interpolation method and floating point shifts.

Syntax

IppStatus ippiResizeSuperInit_<mod>(IppiSize srcSize, IppiSize dstSize, Ipp64f xShift, Ipp64f yShift, IppiBorderType borderType, const Ipp8u * borderVal, int smoothEdge, int numChannels, IppiResizeSpec_32f* pSpec);

Supported values for mod:

8u

16u

16s

32f

Include Files

ippi.h

Domain Dependencies

Flavors declared in ippi.h:

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

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

Parameters

srcSize

Size, in pixels, of the source image.

dstSize

Size, in pixels, of the destination image.

xShift

Shift value in the x direction.

yShift

Shift value in the y direction.

borderType

Type of border. Supported values: ippBorderTransp. Outer pixels are not processed.

borderVal

Not used. This parameter is applicable only to the ippBorderConst border type.

smoothEdge

Flag for edge smoothing. Supported values:

0 - transformation without edge smoothing.

1 - transformation with edge smoothing.

pSpec

Pointer to the specification structure for the resize filter.

numChannels

Number of channels. Possible values are 1, 3, and 4.

Description

This function initializes the specification structure for the resize algorithm with the super sampling interpolation method. To calculate the size of the specification structure, call the ippiResizeGetSize function.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

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

ippStsNoOperation

Indicates a warning if:

- width or height of the destination image is equal to zero.

- smoothing edge is on and width or height of the destination image is equal to one.

ippStsSizeErr

Indicates an error in the following cases:
  • Indicates that one of the specified dimensions of the source image is less than the corresponding dimension of the destination image, or that the width or height of the source or destination image is negative.

  • If the width or height of the source or destination image is negative.

ippStsExceededSizeErr

Indicates an error If width or height of the source or destination image exceeds 33554431 (0x1FFFFFF) (only for platform-aware and TL functions).

ippStsDataTypeErr

Indicates an error if dataType has an illegal value.

ippStsNumChannelsErr

Indicates an error if the number of channels is not supported.

ippStsBorderErr

Indicates an error if specified borderType is not supported.

See Also