1mlib_VideoColorYUV420seq_tom_eAdRiGaBLiinbt(L3imMblLriIabBr_)yViFduenocCtoiloonrsYUV420seq_to_ARGBint(3MLIB)
2
3
4

NAME

6       mlib_VideoColorYUV420seq_to_ARGBint  -  color convert YUV sequential to
7       ARGB interleaved
8

SYNOPSIS

10       cc [ flag... ] file... -lmlib [ library... ]
11       #include <mlib.h>
12
13       void mlib_VideoColorYUV420seq_to_ARGBint(mlib_u32 *ARGB,
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

DESCRIPTION

21       The Y, U, V pixel streams are converted into an ARGB 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/2 and h/2.  Dimen‐
24       sions  w  and  h  are assumed to be even. Successive rows of the output
25       buffer ARGB use successive rows of Y and the same rows of U and V.
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

PARAMETERS

45       The function takes the following arguments:
46
47       ARGB       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

RETURN VALUES

81       None.
82

ATTRIBUTES

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

SEE ALSO

98       mlib_VideoColorYUV411seq_to_ARGBint(3MLIB),              mlib_VideoCol‐
99       orYUV422seq_to_ARGBint(3MLIB),         mlib_VideoColorYUV444seq_to_ARG‐
100       Bint(3MLIB), mlib_VideoColorYUV420seq_to_ABGRint(3MLIB), mlib_VideoCol‐
101       orYUV411seq_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_0V0i7deoColorYUV420seq_to_ARGBint(3MLIB)
Impressum