Developer Reference

  • 2020
  • 10/21/2020
  • Public Content
Contents

Complement

Converts pixel values from two's complement to binary representation.

Syntax

Case 1: Not-in-place operation
IppStatus ippiComplement_<mod>
(
Ipp<datatype>*
pSrc
,
int
srcStep
,
Ipp<datatype>*
pDst
,
int
dstStep
,
IppiSize
roiSize
);
Supported values for
mod
:
8s_C1R
16s_C1R
32s_C1R
8s_C3R
16s_C3R
32s_C3R
8s_C4R
16s_C4R
32s_C4R
8s_AC4R
16s_AC4R
32s_AC4R
Case 2: In-place operation
IppStatus ippiComplement_<mod>
(
Ipp<datatype>*
pSrc
,
int
srcStep
,
IppiSize
roiSize
);
Supported values for
mod
:
8s_C1IR
16s_C1IR
32s_C3IR
8s_C3IR
16s_C3IR
32s_C3IR
8s_C4IR
16s_C4IR
32s_C4IR
8s_AC4IR
16s_AC4IR
32s_AC4IR
Include Files
ippi.h
Parameters
pSrc
,
pDst
,
pSrcDst
Pointers to the start of the array with the source image.
srcStep
,
dstStep
,
srcDstStep
Distances in bytes between starts of adjacent lines in the source image.
roiSize
Size of the image ROI in pixels.
Description
This function converts the value of each pixel from the two's complement representation to the binary representation. This function takes the data from
pSrc
and saves the result in
pDst
.
In-place functions convert the value of each pixel by rewriting the source data. These functions take the data from
pSrcDst
and saves the result in
pSrcDst
.
Return Values
ippStsNoErr
Indicates no error.
ippStsNullPtrErr
Indicates an error when any of the specified pointers is
null
.
ippStsSizeErr
Indicates an error when the value for the data size is incorrect.
ippStsStepErr
Indicates an error when step value is less than, or equal to zero.

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