iwiSub
Syntax
typedef struct _IwiSubParams
{
int scaleFactor;
IwiChDescriptor chDesc;
} IwiSubParams;
static IW_INLINE void iwiSub_SetDefaultParams(
IwiSubParams *pParams
)
IW_DECL(IppStatus) iwiSub(
const IwiImage *pSrc1Image,
const IwiImage *pSrc2Image,
IwiImage *pDstImage,
const IwiSubParams *pAuxParams,
const IwiTile *pTile
);
Parameters
- pSrc1Image
- Pointer to the image to be subtracted from another image.
- pSrc2Image
- Pointer to the image from which thepSrc1Imageis subtracted.
- pDstImage
- Pointer to the resulting image (can be the same aspSrc2Image).
- pAuxParams
- Pointer to the auxiliary parameters structure. IfNULL, default parameters are used.
- pTile
- Pointer to theIwiTilestructure for tiling. IfNULL, the whole image is processed.
Auxiliary Arguments
Argument | Default Value | Description |
---|---|---|
scaleFactor | 0 | Scale factor. |
chDesc | iwiChDesc_None | IwiChDescriptor value. |
Description
This function subtracts one source image from another and puts the result to
pDstImage
.This function supports the following features:
Feature | Support |
---|---|
In-place mode | Yes |
64-bit sizes | Yes |
Internal threading | No |
Manual tiling | Yes |
IwsTile simple tiling | Yes |
IwsTile pipeline tiling | Yes |
Return Values
- ippStsDataTypeErr
- ThedataTypevalue is illegal.
- ippStsNumChannelsErr
- The value for channels is illegal.
- ippStsSizeErr
- Values for size fields are illegal.
- ippStsNullPtrErr
- At least one of the pointers (exceptpTile) isNULL.
- ippStsNoErr
- No errors.