Complement

Converts negative number from the complement to direct code.

Syntax

IppStatus ippiComplement_32s_C1IR(Ipp32s* pSrcDst, int srcDstStep, IppiSize roiSize);

Parameters

pSrcDst

Pointer to the source and destination image ROI.

srcDstStep

Distance in bytes between starts of consecutive lines in the source and destination image.

roiSize

Size of the source and destination ROI in pixels.

Description

The function ippiComplement is declared in the ippi.h file. It operates with ROI (see Regions of Interest in Intel IPP).

This function converts a negative integer number from the complement to direct code reserving the sign in the most significant bit.

Return Values

ippStsNoErr

Indicates no error. Any other value indicates an error.

ippStsNullPtrErr

Indicates an error condition if the pSrcDst pointer is NULL.

ippStsStepErr

Indicates an error condition if srcDstStep has a zero or negative value.

ippStsStrideErr

Indicates an error condition if srcDstStep is less than the image width.

Submit feedback on this help topic

Copyright © 2000 - 2011, Intel Corporation. All rights reserved.