Developer Reference

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

ReduceBitsGetBufferSize

Computes the size of the work buffer for the
ippiReduceBits
function.

Syntax

IppStatus ippiReduceBitsGetBufferSize(IppChannels
ippChan
, IppiSize
roiSize
, int
noise
, IppiDitherType
dtype
, int*
pBufferSize
);
Include Files
ippcc.h
Domain Dependencies
Headers:
ippcore.h
,
ippvm.h
,
ipps.h
,
ippi.h
Libraries:
ippcore.lib
,
ippvm.lib
,
ipps.lib
,
ippi.lib
Parameters
ippChan
Number of channels in the source images. Possible values:
ippC1
,
ippC3
, or
ippAC4
.
roiSize
Size, in pixels, of the source images.
noise
Number specifying the amount of noise added (as a percentage of the range [0..100]).
dtype
Type of dithering to be used. For the list of supported types, refer to the
ippiReduceBits
function description.
pBufferSize
Pointer to the computed value of the buffer size, in bytes.
Description
The function computes the size of the work buffer, in bytes, for the
ippiReduceBits
function and stores the result in the
pBufferSize
parameter.
Return Values
ippStsNoErr
Indicates no error. Any other value indicates an error or a warning.
ippStsNullPtrErr
Indicates an error when any of the specified pointers is
NULL
.
ippStsSizeErr
Indicates an error when
roiSize
is less than, or equal to zero.
ippStsChannelErr
Indicates an error when
ippChan
has an illegal value.
ippStsDataTypeErr
Indicates an error when
noise
is less than 0, or greater than 100.
ippStsDataTypeErr
Indicates an error when the specified dithering type is 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