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