1mlib_VideoColorRGB2JFIFYCC4m2e0d(i3aMLLiIbB)LibrarymFluinbc_tViiodnesoColorRGB2JFIFYCC420(3MLIB)
2
3
4
6 mlib_VideoColorRGB2JFIFYCC420 - RGB to JFIF YCbCr color conversion
7
9 cc [ flag... ] file... -lmlib [ library... ]
10 #include <mlib.h>
11
12 mlib_status mlib_VideoColorRGB2JFIFYCC420(mlib_u8 *y0, mlib_u8 *y1,
13 mlib_u8 *cb, mlib_u8 *cr, const mlib_u8 *rgb0, const mlib_u8 *rgb1,
14 mlib_s32 n);
15
16
18 The mlib_VideoColorRGB2JFIFYCC420() function performs color space con‐
19 version from RGB to YCbCr together with sampling rate conversion when
20 used in the JPEG File Interchange Format (JFIF).
21
23 The function takes the following arguments:
24
25 y0 Pointer to upper destination Y component row. y0 must be 8-byte
26 aligned.
27
28
29 y1 Pointer to lower destination Y component row. y1 must be 8-byte
30 aligned.
31
32
33 cb Pointer to destination Cb component row. cb must be 8-byte
34 aligned.
35
36
37 cr Pointer to destination Cr component row. cr must be 8-byte
38 aligned.
39
40
41 rgb0 Pointer to upper source RGB multi-component row. rgb0 must be
42 8-byte aligned.
43
44
45 rgb1 Pointer to lower source RGB multi-component row. rgb1 must be
46 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_VideoColorABGR2JFIFYCC420(3MLIB), mlib_VideoColorABGR2JFI‐
74 FYCC422(3MLIB), mlib_VideoColorARGB2JFIFYCC420(3MLIB), mlib_VideoCol‐
75 orARGB2JFIFYCC422(3MLIB), mlib_VideoColorRGB2JFIFYCC422(3MLIB),
76 attributes(5)
77
78
79
80SunOS 5.11 2 Mar 200m7lib_VideoColorRGB2JFIFYCC420(3MLIB)