Content-type: text/html
cc [ flag... ] file... -lmlib [ library... ] #include <mlib.h> mlib_image *mlib_ImageCreateStruct(mlib_type type, mlib_s32 channels, mlib_s32 width, mlib_s32 height, mlib_s32 stride, const void *datbuf);
The mlib_ImageCreateStruct() function creates a mediaLib image data structure with parameters supplied by the user.
The function takes the following arguments:
type
channels
width
height
stride
datbuf
The function returns a pointer to the mlib_image data structure.
See attributes(5) for descriptions of the following attributes:
|
mlib_ImageCreate(3MLIB), mlib_ImageCreateSubimage(3MLIB), mlib_ImageSetStruct(3MLIB), mlib_ImageResetStruct(3MLIB), mlib_ImageDelete(3MLIB), mlib_ImageSetFormat(3MLIB), mlib_ImageSetPaddings(3MLIB), attributes(5)