1mlib_VideoColorUYV444int_tom_eYdUiYaVL4i2bm2liLinibtb_(rV3aiMrdLyeIoBFC)uonlcotriUoYnVs444int_to_YUYV422int(3MLIB)
2
3
4

NAME

6       mlib_VideoColorUYV444int_to_YUYV422int  -  convert UYV interleaved with
7       subsampling
8

SYNOPSIS

10       cc [ flag... ] file... -lmlib [ library... ]
11       #include <mlib.h>
12
13       void mlib_VideoColorUYV444int_to_YUYV422int(mlib_u32 *YUYV,
14            const mlib_u8 *UYV,mlib_s32 w,mlib_s32 h,
15            mlib_s32 dlb, mlib_s32 slb);
16
17

DESCRIPTION

19       The UYV pixel stream is broken apart and recombined into a  YUYV  pixel
20       stream.  All pixel components are 8-bit unsigned integers. The UYV buf‐
21       fer has dimensions w and h. Dimension w is assumed to be a multiple  of
22       2.  Adjacent U and V values are averaged to get the output U and V val‐
23       ues. The sequence of values in the input stream  is  U[r][c],  Y[r][c],
24       V[r][c], U[r][c+1], Y[r][c+1], V[r][c+1], ...
25
26
27       The following equation is used:
28
29         YUYV[r][c/2] = (Y[r][c]  << 24) |
30                        (((U[r][c] + U[r][c+1]) / 2) << 16) |
31                        (Y[r][c+1] << 8) |
32                        (((V[r][c] + V[r][c+1]) / 2))
33
34
35
36       where r = 0, 1, 2, ..., h-1; and c = 0, 2, 4, ..., w-2.
37

PARAMETERS

39       The function takes the following arguments:
40
41       YUYV    Pointer to output buffer.
42
43
44       UYV     Pointer to input buffer.
45
46
47       w       Image width in pixels.
48
49
50       h       Image height in lines.
51
52
53       dlb     Linebytes for output buffer.
54
55
56       slb     Linebytes for input buffer.
57
58

RETURN VALUES

60       None.
61

ATTRIBUTES

63       See attributes(5) for descriptions of the following attributes:
64
65
66
67
68       ┌─────────────────────────────┬─────────────────────────────┐
69       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
70       ├─────────────────────────────┼─────────────────────────────┤
71       │Interface Stability          │Committed                    │
72       ├─────────────────────────────┼─────────────────────────────┤
73       │MT-Level                     │MT-Safe                      │
74       └─────────────────────────────┴─────────────────────────────┘
75

SEE ALSO

77       mlib_VideoColorYUV444seq_to_YUYV422int(3MLIB),           mlib_VideoCol‐
78       orYUV444int_to_YUYV422int(3MLIB),                        mlib_VideoCol‐
79       orYUV444seq_to_UYVY422int(3MLIB),                        mlib_VideoCol‐
80       orYUV444int_to_UYVY422int(3MLIB),                        mlib_VideoCol‐
81       orUYV444int_to_UYVY422int(3MLIB), attributes(5)
82
83
84
85SunOS 5.11                       m2liMba_rVi2d0e0o7ColorUYV444int_to_YUYV422int(3MLIB)
Impressum