1mlib_VideoColorYUV422seq_tom_eAdRiGaBLiinbt(L3imMblLriIabBr_)yViFduenocCtoiloonrsYUV422seq_to_ARGBint(3MLIB)
2
3
4
6 mlib_VideoColorYUV422seq_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_VideoColorYUV422seq_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/2 and h. Dimen‐
25 sions w and h are assumed to be even. Similar to mlib_VideoCol‐
26 orYUV420seq_to_ARGBint() except U and V are not sampled in the h direc‐
27 tion.
28
29
30 The alpha values for this function work in the following fashion:
31
32 o If A_array pointer is not NULL, the values are taken from
33 there. It has to have the same dimensions as the Y buffer.
34
35 o If A_array pointer is NULL, the alpha values for every pixel
36 are set to A_const.
37
38
39 The following equation is used:
40
41 |R| |1.1644 0.0000 1.5966| [|Y| | 16.0000|]
42 |G| = |1.1644 -0.3920 -0.8132| * [|U| - |128.0000|]
43 |B| |1.1644 2.0184 0.0000| [|V| |128.0000|]
44
45
47 The function takes the following arguments:
48
49 ARGB Pointer to output buffer.
50
51
52 Y Pointer to Y input buffer.
53
54
55 U Pointer to U input buffer.
56
57
58 V Pointer to V input buffer.
59
60
61 A_array Array of alpha values.
62
63
64 A_const Constant alpha value.
65
66
67 w Image width in pixels.
68
69
70 h Image height in lines.
71
72
73 dlb Linebytes for output buffer.
74
75
76 yalb Linebytes for Y and alpha buffers.
77
78
79 uvlb Linebytes for U and V buffers.
80
81
83 None.
84
86 See attributes(5) for descriptions of the following attributes:
87
88
89
90
91 ┌─────────────────────────────┬─────────────────────────────┐
92 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
93 ├─────────────────────────────┼─────────────────────────────┤
94 │Interface Stability │Committed │
95 ├─────────────────────────────┼─────────────────────────────┤
96 │MT-Level │MT-Safe │
97 └─────────────────────────────┴─────────────────────────────┘
98
100 mlib_VideoColorYUV420seq_to_ARGBint(3MLIB), mlib_VideoCol‐
101 orYUV411seq_to_ARGBint(3MLIB), mlib_VideoColorYUV444seq_to_ARG‐
102 Bint(3MLIB), mlib_VideoColorYUV420seq_to_ABGRint(3MLIB), mlib_VideoCol‐
103 orYUV411seq_to_ABGRint(3MLIB), mlib_VideoCol‐
104 orYUV422seq_to_ABGRint(3MLIB), mlib_VideoCol‐
105 orYUV444seq_to_ABGRint(3MLIB), mlib_VideoColorYUYV422int_to_ARG‐
106 Bint(3MLIB), mlib_VideoColorYUV444int_to_ARGBint(3MLIB), mlib_VideoCol‐
107 orYUYV422int_to_ABGRint(3MLIB), mlib_VideoCol‐
108 orYUV444int_to_ABGRint(3MLIB), mlib_VideoColorUYVY422int_to_ARG‐
109 Bint(3MLIB), mlib_VideoColorUYVY422int_to_ABGRint(3MLIB), mlib_Video‐
110 ColorUYV444int_to_ARGBint(3MLIB), mlib_VideoCol‐
111 orUYV444int_to_ABGRint(3MLIB), attributes(5)
112
113
114
115SunOS 5.11 2 Mmalrib2_0V0i7deoColorYUV422seq_to_ARGBint(3MLIB)