iwiImage_Alloc
iwiImage_Alloc
Syntax
IW_DECL(IppStatus) iwiImage_Alloc(
IwiImage *pImage,
IwiSize size,
IppDataType dataType,
int channels,
const IwiBorderSize *pInMemBorder
);
Parameters
- pImage
- Pointer to theIwiImagestructure.
- size
- Image size, in pixels, without the border.
- dataType
- Type of image pixels.
- channels
- Number of image channels.
- pInMemBorder
- Size of the border around the image orNULLif there is no border.
Description
This function initializes the image structure and allocates image data.
Return Values
- ippStsNullPtrErr
- At least one of the pointers isNULL.
- ippStsDataTypeErr
- ThedataTypevalue is illegal.
- ippStsNumChannelsErr
- Thechannelsvalue is illegal.
- ippStsNoErr
- No errors.