1mlib_VideoColorRGBXint_to_AmBeGdRiianLti(b3MLLiIbBrm)alriyb_FVuindcetoiCoonlsorRGBXint_to_ABGRint(3MLIB)
2
3
4
6 mlib_VideoColorRGBXint_to_ABGRint - convert RGBX interleaved to ABGR
7 interleaved
8
10 cc [ flag... ] file... -lmlib [ library... ]
11 #include <mlib.h>
12
13 void mlib_VideoColorRGBXint_to_ABGRint(mlib_u32 *ABGR,
14 const mlib_u32 *RGBX, const mlib_u8 *A_array,
15 mlib_u8 A_const, mlib_s32 w,
16 mlib_s32 h, mlib_s32 dlb,
17 mlib_s32 slb, mlib_s32 alb);
18
19
21 The interleaved RGBX stream and the alpha values are combined into an
22 interleaved A, B, G, R output stream. Within each 32-bit input pixel,
23 the component ordering is R (bits 31-24), G (bits 23-16), and B (bits
24 15-8). Within each 32-bit output pixel, the component bordering is A
25 (bits 31-24), B (bits 23-16), G (bits 15-8), and R (bits 7-0). The
26 alpha values for this function work in the following fashion: if
27 A_array is not NULL, the values are taken from the corresponding loca‐
28 tions in the alpha array, otherwise a constant alpha value, specified
29 by A_const, is store in each output pixel. Each element in the alpha
30 array is an unsigned byte. w and h define the dimensions of the region
31 of the buffers to be processed. The linebyte parameters are used to
32 advance the data pointers for each of the buffers.
33
35 The function takes the following arguments:
36
37 ABGR Pointer to output buffer (word-aligned).
38
39
40 RGBX Pointer to input buffer (word-aligned).
41
42
43 A_array Pointer to array of alpha values (byte-aligned).
44
45
46 A_const Constant alpha value (range = 0..255).
47
48
49 w Image width in pixels.
50
51
52 h Image height in lines.
53
54
55 dlb Linebytes for output buffer.
56
57
58 slb Linebytes for input buffer.
59
60
61 alb Linebytes for alpha buffer.
62
63
65 None.
66
68 See attributes(5) for descriptions of the following attributes:
69
70
71
72
73 ┌─────────────────────────────┬─────────────────────────────┐
74 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
75 ├─────────────────────────────┼─────────────────────────────┤
76 │Interface Stability │Committed │
77 ├─────────────────────────────┼─────────────────────────────┤
78 │MT-Level │MT-Safe │
79 └─────────────────────────────┴─────────────────────────────┘
80
82 mlib_VideoColorRGBseq_to_ABGRint(3MLIB), mlib_VideoColorRG‐
83 Bint_to_ABGRint(3MLIB), mlib_VideoColorBGRint_to_ABGRint(3MLIB),
84 mlib_VideoColorRGBXint_to_ARGBint(3MLIB), mlib_VideoColorXRG‐
85 Bint_to_ABGRint(3MLIB), mlib_VideoColorXRGBint_to_ARGBint(3MLIB),
86 attributes(5)
87
88
89
90SunOS 5.11 2 Marml2i0b0_7VideoColorRGBXint_to_ABGRint(3MLIB)