1mlib_VideoColorRGBint_to_BGmReAdiinatL(i3bMLLIiBb)ramrlyibF_uVnicdteiooCnoslorRGBint_to_BGRAint(3MLIB)
2
3
4

NAME

6       mlib_VideoColorRGBint_to_BGRAint  -  convert  RGB  interleaved  to BGRA
7       interleaved
8

SYNOPSIS

10       cc [ flag... ] file... -lmlib [ library... ]
11       #include <mlib.h>
12
13       void mlib_VideoColorRGBint_to_BGRAint(mlib_u8 *bgra,
14            const mlib_u8 *rgb, const mlib_u8 *a_array,
15            mlib_u8 a_const, mlib_s32 w, mlib_s32 h,
16            mlib_s32 dlb, mlib_s32 slb, mlib_s32 alb);
17
18

DESCRIPTION

20       The interleaved RGB stream and the A values are combined into an inter‐
21       leaved BGRA byte stream.
22
23
24       The alpha values for this function work in the following fashion:
25
26           o      If  the  a_array  pointer  is not NULL, the values are taken
27                  from there. It has to have the at least 1/3 the dimension of
28                  the RGB buffer.
29
30           o      If  the  a_array pointer is NULL, the alpha values for every
31                  pixel are set to a_const.
32
33
34       In other words, this function's inner loop works like this:
35
36         bgra[0] = rgb[2];
37         bgra[1] = rgb[1];
38         bgra[2] = rgb[0];
39         bgra[3] = (a_array == NULL) ? a_const : a_array[0];
40
41

PARAMETERS

43       The function takes the following arguments:
44
45       bgra       Pointer to the output BGRA buffer.
46
47
48       rgb        Pointer to the input RGB buffer.
49
50
51       a_array    Pointer to the alpha buffer.
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 of the output buffer.
64
65
66       slb        Linebytes of the input buffer.
67
68
69       alb        Linebytes of the alpha buffer.
70
71

RETURN VALUES

73       None.
74

ATTRIBUTES

76       See attributes(5) for descriptions of the following attributes:
77
78
79
80
81       ┌─────────────────────────────┬─────────────────────────────┐
82       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
83       ├─────────────────────────────┼─────────────────────────────┤
84       │Interface Stability          │Committed                    │
85       ├─────────────────────────────┼─────────────────────────────┤
86       │MT-Level                     │MT-Safe                      │
87       └─────────────────────────────┴─────────────────────────────┘
88

SEE ALSO

90       mlib_VideoColorRGBint_to_ABGRint(3MLIB), attributes(5)
91
92
93
94SunOS 5.11                        2 Marm2l0i0b7_VideoColorRGBint_to_BGRAint(3MLIB)
Impressum