mediaLib Library Functions mlibImageCreateStruct(3MLIB)
NAME
mlibImageCreateStruct - image structure creation
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include
mlibimage *mlibImageCreateStruct(mlibtype type, mlibs32 channels,
mlibs32 width, mlibs32 height, mlibs32 stride, const void *datbuf);
DESCRIPTION
The mlibImageCreateStruct() function creates a mediaLib
image data structure with parameters supplied by the user.
PARAMETERS
The function takes the following arguments:
type Image data type. It can be MLIBIT, MLIBYTE,
MLIBSHORT, MLIBUSHORT, MLIBINT, MLIBFLOAT,
or MLIBDOUBLE.
channels Number of channels in the image.
width Width of image in pixels.
height Height of image in pixels.
stride Stride of each row of the data space in bytes.
datbuf Pointer to the image data buffer.
RETURN VALUES
The function returns a pointer to the mlibimage data struc-
ture.
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
SunOS 5.11 Last change: 2 Mar 2007 1
mediaLib Library Functions mlibImageCreateStruct(3MLIB)
ATRIBUTE TYPE ATRIBUTE VALUE
Interface Stability Committed
MT-Level MT-Safe
SEE ALSO
mlibImageCreate(3MLIB), mlibImageCreateSubimage(3MLIB),
mlibImageSetStruct(3MLIB), mlibImageResetStruct(3MLIB),
mlibImageDelete(3MLIB), mlibImageSetFormat(3MLIB),
mlibImageSetPaddings(3MLIB), attributes(5)
SunOS 5.11 Last change: 2 Mar 2007 2
|