Developer Reference

  • 2020
  • 10/21/2020
  • Public Content
Contents

WarpGetBufferSize

Computes the size of the work buffer for the warp transform.

Syntax

IppStatus ippiWarpGetBufferSize(
const IppiWarpSpec*
pSpec
, IppiSize
dstRoiSize
, int*
pBufSize
);
Include Files
ippi.h
Flavors with the
_L
suffix:
ippi_l.h
Domain Dependencies
Headers:
ippcore.h
,
ippvm.h
,
ipps.h
Libraries:
ippcore.lib
,
ippvm.lib
,
ipps.lib
Parameters
pSpec
Pointer to the specification structure for the warp operation.
dstRoiSize
Size of the processed destination image ROI, in pixels.
pBufSize
Pointer to the size of the external buffer, in bytes.
Description
This function computes the size of the external buffer for the warp transform. The specification structure pointed by
pSpec
defines the warp algorithm parameters.
Before using this function, you need to initialize the specification structure using one of the following functions: WarpAffineNearestInit, WarpAffineLinearInit, or WarpAffineCubicInit.
Return Values
ippStsNoErr
Indicates no error.
ippStsNullPtrErr
Indicates an error when one of the specified pointers is
NULL
.
ippStsContextMatchErr
Indicates an error when the specification structure is invalid.
ippStsSizeErr
Indicates an error in the following cases:
  • If width or height of the destination image is negative
    , or equal to zero
    .
  • If the calculated buffer size exceeds the maximum positive
    pBufSize
    data type. The size of the processed image ROI is too large.
ippStsSizeWrn
Indicates a warning when the size of the destination image is more than the size of the destination image origin.

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804