1mlib_VideoColorJFIFYCC2RGB4m4e4d(i3aMLLiIbB)LibrarymFluinbc_tViiodnesoColorJFIFYCC2RGB444(3MLIB)
2
3
4
6 mlib_VideoColorJFIFYCC2RGB444 - JFIF YCbCr to RGB color conversion
7
9 cc [ flag... ] file... -lmlib [ library... ]
10 #include <mlib.h>
11
12 mlib_status mlib_VideoColorJFIFYCC2RGB444(mlib_u8 *rgb, const mlib_u8 *y,
13 const mlib_u8 *cb, const mlib_u8 *cr, mlib_s32 n);
14
15
17 The mlib_VideoColorJFIFYCC2RGB444() function performs color space con‐
18 version from YCbCr to RGB when used in the JPEG File Interchange Format
19 (JFIF).
20
21
22 The following equation is used:
23
24 R = Y + 1.40200 * (Cr - 128)
25 G = Y - 0.34414 * (Cb - 128) - 0.71414 * (Cr - 128)
26 B = Y + 1.77200 * (Cb - 128)
27
28
30 The function takes the following arguments:
31
32 rgb Pointer to destination RGB multi-component row. rgb must be
33 8-byte aligned.
34
35
36 y Pointer to source Y component row. y must be 8-byte aligned.
37
38
39 cb Pointer to source Cb component row. cb must be 8-byte aligned.
40
41
42 cr Pointer to source Cr component row. cr must be 8-byte aligned.
43
44
45 n Length of Y component row. The length of Cb and Cr component
46 rows must be n. The length of the RGB multi-component row must
47 be 3*n.
48
49
51 The function returns MLIB_SUCCESS if successful. Otherwise it returns
52 MLIB_FAILURE.
53
55 See attributes(5) for descriptions of the following attributes:
56
57
58
59
60 ┌─────────────────────────────┬─────────────────────────────┐
61 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
62 ├─────────────────────────────┼─────────────────────────────┤
63 │Interface Stability │Committed │
64 ├─────────────────────────────┼─────────────────────────────┤
65 │MT-Level │MT-Safe │
66 └─────────────────────────────┴─────────────────────────────┘
67
69 mlib_VideoColorJFIFYCC2ABGR444(3MLIB), mlib_VideoColorJFI‐
70 FYCC2ARGB444(3MLIB), mlib_VideoColorJFIFYCC2RGB444_S16(3MLIB),
71 attributes(5)
72
73
74
75SunOS 5.11 23 May 20m0l7ib_VideoColorJFIFYCC2RGB444(3MLIB)