Computes the size of the external buffer for image resizing.
IppStatus ippiResizeGetBufSize(IppiRect srcRoi, IppiRect dstRoi, int nChannel, int interpolation, int* pBufferSize);
IppStatus ippiResizeGetBufSize_64f(IppiRect srcRoi, IppiRect dstRoi, int nChannel, int interpolation, int* pBufferSize);
srcRoi |
Region of interest in the source image (of the IppiRect type). |
dstRoi |
Region of interest in the destination image (of the IppiRect type). |
nChannel |
Number of channels or planes, possible values are 1, 3, 4. |
interpolation |
Specifies the interpolation mode. Use one of the following values: |
IPPI_INTER_NN - nearest neighbor interpolation |
|
IPPI_INTER_LINEAR - linear interpolation |
|
IPPI_INTER_CUBIC - cubic interpolation |
|
IPPI_INTER_LANCZOS - interpolation with Lanczos window |
|
IPPI_INTER_CUBIC2P_BSPLINE - B-spline |
|
IPPI_INTER_CUBIC2P_CATMULLROM - Catmull-Rom spline |
|
IPPI_INTER_CUBIC2P_B05C03 - special two-parameters cubic filter |
|
IPPI_INTER_SUPER - supersampling interpolation |
|
IPPI_SMOOTH_EDGE, or IPPI_SUBPIXEL_EDGE - edge smoothing in addition to one of the above modes |
|
IPPI_ANTIALIASING - antialiasing method in addition to the linear, cubic, or Lanczos modes. |
|
pBuffer |
Pointer to the external buffer. |
The function ippiResizeGetBufSize is declared in the ippi.h file. This function computes the size (in bytes) of the external buffer that is required for the function ippiResizeSqrPixel.
ippStsNoErr |
Indicates no error. Any other value indicates an error or a warning. |
ippStsNullPtrErr |
Indicates an error condition if pBufferSize pointer is NULL. |
ippStsSizeErr |
Indicates an error condition if width or height of the srcRoi or dstRoi is less than or equal to 0. |
ippStsNumChannelErr |
Indicates an error condition if nChannel has an illegal value. |
ippStsInterpolationErr |
Indicates an error condition if interpolation has an illegal value. |
ippStsNoAntialiasing |
Indicates a warning if the selected interpolation mode does not support antialiasing. |
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.