Intel IPP Integration Wrappers Developer Guide and Reference

ID 751823
Date 1/18/2023
Public
Document Table of Contents

iwiSubC

Syntax

typedef struct _IwiSubCParams
{
    int             scaleFactor;
    IwiChDescriptor chDesc;  
} IwiSubCParams;
static IW_INLINE void iwiSubC_SetDefaultParams(
    IwiSubParams *pParams    
)
IW_DECL(IppStatus) iwiSubC(
    const double        *pValues,    
    const IwiImage      *pSrcImage,  
    IwiImage            *pDstImage,  
    const IwiSubCParams *pAuxParams, 
    const IwiTile       *pTile       
);

Parameters

pValues

Pointer to the array containing values to subtract from the source image: one element for each channel.

pSrcImage

Pointer to the image from which the pValues are subtracted.

pDstImage

Pointer to the resulting image (can be the same as pSrcImage).

pAuxParams

Pointer to the auxiliary parameters structure. If NULL, default parameters are used.

pTile

Pointer to the IwiTile structure for tiling. If NULL, the whole image is processed.

Auxiliary Arguments

Argument Default Value Description

scaleFactor

0

Scale factor.

chDesc

iwiChDesc_None

IwiChDescriptor value.

Description

This function subtracts a constant from an image 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

The dataType value is illegal.

ippStsNumChannelsErr

The value for channels is illegal.

ippStsSizeErr

Values for size fields are illegal.

ippStsNullPtrErr

At least one of the pointers (except pTile) is NULL.

ippStsNoErr

No errors.