1mlib_VideoColorYUV2ABGR420_mWeXd3i(a3LMiLbIBL)ibrarymlFiubn_cVtiidoenosColorYUV2ABGR420_WX3(3MLIB)
2
3
4
6 mlib_VideoColorYUV2ABGR420_WX3 - YUV to RGB color conversion
7
9 cc [ flag... ] file... -lmlib [ library... ]
10 #include <mlib.h>
11
12 mlib_status mlib_VideoColorYUV2ABGR420_WX3(mlib_u8 *abgr,
13 const mlib_u8 *y,const mlib_u8 *u, const mlib_u8 *v,
14 mlib_s32 width, mlib_s32 height,
15 mlib_s32 abgr_stride, mlib_s32 y_stride,
16 mlib_s32 uv_stride, mlib_s32 left,
17 mlib_s32 top, mlib_s32 right, mlib_s32 bottom);
18
19
21 The mlib_VideoColorYUV2ABGR420_WX3() function performs YUV to RGB color
22 conversion used in MPEG1 and MPEG2 video compression in the 4:2:0
23 sequence. It performs color conversion together with window clipping
24 and 3X zooming.
25
26
27 The luminance component is stored in Y, the chrominance components are
28 stored in U and V, respectively. The size of the chrominance image
29 depends on the chroma format used by the sequence. In this sequence,
30 the chrominance components are subsampled 2-to-1 in both the horizontal
31 and vertical directions in respect to the luminance component.
32
34 The function takes the following arguments:
35
36 abgr Pointer to the destination packed ABGR image. abgr must
37 be 8-byte aligned.
38
39
40 y Pointer to the source Y component. y must be 8-byte
41 aligned.
42
43
44 u Pointer to the source U component. u must be 4-byte
45 aligned.
46
47
48 v Pointer to the source V component. v must be 4-byte
49 aligned.
50
51
52 width Width of the image. width must be a multiple of 8.
53
54
55 height Height of the image. height must be a multiple of 2.
56
57
58 abgr_stride Stride, in bytes, between adjacent rows in the ABGR
59 image. abgr_stride must be a multiple of 8.
60
61
62 y_stride Stride, in bytes, between adjacent rows in the Y compo‐
63 nent image. y_stride must be a multiple of 8.
64
65
66 uv_stride Stride, in bytes, between adjacent rows in the U and V
67 component images. uv_stride must be a multiple of 8.
68
69
70 left Left border of clipping window. 0 ≤ left < right ≤
71 width.
72
73
74 top Top border of clipping window. 0 ≤ top < bottom ≤
75 height.
76
77
78 right Left border of clipping window. 0 ≤ left < right ≤
79 width.
80
81
82 bottom Bottom border of clipping window. 0 ≤ top < bottom ≤
83 height.
84
85
87 The function returns MLIB_SUCCESS if successful. Otherwise it returns
88 MLIB_FAILURE.
89
91 See attributes(5) for descriptions of the following attributes:
92
93
94
95
96 ┌─────────────────────────────┬─────────────────────────────┐
97 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
98 ├─────────────────────────────┼─────────────────────────────┤
99 │Interface Stability │Committed │
100 ├─────────────────────────────┼─────────────────────────────┤
101 │MT-Level │MT-Safe │
102 └─────────────────────────────┴─────────────────────────────┘
103
105 mlib_VideoColorYUV2ABGR420_W(3MLIB), mlib_VideoCol‐
106 orYUV2ABGR420_WX2(3MLIB), mlib_VideoColorYUV2ABGR420_X2(3MLIB),
107 mlib_VideoColorYUV2ABGR420_X3(3MLIB), attributes(5)
108
109
110
111SunOS 5.11 2 Mar 20m0l7ib_VideoColorYUV2ABGR420_WX3(3MLIB)