iwiAddC
Syntax
typedef struct _IwiAddCParams
{
int scaleFactor;
IwiChDescriptor chDesc;
} IwiAddCParams;
static IW_INLINE void iwiAddC_SetDefaultParams(
IwiAddParams *pParams
)
IW_DECL(IppStatus) iwiAddC(
const double *pValues,
const IwiImage *pSrcImage,
IwiImage *pDstImage,
const IwiAddCParams *pAuxParams,
const IwiTile *pTile
);
Parameters
- pValues
- Pointer to the array containing values to add: one element for each channel.
- pSrcImage
- Pointer to the source image.
- pDstImage
- Pointer to the resulting image (can be the same aspSrcImage).
- 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 adds a constant to an image and puts the resulting image 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.