1mlib_VideoColorYUV2RGB422(3mMeLdIiBa)Lib Library Funcmtliiobn_sVideoColorYUV2RGB422(3MLIB)
2
3
4
6 mlib_VideoColorYUV2RGB422 - YUV to RGB color conversion
7
9 cc [ flag... ] file... -lmlib [ library... ]
10 #include <mlib.h>
11
12 mlib_status mlib_VideoColorYUV2RGB422(mlib_u8 *rgb, const mlib_u8 *y,
13 const mlib_u8 *u, const mlib_u8 *v, mlib_s32 width, mlib_s32 height,
14 mlib_s32 rgb_stride, mlib_s32 y_stride, mlib_s32 uv_stride);
15
16
18 The mlib_VideoColorYUV2RGB422() function performs YUV to RGB color con‐
19 version used in MPEG1 and MPEG2 video compression in the 4:2:2
20 sequence.
21
22
23 The luminance component is stored in Y, the chrominance components are
24 stored in U and V, respectively. The size of the chrominance image
25 depends on the chroma format used by the sequence. In this sequence,
26 the chrominance components are subsampled 2-to-1 in only the horizontal
27 direction in respect to the luminance component.
28
30 The function takes the following arguments:
31
32 rgb Pointer to the destination RGB image.
33
34
35 y Pointer to the source Y component.
36
37
38 u Pointer to the source U component.
39
40
41 v Pointer to the source V component.
42
43
44 width Width of the image.
45
46
47 height Height of the image.
48
49
50 rgb_stride Stride, in bytes, between adjacent rows in the destina‐
51 tion image.
52
53
54 y_stride Stride, in bytes, between adjacent rows in the Y compo‐
55 nent image.
56
57
58 uv_stride Stride, in bytes, between adjacent rows in the U and V
59 component images.
60
61
63 The function returns MLIB_SUCCESS if successful. Otherwise it returns
64 MLIB_FAILURE.
65
67 See attributes(5) for descriptions of the following attributes:
68
69
70
71
72 ┌─────────────────────────────┬─────────────────────────────┐
73 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
74 ├─────────────────────────────┼─────────────────────────────┤
75 │Interface Stability │Committed │
76 ├─────────────────────────────┼─────────────────────────────┤
77 │MT-Level │MT-Safe │
78 └─────────────────────────────┴─────────────────────────────┘
79
81 mlib_VideoColorYUV2ABGR411(3MLIB), mlib_VideoColorYUV2ABGR420(3MLIB),
82 mlib_VideoColorYUV2ABGR422(3MLIB), mlib_VideoColorYUV2ABGR444(3MLIB),
83 mlib_VideoColorYUV2ARGB411(3MLIB), mlib_VideoColorYUV2ARGB420(3MLIB),
84 mlib_VideoColorYUV2ARGB422(3MLIB), mlib_VideoColorYUV2ARGB444(3MLIB),
85 mlib_VideoColorYUV2RGB411(3MLIB), mlib_VideoColorYUV2RGB420(3MLIB),
86 mlib_VideoColorYUV2RGB444(3MLIB), attributes(5)
87
88
89
90SunOS 5.11 2 Mar 2007 mlib_VideoColorYUV2RGB422(3MLIB)