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 isNULL.
- 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 positivepBufSizedata 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.