1mlib_VideoColorYUV2ABGR420_mXe2d(i3aMLLiIbB)LibrarymFluinbc_tViiodnesoColorYUV2ABGR420_X2(3MLIB)
2
3
4
6 mlib_VideoColorYUV2ABGR420_X2 - YUV to RGB color conversion
7
9 cc [ flag... ] file... -lmlib [ library... ]
10 #include <mlib.h>
11
12 mlib_status mlib_VideoColorYUV2ABGR420_X2(mlib_u8 *abgr, const mlib_u8 *y,
13 const mlib_u8 *u, const mlib_u8 *v, mlib_s32 width, mlib_s32 height,
14 mlib_s32 abgr_stride, mlib_s32 y_stride, mlib_s32 uv_stride);
15
16
18 The mlib_VideoColorYUV2ABGR420_X2() function performs YUV to RGB color
19 conversion used in MPEG1 and MPEG2 video compression in the 4:2:0
20 sequence. It performs color conversion together with 2X zooming.
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 both the horizontal
27 and vertical directions in respect to the luminance component.
28
30 The function takes the following arguments:
31
32 abgr Pointer to the destination packed ABGR image. abgr must
33 be 8-byte aligned.
34
35
36 y Pointer to the source Y component. y must be 8-byte
37 aligned.
38
39
40 u Pointer to the source U component. u must be 4-byte
41 aligned.
42
43
44 v Pointer to the source V component. v must be 4-byte
45 aligned.
46
47
48 width Width of the image. width must be a multiple of 8.
49
50
51 height Height of the image. height must be a multiple of 2.
52
53
54 abgr_stride Stride, in bytes, between adjacent rows in the ABGR
55 image. abgr_stride must be a multiple of 8.
56
57
58 y_stride Stride, in bytes, between adjacent rows in the Y compo‐
59 nent image. y_stride must be a multiple of 8.
60
61
62 uv_stride Stride, in bytes, between adjacent rows in the U and V
63 component images. uv_stride must be a multiple of 8.
64
65
67 The function returns MLIB_SUCCESS if successful. Otherwise it returns
68 MLIB_FAILURE.
69
71 See attributes(5) for descriptions of the following attributes:
72
73
74
75
76 ┌─────────────────────────────┬─────────────────────────────┐
77 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
78 ├─────────────────────────────┼─────────────────────────────┤
79 │Interface Stability │Committed │
80 ├─────────────────────────────┼─────────────────────────────┤
81 │MT-Level │MT-Safe │
82 └─────────────────────────────┴─────────────────────────────┘
83
85 mlib_VideoColorYUV2ABGR420_W(3MLIB), mlib_VideoCol‐
86 orYUV2ABGR420_WX2(3MLIB), mlib_VideoColorYUV2ABGR420_WX3(3MLIB),
87 mlib_VideoColorYUV2ABGR420_X3(3MLIB), attributes(5)
88
89
90
91SunOS 5.11 2 Mar 200m7lib_VideoColorYUV2ABGR420_X2(3MLIB)