1mlib_ImageChannelCopy(3MLIBm)ediaLib Library Functionmslib_ImageChannelCopy(3MLIB)
2
3
4
6 mlib_ImageChannelCopy - channel copy
7
9 cc [ flag... ] file... -lmlib [ library... ]
10 #include <mlib.h>
11
12 mlib_status mlib_ImageChannelCopy(mlib_image *dst, const mlib_image *src,
13 mlib_s32 cmask);
14
15
17 The mlib_ImageChannelCopy() function copies the selected channels of
18 the source image into the corresponding channels of the destination
19 image. The data type of the image can be MLIB_BYTE, MLIB_SHORT,
20 MLIB_USHORT, MLIB_INT, MLIB_FLOAT, or MLIB_DOUBLE.
21
23 The function takes the following arguments:
24
25 dst Pointer to a destination image.
26
27
28 src Pointer to a source image.
29
30
31 cmask Source or destination channel selection mask. Each bit of the
32 mask represents a channel in the image data. The least signif‐
33 icant bit (LSB) of the mask corresponds to the last channel in
34 the image data. A bit with a value of 1 indicates that the
35 channel is selected.
36
37
39 The function returns MLIB_SUCCESS if successful. Otherwise it returns
40 MLIB_FAILURE.
41
43 See attributes(5) for descriptions of the following attributes:
44
45
46
47
48 ┌─────────────────────────────┬─────────────────────────────┐
49 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
50 ├─────────────────────────────┼─────────────────────────────┤
51 │Interface Stability │Committed │
52 ├─────────────────────────────┼─────────────────────────────┤
53 │MT-Level │MT-Safe │
54 └─────────────────────────────┴─────────────────────────────┘
55
57 mlib_ImageChannelExtract(3MLIB), mlib_ImageChannelInsert(3MLIB),
58 mlib_ImageChannelMerge(3MLIB), mlib_ImageChannelSplit(3MLIB),
59 attributes(5)
60
61
62
63SunOS 5.11 2 Mar 2007 mlib_ImageChannelCopy(3MLIB)