1mlib_ImageCreateStruct(3MLImBe)diaLib Library Functiomnlsib_ImageCreateStruct(3MLIB)
2
3
4

NAME

6       mlib_ImageCreateStruct - image structure creation
7

SYNOPSIS

9       cc [ flag... ] file... -lmlib [ library... ]
10       #include <mlib.h>
11
12       mlib_image *mlib_ImageCreateStruct(mlib_type type, mlib_s32 channels,
13            mlib_s32 width, mlib_s32 height, mlib_s32 stride, const void *datbuf);
14
15

DESCRIPTION

17       The  mlib_ImageCreateStruct()  function  creates  a mediaLib image data
18       structure with parameters supplied by the user.
19

PARAMETERS

21       The function takes the following arguments:
22
23       type        Image data type. It can be MLIB_BIT, MLIB_BYTE, MLIB_SHORT,
24                   MLIB_USHORT, MLIB_INT, MLIB_FLOAT, or MLIB_DOUBLE.
25
26
27       channels    Number of channels in the image.
28
29
30       width       Width of image in pixels.
31
32
33       height      Height of image in pixels.
34
35
36       stride      Stride of each row of the data space in bytes.
37
38
39       datbuf      Pointer to the image data buffer.
40
41

RETURN VALUES

43       The function returns a pointer to the mlib_image data structure.
44

ATTRIBUTES

46       See attributes(5) for descriptions of the following attributes:
47
48
49
50
51       ┌─────────────────────────────┬─────────────────────────────┐
52       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
53       ├─────────────────────────────┼─────────────────────────────┤
54       │Interface Stability          │Committed                    │
55       ├─────────────────────────────┼─────────────────────────────┤
56       │MT-Level                     │MT-Safe                      │
57       └─────────────────────────────┴─────────────────────────────┘
58

SEE ALSO

60       mlib_ImageCreate(3MLIB),  mlib_ImageCreateSubimage(3MLIB),  mlib_Image‐
61       SetStruct(3MLIB),                         mlib_ImageResetStruct(3MLIB),
62       mlib_ImageDelete(3MLIB),   mlib_ImageSetFormat(3MLIB),   mlib_ImageSet‐
63       Paddings(3MLIB), attributes(5)
64
65
66
67SunOS 5.11                        2 Mar 2007     mlib_ImageCreateStruct(3MLIB)
Impressum