Developer Reference

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

ResizeSetMode

Sets the rounding mode for resize functions

Syntax

IppStatus ippiResizeSetMode(IppHintAlgorithm
hint
, IppiResizeSpec*
pSpec
Include Files
ippi.h
Parameters
hint
Rounding mode for processing
Ipp8u
data. Possible values are:
ippAlgHintFast
Fast rounding mode (default).
ippAlgHintAccurate
Accurate rounding mode.
pSpec
Pointer to the specification structure for the resize filter.
Description
This function sets the
roundMode
for the resize algorithm.
If you provide the
hint
parameter with the
ippAlgHintFast
value, a faster but less accurate mode will be used. In this case, output pixel values can differ from the exact result by 1. If you choose
ippAlgHintAccurate
, a more accurate but slower mode will be used and all output pixel values will be exact.
Before using this function, initialize the specification structure using the initialization function for a required interpolation method.
Return Values
ippStsNoErr
Indicates no error.
ippStsNullPtrErr
Indicates an error when one of the specified pointers is
NULL
.
ippStsAccurateModeNotSupported
Indicates an error when the rounding mode is not supported for the selected data type. The rounding result can be inexact.

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