1mlib_VideoColorABGR2JFIFYCCm4e2d0i(a3LMiLbIBL)ibrarymlFiubn_cVtiidoenosColorABGR2JFIFYCC420(3MLIB)
2
3
4
6 mlib_VideoColorABGR2JFIFYCC420 - ABGR to JFIF YCbCr color conversion
7
9 cc [ flag... ] file... -lmlib [ library... ]
10 #include <mlib.h>
11
12 mlib_status mlib_VideoColorABGR2JFIFYCC420(mlib_u8 *y0,
13 mlib_u8 *y1, mlib_u8 *cb, mlib_u8 *cr, const mlib_u8 *abgr0,
14 const mlib_u8 *abgr1, mlib_s32 n);
15
16
18 The mlib_VideoColorABGR2JFIFYCC420() function performs color space con‐
19 version from ABGR 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
26 8-byte aligned.
27
28
29 y1 Pointer to lower destination Y component row. y1 must be
30 8-byte 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 abgr0 Pointer to upper source ABGR multi-component row. abgr0 must
42 be 8-byte aligned.
43
44
45 abgr1 Pointer to lower source ABGR multi-component row. abgr1 must
46 be 8-byte aligned.
47
48
49 n Length of Y component row. n must be even. The length of Cb
50 and Cr component rows must be n/2. The length of the ABGR
51 multi-component row must be 4*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_VideoColorABGR2JFIFYCC422(3MLIB), mlib_VideoColorARGB2JFI‐
74 FYCC420(3MLIB), mlib_VideoColorARGB2JFIFYCC422(3MLIB), mlib_VideoColor‐
75 RGB2JFIFYCC420(3MLIB), mlib_VideoColorRGB2JFIFYCC422(3MLIB),
76 attributes(5)
77
78
79
80SunOS 5.11 23 May 2m0l0i7b_VideoColorABGR2JFIFYCC420(3MLIB)