1mlib_VideoColorYUV411seq_tom_eUdYiVaYL4i2bm2liLinibtb_(rV3aiMrdLyeIoBFC)uonlcotriYoUnVs411seq_to_UYVY422int(3MLIB)
2
3
4

NAME

6       mlib_VideoColorYUV411seq_to_UYVY422int  -  convert  YUV  sequential  to
7       interleaved
8

SYNOPSIS

10       cc [ flag... ] file... -lmlib [ library... ]
11       #include <mlib.h>
12
13            void mlib_VideoColorYUV411seq_to_UYVY422int(mlib_u32 *UYVY,
14            const mlib_u8 *Y,const mlib_u8 *U,
15            const mlib_u8 *V, mlib_s32 w,
16            mlib_s32 h, mlib_s32 dlb,
17            mlib_s32 ylb, mlib_s32 uvlb);
18
19

DESCRIPTION

21       The Y, U, V pixel streams are combined into a UYVY  pixel  stream.  All
22       pixel  components  are 8-bit unsigned integers. The Y buffer has dimen‐
23       sions w and h. The U and V buffers have dimensions w/4 and h. Dimension
24       w  is  assumed to be a multiple of 4. In each row, every 4 Y values use
25       the same U and V values.
26
27
28       The following equation is used:
29
30         UYVY[r][c/2]   = (U[r][c/4] << 24) |
31                          (Y[r][c]   << 16) |
32                          (V[r][c/4] << 8) |
33                          (Y[r][c+1])
34
35         UYVY[r][c/2+1] = (U[r][c/4] << 24) |
36                          (Y[r][c+2] << 16) |
37                          (V[r][c/4] << 8) |
38                          (Y[r][c+3])
39
40
41
42       where r = 0, 2, 4, ..., h-2; and c = 0, 2, 4, ..., w-2.
43

PARAMETERS

45       The function takes the following arguments:
46
47       UYVY    Pointer to output buffer.
48
49
50       Y       Pointer to Y input buffer.
51
52
53       U       Pointer to U input buffer.
54
55
56       V       Pointer to V input buffer.
57
58
59       w       Image width in pixels.
60
61
62       h       Image height in lines.
63
64
65       dlb     Linebytes for UYVY buffer.
66
67
68       ylb     Linebytes for Y buffer.
69
70
71       uvlb    Linebytes for U and V buffers.
72
73

RETURN VALUES

75       None.
76

ATTRIBUTES

78       See attributes(5) for descriptions of the following attributes:
79
80
81
82
83       ┌─────────────────────────────┬─────────────────────────────┐
84       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
85       ├─────────────────────────────┼─────────────────────────────┤
86       │Interface Stability          │Committed                    │
87       ├─────────────────────────────┼─────────────────────────────┤
88       │MT-Level                     │MT-Safe                      │
89       └─────────────────────────────┴─────────────────────────────┘
90

SEE ALSO

92       mlib_VideoColorYUV420seq_to_YUYV422int(3MLIB),           mlib_VideoCol‐
93       orYUV411seq_to_YUYV422int(3MLIB),                        mlib_VideoCol‐
94       orYUV422seq_to_YUYV422int(3MLIB),                        mlib_VideoCol‐
95       orYUV420seq_to_UYVY422int(3MLIB),                        mlib_VideoCol‐
96       orYUV422seq_to_UYVY422int(3MLIB), attributes(5)
97
98
99
100SunOS 5.11                       m2liMba_rVi2d0e0o7ColorYUV411seq_to_UYVY422int(3MLIB)
Impressum