1mlib_VideoColorYUV422seq_tom_eYdUiYaVL4i2bm2liLinibtb_(rV3aiMrdLyeIoBFC)uonlcotriYoUnVs422seq_to_YUYV422int(3MLIB)
2
3
4
6 mlib_VideoColorYUV422seq_to_YUYV422int - convert YUV sequential to
7 interleaved
8
10 cc [ flag... ] file... -lmlib [ library... ]
11 #include <mlib.h>
12
13 void mlib_VideoColorYUV422seq_to_YUYV422int(mlib_u32 *YUYV,
14 const mlib_u8 *Y, const mlib_u8 *U, const mlib_u8 *V,
15 mlib_s32 w, mlib_s32 h, mlib_s32 dlb,
16 mlib_s32 ylb, mlib_s32 uvlb);
17
18
20 The Y, U, V pixel streams are combined into a YUYV pixel stream. All
21 pixel components are 8-bit unsigned integers. The Y buffer has dimen‐
22 sions w and h. The U and V buffers have dimensions w/2 and h. Dimen‐
23 sions w and h are assumed to be even. Similar to mlib_VideoCol‐
24 orYUV420seq_to_YUYV422int() except U and V are not sampled in the h
25 direction.
26
27
28 The following equation is used:
29
30 YUYV[r][c/2] = (Y[r][c] << 24) |
31 (U[r][c/2] << 16) |
32 (Y[r][c+1] << 8) |
33 (V[r][c/2])
34
35
36
37 where r = 0, 1, 2, ..., h-1; and c = 0, 2, 4, ..., w-2.
38
40 The function takes the following arguments:
41
42 YUYV Pointer to output buffer.
43
44
45 Y Pointer to Y input buffer.
46
47
48 U Pointer to U input buffer.
49
50
51 V Pointer to V input buffer.
52
53
54 w Image width in pixels.
55
56
57 h Image height in lines.
58
59
60 dlb Linebytes for YUYV buffer.
61
62
63 ylb Linebytes for Y buffer.
64
65
66 uvlb Linebytes for U and V buffers.
67
68
70 None.
71
73 See attributes(5) for descriptions of the following attributes:
74
75
76
77
78 ┌─────────────────────────────┬─────────────────────────────┐
79 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
80 ├─────────────────────────────┼─────────────────────────────┤
81 │Interface Stability │Committed │
82 ├─────────────────────────────┼─────────────────────────────┤
83 │MT-Level │MT-Safe │
84 └─────────────────────────────┴─────────────────────────────┘
85
87 mlib_VideoColorYUV420seq_to_YUYV422int(3MLIB), mlib_VideoCol‐
88 orYUV411seq_to_YUYV422int(3MLIB), mlib_VideoCol‐
89 orYUV420seq_to_UYVY422int(3MLIB), mlib_VideoCol‐
90 orYUV411seq_to_UYVY422int(3MLIB), mlib_VideoCol‐
91 orYUV422seq_to_UYVY422int(3MLIB), attributes(5)
92
93
94
95SunOS 5.11 m2liMba_rVi2d0e0o7ColorYUV422seq_to_YUYV422int(3MLIB)