1mlib_VideoColorSplit4(3MLIBm)ediaLib Library Functionmslib_VideoColorSplit4(3MLIB)
2
3
4
6 mlib_VideoColorSplit4 - color conversion (color channel split)
7
9 cc [ flag... ] file... -lmlib [ library... ]
10 #include <mlib.h>
11
12 mlib_status mlib_VideoColorSplit4(mlib_u8 *color1, mlib_u8 *color2,
13 mlib_u8 *color3, mlib_u8 *color4, const mlib_u8 *colors, mlib_s32 n);
14
15
17 The mlib_VideoColorSplit4() function performs color channel split.
18
19
20 The elements of the colors array are selected in consecutive groups of
21 four. As each group is processed, the first element is stored in the
22 color1 array; the second element, in the color2 array; and so on. This
23 process is repeated untill the end of the colors array is reached.
24
26 The function takes the following arguments:
27
28 color1 Pointer to first color component row. color1 must be 8-byte
29 aligned.
30
31
32 color2 Pointer to second color component row. color2 must be 8-byte
33 aligned.
34
35
36 color3 Pointer to third color component row. color3 must be 8-byte
37 aligned.
38
39
40 color4 Pointer to fourth color component row. color4 must be 8-byte
41 aligned.
42
43
44 colors Pointer to colors multi-component row. colors must be 8-byte
45 aligned.
46
47
48 n Length of color1, color2, color3, and color4 arrays. Length
49 of colors must be 4*n.
50
51
53 The function returns MLIB_SUCCESS if successful. Otherwise it returns
54 MLIB_FAILURE.
55
57 See attributes(5) for descriptions of the following attributes:
58
59
60
61
62 ┌─────────────────────────────┬─────────────────────────────┐
63 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
64 ├─────────────────────────────┼─────────────────────────────┤
65 │Interface Stability │Committed │
66 ├─────────────────────────────┼─────────────────────────────┤
67 │MT-Level │MT-Safe │
68 └─────────────────────────────┴─────────────────────────────┘
69
71 mlib_VideoColorMerge2(3MLIB), mlib_VideoColorMerge2_S16(3MLIB),
72 mlib_VideoColorMerge3(3MLIB), mlib_VideoColorMerge3_S16(3MLIB),
73 mlib_VideoColorMerge4(3MLIB), mlib_VideoColorMerge4_S16(3MLIB),
74 mlib_VideoColorSplit2(3MLIB), mlib_VideoColorSplit2_S16(3MLIB),
75 mlib_VideoColorSplit3(3MLIB), mlib_VideoColorSplit3_S16(3MLIB),
76 mlib_VideoColorSplit4_S16(3MLIB), attributes(5)
77
78
79
80SunOS 5.11 2 Mar 2007 mlib_VideoColorSplit4(3MLIB)