1mlib_VideoColorYUV422seq_tom_eUdYiVaYL4i2bm2liLinibtb_(rV3aiMrdLyeIoBFC)uonlcotriYoUnVs422seq_to_UYVY422int(3MLIB)
2
3
4

NAME

6       mlib_VideoColorYUV422seq_to_UYVY422int  -  convert  YUV  sequential  to
7       interleaved
8

SYNOPSIS

10       cc [ flag... ] file... -lmlib [ library... ]
11       #include <mlib.h>
12
13       void mlib_VideoColorYUV422seq_to_UYVY422int(mlib_u32 *UYVY,
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

DESCRIPTION

20       The Y, U, V pixel streams are combined into a UYVY  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_UYVY422int() except U and V are not  sampled  in  the  h
25       direction.
26
27
28       The following equation is used:
29
30         UYVY[r][c/2] = (U[r][c/2] << 24) |
31                        (Y[r][c]   << 16) |
32                        (V[r][c/2] << 8) |
33                        (Y[r][c+1])
34
35
36
37       where r = 0, 1, 2, ..., h-1; and c = 0, 2, 4, ..., w-2.
38

PARAMETERS

40       The function takes the following arguments:
41
42       UYVY    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 UYVY buffer.
61
62
63       ylb     Linebytes for Y buffer.
64
65
66       uvlb    Linebytes for U and V buffers.
67
68

RETURN VALUES

70       None.
71

ATTRIBUTES

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

SEE ALSO

87       mlib_VideoColorYUV420seq_to_YUYV422int(3MLIB),           mlib_VideoCol‐
88       orYUV411seq_to_YUYV422int(3MLIB),                        mlib_VideoCol‐
89       orYUV422seq_to_YUYV422int(3MLIB),                        mlib_VideoCol‐
90       orYUV420seq_to_UYVY422int(3MLIB),                        mlib_VideoCol‐
91       orYUV411seq_to_UYVY422int(3MLIB), attributes(5)
92
93
94
95SunOS 5.11                       m2liMba_rVi2d0e0o7ColorYUV422seq_to_UYVY422int(3MLIB)
Impressum