Developer Reference

  • 2020
  • 07/15/2020
  • Public Content
Contents

ResizeYUV420GetSize

Computes sizes of the spec structure and the external buffer for the NV12 resize transform initialization.

Syntax

IppStatus ippiResizeYUV420GetSize(IppiSize
srcSize
, IppiSize
dstSize
, IppiInterpolationType
interpolation
, Ipp32u
antialiasing
, Ipp32s*
pSpecSize
, Ipp32s*
pInitBufSize
);
Include Files
ippi.h
Domain Dependencies
Headers:
ippcore.h
,
ippvm.h
,
ipps.h
Libraries:
ippcore.lib
,
ippvm.lib
,
ipps.lib
Parameters
srcSize
Size of the source image in pixels.
dstSize
Size of the destination image in pixels.
interpolation
Interpolation method. Supported values are
ippLanczos
and
ippSuper
.
antialiasing
Antialiasing method.
pSpecSize
Pointer to the size in bytes of the spec structure.
pInitBufSize
Pointer to the size in bytes of the temporal buffer.
Description
This function computes sizes of the spec structure and the external buffer that are required for one of the following functions depending on the interpolation method parameter: ResizeYUV420LanczosInit and ResizeYUV420SuperInit .
The size of the 2-Lobed Lanczos filter is 8x8.
Antialising is currently not supported. The value for the
antialiasing
parameter must be equal to zero.
Return Values
ippStsNoErr
Indicates no error. Any other value indicates an error.
ippStsNullPtrErr
Indicates an error condition if one of the specified pointers is
NULL
.
ippStsNoOperation
Indicates a warning if width or height of the image is equal to zero.
ippStsSizeErr
Indicates an error in the following cases:
  • if width or height of the image is equal to 1,
  • if the source image size is less than a filter size of the chosen interpolation method (except
    ippSuper
    ),
  • if one of the specified dimensions of the source image is less than the corresponding dimension of the destination image (for
    ippSuper
    method only),
  • if width or height of the source or destination image is negative,
  • if one of the calculated sizes exceeds maximum 32 bit signed integer positive value (the size of the one of the processed images is too large).
if width or height of the source or destination image is negative.
ippStsSizeWrn
Indicates a warning if width or height of the image is odd.
ippStsInterpolationErr
Indicates an error if
interpolation
has an illegal value.
ippStsNoAntialiasing
Indicates a warning if the specified interpolation method does not support antialiasing.
ippStsNotSupportedModeErr
Indicates an error if the requested mode is currently not supported.

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