Intel IPP Integration Wrappers Developer Guide and Reference

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

iwiImage_Alloc

Syntax

IW_DECL(IppStatus) iwiImage_Alloc(
    IwiImage               *pImage,
    IwiSize                 size,
    IppDataType             dataType,
    int                     channels,
    const IwiBorderSize    *pInMemBorder
);

Parameters

pImage

Pointer to the IwiImage structure.

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 or NULL if there is no border.

Description

This function initializes the image structure and allocates image data.

Return Values

ippStsNullPtrErr

At least one of the pointers is NULL.

ippStsDataTypeErr

The dataType value is illegal.

ippStsNumChannelsErr

The channels value is illegal.

ippStsNoErr

No errors.