Computes the size of the external buffer for resizing a 4:2:0 two-plane image.
IppStatus ippiResizeYUV420GetBufSize(IppiSize srcRoiSize, IppiSize dstRoiSize, int interpolation, int* pSize);
srcRoiSize |
Size of the source image ROI in pixels. |
||||
dstRoiSize |
Size of the destination ROI in pixels. |
||||
interpolation |
Specifies the interpolation mode. Use one of the following values:
|
||||
pSize |
Pointer to the size of the work buffer. |
The function ippiResizeYUV400GetBufSize is declared in the ippi.h file. It operates with ROI (see ROI Processing in Geometric Transforms).
This function computes the size of the external buffer that is required for the function ippiResizeYUV420.
ippStsNoErr |
Indicates no error. Any other value indicates an error. |
ippStsNullPtrErr |
Indicates an error condition if the pSize pointer is NULL. |
ippStsSizeErr |
Indicates an error condition if width or height of srcRoiSize or dstRoiSize is less than 2; or if width or height of the srcRoiSize is less than corresponding field of dstRoiSize for supersampling. |
ippStsInterpolationErr |
Indicates an error condition if interpolation has an illegal value. |
ippStsDoubleSize |
Indicates a warning if width or height of the srcRoiSize is odd. |
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.