1mlib_VideoColorBGR2JFIFYCC4m2e2d(i3aMLLiIbB)LibrarymFluinbc_tViiodnesoColorBGR2JFIFYCC422(3MLIB)
2
3
4
6 mlib_VideoColorBGR2JFIFYCC422 - BGR to JFIF YCbCr color conversion
7
9 cc [ flag... ] file... -lmlib [ library... ]
10 #include <mlib.h>
11
12 mlib_status mlib_VideoColorBGR2JFIFYCC422(mlib_u8 *y, mlib_u8 *cb,
13 mlib_u8 *cr, const mlib_u8 *bgr, mlib_s32 n);
14
15
17 The mlib_VideoColorBGR2JFIFYCC422() function performs color space con‐
18 version from BGR to YCbCr together with sampling rate conversion when
19 used in the JPEG File Interchange Format (JFIF).
20
22 The function takes the following arguments:
23
24 y Pointer to destination Y component row. y must be 8-byte
25 aligned.
26
27
28 cb Pointer to destination Cb component row. cb must be 8-byte
29 aligned.
30
31
32 cr Pointer to destination Cr component row. cr must be 8-byte
33 aligned.
34
35
36 bgr Pointer to source BGR multi-component row. bgr must be 8-byte
37 aligned.
38
39
40 n Length of Y component row. n must be even. The length of Cb and
41 Cr component rows must be n/2. The length of the BGR multi-com‐
42 ponent row must be 3*n.
43
44
46 The function returns MLIB_SUCCESS if successful. Otherwise it returns
47 MLIB_FAILURE.
48
50 See attributes(5) for descriptions of the following attributes:
51
52
53
54
55 ┌─────────────────────────────┬─────────────────────────────┐
56 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
57 ├─────────────────────────────┼─────────────────────────────┤
58 │Interface Stability │Committed │
59 ├─────────────────────────────┼─────────────────────────────┤
60 │MT-Level │MT-Safe │
61 └─────────────────────────────┴─────────────────────────────┘
62
64 mlib_VideoColorBGR2JFIFYCC420(3MLIB), mlib_VideoColorBGR2JFI‐
65 FYCC444(3MLIB), mlib_VideoColorBGR2JFIFYCC444_S16(3MLIB), attributes(5)
66
67
68
69SunOS 5.11 2 Mar 200m7lib_VideoColorBGR2JFIFYCC422(3MLIB)