Developer Reference

  • 2020
  • 10/21/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

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.