1mlib_VideoColorYUV444seq_tom_eUdYiVaYL4i2bm2liLinibtb_(rV3aiMrdLyeIoBFC)uonlcotriYoUnVs444seq_to_UYVY422int(3MLIB)
2
3
4
6 mlib_VideoColorYUV444seq_to_UYVY422int - convert YUV sequential to
7 interleaved with subsampling
8
10 cc [ flag... ] file... -lmlib [ library... ]
11 #include <mlib.h>
12
13 void mlib_VideoColorYUV444seq_to_UYVY422int(mlib_u32 *UYVY,
14 const mlib_u8 *Y, const mlib_u8 *U, const mlib_u8 *V, mlib_s32 w,
15 mlib_s32 h, mlib_s32 dlb, mlib_s32 slb);
16
17
19 The Y, U, V pixel streams are combined into a UYVY pixel stream. All
20 pixel components are 8-bit unsigned integers. The Y, U, and V buffers
21 have dimensions w and h. Dimension w is assumed to be a multiple of 2.
22 Adjacent U and V values are averaged to get the output U and V values.
23
24
25 The following equation is used:
26
27 UYVY[r][c/2] = (((U[r][c] + U[r][c+1]) / 2) << 24) |
28 (Y[r][c] << 16) |
29 (((V[r][c] + V[r][c+1]) / 2) << 8) |
30 (Y[r][c+1])
31
32
33
34 where r = 0, 1, 2, ..., h-1; and c = 0, 2, 4, ..., w-2.
35
37 The function takes the following arguments:
38
39 UYVY Pointer to output buffer.
40
41
42 Y Pointer to Y input buffer.
43
44
45 U Pointer to U input buffer.
46
47
48 V Pointer to V input buffer.
49
50
51 w Image width in pixels.
52
53
54 h Image height in lines.
55
56
57 dlb Linebytes for output buffer.
58
59
60 slb Linebytes for input buffers.
61
62
64 None.
65
67 See attributes(5) for descriptions of the following attributes:
68
69
70
71
72 ┌─────────────────────────────┬─────────────────────────────┐
73 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
74 ├─────────────────────────────┼─────────────────────────────┤
75 │Interface Stability │Committed │
76 ├─────────────────────────────┼─────────────────────────────┤
77 │MT-Level │MT-Safe │
78 └─────────────────────────────┴─────────────────────────────┘
79
81 mlib_VideoColorYUV444seq_to_YUYV422int(3MLIB), mlib_VideoCol‐
82 orYUV444int_to_YUYV422int(3MLIB), mlib_VideoCol‐
83 orYUV444int_to_UYVY422int(3MLIB), attributes(5)
84
85
86
87SunOS 5.11 m2liMba_rVi2d0e0o7ColorYUV444seq_to_UYVY422int(3MLIB)