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