1mlib_VideoColorYUV411seq_tom_eAdBiGaRLiinbt(L3imMblLriIabBr_)yViFduenocCtoiloonrsYUV411seq_to_ABGRint(3MLIB)
2
3
4
6 mlib_VideoColorYUV411seq_to_ABGRint - color convert YUV sequential to
7 ABGR interleaved
8
10 cc [ flag... ] file... -lmlib [ library... ]
11 #include <mlib.h>
12
13 void mlib_VideoColorYUV411seq_to_ABGRint(mlib_u32 *ABGR,
14 const mlib_u8 *Y, const mlib_u8 *U, const mlib_u8 *V,
15 const mlib_u8 *A_array, mlib_u8 A_const,
16 mlib_s32 w, mlib_s32 h, mlib_s32 dlb,
17 mlib_s32 yalb, mlib_s32 uvlb);
18
19
21 The Y, U, V pixel streams are converted into an ABGR pixel stream. All
22 pixel components are 8-bit unsigned integers. The Y buffer has dimen‐
23 sions w and h. The U and V buffers have dimensions w/4 and h. Dimension
24 w is assumed to be a multiple of 4. In each row, every 4 Y values use
25 the same U and V values.
26
27
28 The alpha values for this function work in the following fashion:
29
30 o If A_array pointer is not NULL, the values are taken from
31 there. It has to have the same dimensions as the Y buffer.
32
33 o If A_array pointer is NULL, the alpha values for every pixel
34 are set to A_const.
35
36
37 The following equation is used:
38
39 |R| |1.1644 0.0000 1.5966| [|Y| | 16.0000|]
40 |G| = |1.1644 -0.3920 -0.8132| * [|U| - |128.0000|]
41 |B| |1.1644 2.0184 0.0000| [|V| |128.0000|]
42
43
45 The function takes the following arguments:
46
47 ABGR Pointer to output buffer.
48
49
50 Y Pointer to Y input buffer.
51
52
53 U Pointer to U input buffer.
54
55
56 V Pointer to V input buffer.
57
58
59 A_array Array of alpha values.
60
61
62 A_const Constant alpha value.
63
64
65 w Image width in pixels.
66
67
68 h Image height in lines.
69
70
71 dlb Linebytes for output buffer.
72
73
74 yalb Linebytes for Y and alpha buffers.
75
76
77 uvlb Linebytes for U and V buffers.
78
79
81 None.
82
84 See attributes(5) for descriptions of the following attributes:
85
86
87
88
89 ┌─────────────────────────────┬─────────────────────────────┐
90 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
91 ├─────────────────────────────┼─────────────────────────────┤
92 │Interface Stability │Committed │
93 ├─────────────────────────────┼─────────────────────────────┤
94 │MT-Level │MT-Safe │
95 └─────────────────────────────┴─────────────────────────────┘
96
98 mlib_VideoColorYUV420seq_to_ARGBint(3MLIB), mlib_VideoCol‐
99 orYUV411seq_to_ARGBint(3MLIB), mlib_VideoColorYUV422seq_to_ARG‐
100 Bint(3MLIB), mlib_VideoColorYUV444seq_to_ARGBint(3MLIB), mlib_VideoCol‐
101 orYUV420seq_to_ABGRint(3MLIB), mlib_VideoCol‐
102 orYUV422seq_to_ABGRint(3MLIB), mlib_VideoCol‐
103 orYUV444seq_to_ABGRint(3MLIB), mlib_VideoColorYUYV422int_to_ARG‐
104 Bint(3MLIB), mlib_VideoColorYUV444int_to_ARGBint(3MLIB), mlib_VideoCol‐
105 orYUYV422int_to_ABGRint(3MLIB), mlib_VideoCol‐
106 orYUV444int_to_ABGRint(3MLIB), mlib_VideoColorUYVY422int_to_ARG‐
107 Bint(3MLIB), mlib_VideoColorUYVY422int_to_ABGRint(3MLIB), mlib_Video‐
108 ColorUYV444int_to_ARGBint(3MLIB), mlib_VideoCol‐
109 orUYV444int_to_ABGRint(3MLIB), attributes(5)
110
111
112
113SunOS 5.11 2 Mmalrib2_0V0i7deoColorYUV411seq_to_ABGRint(3MLIB)