1mlib_VideoColorUYV444int_tom_eUdYiVaYL4i2bm2liLinibtb_(rV3aiMrdLyeIoBFC)uonlcotriUoYnVs444int_to_UYVY422int(3MLIB)
2
3
4
6 mlib_VideoColorUYV444int_to_UYVY422int - convert UYV interleaved with
7 subsampling
8
10 cc [ flag... ] file... -lmlib [ library... ]
11 #include <mlib.h>
12
13 void mlib_VideoColorUYV444int_to_UYVY422int(mlib_u32 *UYVY,
14 const mlib_u8 *UYV, mlib_s32 w,mlib_s32 h, mlib_s32 dlb,
15 mlib_s32 slb);
16
17
19 The UYV pixel stream is broken apart and recombined into a UYVY 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 UYVY[r][c/2] = (((U[r][c] + U[r][c+1]) / 2) << 24) |
30 (Y[r][c] << 16) |
31 (((V[r][c] + V[r][c+1]) / 2) << 8) |
32 (Y[r][c+1])
33
34
35
36 where r = 0, 1, 2, ..., h-1; and c = 0, 2, 4, ..., w-2.
37
39 The function takes the following arguments:
40
41 UYVY 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
60 None.
61
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
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_YUYV422int(3MLIB), attributes(5)
82
83
84
85SunOS 5.11 m2liMba_rVi2d0e0o7ColorUYV444int_to_UYVY422int(3MLIB)