1mlib_VideoColorRGBseq_to_ABmGeRdiinatL(i3bMLLIiBb)ramrlyibF_uVnicdteiooCnoslorRGBseq_to_ABGRint(3MLIB)
2
3
4
6 mlib_VideoColorRGBseq_to_ABGRint - convert RGB sequential to ABGR
7 interleaved
8
10 cc [ flag... ] file... -lmlib [ library... ]
11 #include <mlib.h>
12
13 void mlib_VideoColorRGBseq_to_ABGRint(mlib_u32 *ABGR, const mlib_u8 *R,
14 const mlib_u8 *G, const mlib_u8 *B,
15 const mlib_u8 *A_array, mlib_u8 A_const,
16 mlib_s32 w, mlib_s32 h,
17 mlib_s32 dlb, mlib_s32 slb);
18
19
21 The R, G, and B streams, and the A values are combined into an A, B, G,
22 R interleaved byte stream. Within each 32-bit output word, the compo‐
23 nent ordering is A (bits 31-24), B (bits 23-16), G (bits 15-8), and R
24 (bits 7-0).
25
26
27 The alpha values for this function work in the following fashion:
28
29 o If A_array pointer is not NULL, the values are taken from
30 there. It has to have the same dimensions as the R, G, and B
31 buffers.
32
33 o If A_array pointer is NULL, the alpha values for every pixel
34 are set to A_const.
35
37 The function takes the following arguments:
38
39 ABGR Pointer to output buffer.
40
41
42 R Pointer to input R buffer.
43
44
45 G Pointer to input G buffer.
46
47
48 B Pointer to input B buffer.
49
50
51 A_array Array of alpha values.
52
53
54 A_const Constant alpha value.
55
56
57 w Image width in pixels.
58
59
60 h Image height in lines.
61
62
63 dlb Linebytes for output buffer.
64
65
66 slb Linebytes for input buffers.
67
68
70 None.
71
73 See attributes(5) for descriptions of the following attributes:
74
75
76
77
78 ┌─────────────────────────────┬─────────────────────────────┐
79 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
80 ├─────────────────────────────┼─────────────────────────────┤
81 │Interface Stability │Committed │
82 ├─────────────────────────────┼─────────────────────────────┤
83 │MT-Level │MT-Safe │
84 └─────────────────────────────┴─────────────────────────────┘
85
87 mlib_VideoColorRGBint_to_ABGRint(3MLIB), mlib_VideoColorB‐
88 GRint_to_ABGRint(3MLIB), mlib_VideoColorRGBXint_to_ABGRint(3MLIB),
89 mlib_VideoColorRGBXint_to_ARGBint(3MLIB), mlib_VideoColorXRG‐
90 Bint_to_ABGRint(3MLIB), mlib_VideoColorXRGBint_to_ARGBint(3MLIB),
91 attributes(5)
92
93
94
95SunOS 5.11 2 Marm2l0i0b7_VideoColorRGBseq_to_ABGRint(3MLIB)