1mlib_VideoColorYUV2ABGR420_mWeXd2i(a3LMiLbIBL)ibrarymlFiubn_cVtiidoenosColorYUV2ABGR420_WX2(3MLIB)
2
3
4

NAME

6       mlib_VideoColorYUV2ABGR420_WX2 - YUV to RGB color conversion
7

SYNOPSIS

9       cc [ flag... ] file... -lmlib [ library... ]
10       #include <mlib.h>
11
12       mlib_status mlib_VideoColorYUV2ABGR420_WX2(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            mlib_s32 left, mlib_s32 top, mlib_s32 right,
16            mlib_s32 bottom);
17
18

DESCRIPTION

20       The mlib_VideoColorYUV2ABGR420_WX2() function performs YUV to RGB color
21       conversion used in MPEG1 and  MPEG2  video  compression  in  the  4:2:0
22       sequence.  It  performs  color conversion together with window clipping
23       and 2X zooming.
24
25
26       The luminance component is stored in Y, the chrominance components  are
27       stored  in  U  and  V,  respectively. The size of the chrominance image
28       depends on the chroma format used by the sequence.  In  this  sequence,
29       the chrominance components are subsampled 2-to-1 in both the horizontal
30       and vertical directions in respect to the luminance component.
31

PARAMETERS

33       The function takes the following arguments:
34
35       abgr           Pointer to the destination packed ABGR image. abgr  must
36                      be 8-byte aligned.
37
38
39       y              Pointer  to  the  source  Y  component. y must be 8-byte
40                      aligned.
41
42
43       u              Pointer to the source U  component.  u  must  be  4-byte
44                      aligned.
45
46
47       v              Pointer  to  the  source  V  component. v must be 4-byte
48                      aligned.
49
50
51       width          Width of the image. width must be a multiple of 8.
52
53
54       height         Height of the image. height must be a multiple of 2.
55
56
57       abgr_stride    Stride, in bytes, between  adjacent  rows  in  the  ABGR
58                      image. abgr_stride must be a multiple of 8.
59
60
61       y_stride       Stride,  in bytes, between adjacent rows in the Y compo‐
62                      nent image. y_stride must be a multiple of 8.
63
64
65       uv_stride      Stride, in bytes, between adjacent rows in the U  and  V
66                      component images. uv_stride must be a multiple of 8.
67
68
69       left           Left  border  of  clipping  window.  0  ≤ left < right ≤
70                      width.
71
72
73       top            Top border of clipping  window.  0  ≤  top  <  bottom  ≤
74                      height.
75
76
77       right          Left  border  of  clipping  window.  0  ≤ left < right ≤
78                      width.
79
80
81       bottom         Bottom border of clipping window. 0 ≤  top  <  bottom  ≤
82                      height.
83
84

RETURN VALUES

86       The  function  returns MLIB_SUCCESS if successful. Otherwise it returns
87       MLIB_FAILURE.
88

ATTRIBUTES

90       See attributes(5) for descriptions of the following attributes:
91
92
93
94
95       ┌─────────────────────────────┬─────────────────────────────┐
96       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
97       ├─────────────────────────────┼─────────────────────────────┤
98       │Interface Stability          │Committed                    │
99       ├─────────────────────────────┼─────────────────────────────┤
100       │MT-Level                     │MT-Safe                      │
101       └─────────────────────────────┴─────────────────────────────┘
102

SEE ALSO

104       mlib_VideoColorYUV2ABGR420_W(3MLIB),                     mlib_VideoCol‐
105       orYUV2ABGR420_WX3(3MLIB),         mlib_VideoColorYUV2ABGR420_X2(3MLIB),
106       mlib_VideoColorYUV2ABGR420_X3(3MLIB), attributes(5)
107
108
109
110SunOS 5.11                        2 Mar 20m0l7ib_VideoColorYUV2ABGR420_WX2(3MLIB)
Impressum