1mlib_VideoColorJFIFYCC2RGB4m2e0d_iNaeLairbemsLltii(bb3r_MaVLriIydBe)FouCnocltoiroJnFsIFYCC2RGB420_Nearest(3MLIB)
2
3
4
6 mlib_VideoColorJFIFYCC2RGB420_Nearest - JFIF YCbCr to RGB color conver‐
7 sion
8
10 cc [ flag... ] file... -lmlib [ library... ]
11 #include <mlib.h>
12
13 mlib_status mlib_VideoColorJFIFYCC2RGB420_Nearest(mlib_u8 *rgb0,
14 mlib_u8 *rgb1, const mlib_u8 *y0,
15 const mlib_u8 *y1, const mlib_u8 *cb,
16 const mlib_u8 *cr, mlib_s32 n);
17
18
20 The mlib_VideoColorJFIFYCC2RGB420_Nearest() function performs color
21 space conversion from YCbCr to RGB together with sampling rate conver‐
22 sion when used in the JPEG File Interchange Format (JFIF).
23
25 The function takes the following arguments:
26
27 rgb0 Pointer to upper destination RGB multi-component row. rgb0 must
28 be 8-byte aligned.
29
30
31 rgb1 Pointer to lower destination RGB multi-component row. rgb1 must
32 be 8-byte aligned.
33
34
35 y0 Pointer to upper destination Y component row. y0 must be 8-byte
36 aligned.
37
38
39 y1 Pointer to lower destination Y component row. y1 must be 8-byte
40 aligned.
41
42
43 cb Pointer to source Cb component row. cb must be 8-byte aligned.
44
45
46 cr Pointer to source Cr component row. cr must be 8-byte aligned.
47
48
49 n Length of Y component row. n must be even. The length of Cb and
50 Cr component rows must be n/2. The length of the RGB multi-com‐
51 ponent row must be 3*n.
52
53
55 The function returns MLIB_SUCCESS if successful. Otherwise it returns
56 MLIB_FAILURE.
57
59 See attributes(5) for descriptions of the following attributes:
60
61
62
63
64 ┌─────────────────────────────┬─────────────────────────────┐
65 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
66 ├─────────────────────────────┼─────────────────────────────┤
67 │Interface Stability │Committed │
68 ├─────────────────────────────┼─────────────────────────────┤
69 │MT-Level │MT-Safe │
70 └─────────────────────────────┴─────────────────────────────┘
71
73 mlib_VideoColorJFIFYCC2RGB420(3MLIB), mlib_VideoColorJFI‐
74 FYCC2RGB422(3MLIB), mlib_VideoColorJFIFYCC2RGB422_Nearest(3MLIB),
75 attributes(5)
76
77
78
79SunOS 5.11 2m3liMba_yVi2d0e0o7ColorJFIFYCC2RGB420_Nearest(3MLIB)