iwiResize_InitAlloc
iwiResize_InitAlloc
Syntax
IW_DECL(IppStatus) iwiResize_InitAlloc(
IwiResizeSpec **pSpec,
IppiSize srcSize,
IppiSize dstSize,
IppDataType dataType,
int channels,
IppiInterpolationType interpolation,
const IwiResizeParams *pParams,
IppiBorderType border
);
Parameters
- pSpec
- Double pointer to the Resize specification structure to be initialized.
- srcSize
- Size of the source image, in pixels.
- dstSize
- Size of the destination image, in pixels.
- dataType
- Image pixel type.
- channels
- Number of image channels.
- interpolation
- Interpolation method. Supported values:ippNearest,ippLinear,ippCubic,ippLanczos,ippSuper.
- pParams
- Pointer to the Resize optional parameters structures. IfNULL, the function uses default parameters.
- 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.
Description
This function allocates memory and initializes the internal data structure for the Resize operation.
Return Values
- ippStsNoErr
- No errors.
- ippStsInterpolationErr
- Theinterpolationvalue is illegal.
- ippStsDataTypeErr
- ThedataTypevalue is illegal.
- ippStsNumChannelsErr
- Thechannelsvalue is illegal.
- ippStsBorderErr
- Thebordervalue is illegal.
- ippStsNotSupportedModeErr
- Specified combination of parameters' values is not supported.
- ippStsNoMemErr
- Failed to allocate memory.
- ippStsSizeErr
- Values of thesrcSizeand/ordstSizefields are illegal.
- ippStsNullPtrErr
- ThepSpecpointer isNULL.
- ippStsNoOperation
- Warning: width and/or height of the image is equal to zero.