1mlib_VideoColorUYVY422int_tmoe_dAiBaGLRiibntLm(il3biMrbLa_IrVByi)dFeuonCcotlioornUsYVY422int_to_ABGRint(3MLIB)
2
3
4
6 mlib_VideoColorUYVY422int_to_ABGRint - color convert UYVY interleaved
7 to ABGR interleaved
8
10 cc [ flag... ] file... -lmlib [ library... ]
11 #include <mlib.h>
12
13 void mlib_VideoColorUYVY422int_to_ABGRint(mlib_u32 *ABGR,
14 const mlib_u32 *UYVY, const mlib_u8 *A_array,
15 mlib_u8 A_const, mlib_s32 w, mlib_s32 h, mlib_s32 dlb,
16 mlib_s32 slb, mlib_s32 alb);
17
18
20 The UYVY pixel stream is converted into an ABGR pixel stream. All pixel
21 components are 8-bit unsigned integers. The UYVY buffer has dimensions
22 w/2 and h. The ABGR buffer has dimensions w and h. Dimension w is
23 assumed to be even.
24
25
26 The alpha values for this function work in the following fashion:
27
28 o If A_array pointer is not NULL, the values are taken from
29 there. It has to have the same dimensions as the Y buffer.
30
31 o If A_array pointer is NULL, the alpha values for every pixel
32 are set to A_const.
33
34
35 The following equation is used:
36
37 |R| |1.1644 0.0000 1.5966| [|Y| | 16.0000|]
38 |G| = |1.1644 -0.3920 -0.8132| * [|U| - |128.0000|]
39 |B| |1.1644 2.0184 0.0000| [|V| |128.0000|]
40
41
43 The function takes the following arguments:
44
45 ABGR Pointer to output buffer.
46
47
48 UYVY Pointer to input buffer.
49
50
51 A_array Array of alpha values.
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 for output buffer.
64
65
66 slb Linebytes for input buffer.
67
68
69 alb Linebytes for alpha buffer.
70
71
73 None.
74
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
90 mlib_VideoColorYUV420seq_to_ARGBint(3MLIB), mlib_VideoCol‐
91 orYUV411seq_to_ARGBint(3MLIB), mlib_VideoColorYUV422seq_to_ARG‐
92 Bint(3MLIB), mlib_VideoColorYUV444seq_to_ARGBint(3MLIB), mlib_VideoCol‐
93 orYUV420seq_to_ABGRint(3MLIB), mlib_VideoCol‐
94 orYUV411seq_to_ABGRint(3MLIB), mlib_VideoCol‐
95 orYUV422seq_to_ABGRint(3MLIB), mlib_VideoCol‐
96 orYUV444seq_to_ABGRint(3MLIB), mlib_VideoColorYUYV422int_to_ARG‐
97 Bint(3MLIB), mlib_VideoColorYUV444int_to_ARGBint(3MLIB), mlib_VideoCol‐
98 orYUYV422int_to_ABGRint(3MLIB), mlib_VideoCol‐
99 orYUV444int_to_ABGRint(3MLIB), mlib_VideoColorUYVY422int_to_ARG‐
100 Bint(3MLIB), mlib_VideoColorUYV444int_to_ARGBint(3MLIB), mlib_VideoCol‐
101 orUYV444int_to_ABGRint(3MLIB), attributes(5)
102
103
104
105SunOS 5.11 2mMlairb_2V0i0d7eoColorUYVY422int_to_ABGRint(3MLIB)