1mlib_VideoColorYUV2ABGR420_mWe(d3iMaLLIiBb)Library Fmulnicbt_iVoindseoColorYUV2ABGR420_W(3MLIB)
2
3
4

NAME

6       mlib_VideoColorYUV2ABGR420_W - YUV to RGB color conversion
7

SYNOPSIS

9       cc [ flag... ] file... -lmlib [ library... ]
10       #include <mlib.h>
11
12       mlib_status mlib_VideoColorYUV2ABGR420_W(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_W()  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
24
25       The  luminance component is stored in Y, the chrominance components are
26       stored in U and V, respectively. The  size  of  the  chrominance  image
27       depends  on  the  chroma format used by the sequence. In this sequence,
28       the chrominance components are subsampled 2-to-1 in both the horizontal
29       and vertical directions in respect to the luminance component.
30

PARAMETERS

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

RETURN VALUES

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

ATTRIBUTES

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

SEE ALSO

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