1mlib_VideoColorCMYK2JFIFYCCmKe4d4i4a(L3iMbLILBi)brarmyliFbu_nVcitdieoonCsolorCMYK2JFIFYCCK444(3MLIB)
2
3
4
6 mlib_VideoColorCMYK2JFIFYCCK444 - CMYK to JFIF YCbCr color conversion
7
9 cc [ flag... ] file... -lmlib [ library... ]
10 #include <mlib.h>
11
12 mlib_status mlib_VideoColorCMYK2JFIFYCCK444(mlib_u8 *y, mlib_u8 *cb,
13 mlib_u8 *cr, mlib_u8 *k, const mlib_u8 *cmyk, mlib_s32 n);
14
15
17 The mlib_VideoColorCMYK2JFIFYCCK444() function performs color space
18 conversion from CMYK to YCbCrK when used in the JPEG File Interchange
19 Format (JFIF).
20
21
22 The following equation is used:
23
24 R = (255 - C)
25 G = (255 - M)
26 B = (255 - Y)
27 Y = 0.29900 * R + 0.58700 * G + 0.11400 * B
28 Cb = -0.16874 * R - 0.33126 * G + 0.50000 * B + 128
29 Cr = 0.50000 * R - 0.41869 * G - 0.08131 * B + 128
30 K = K
31
32
34 The function takes the following arguments:
35
36 y Pointer to destination Y component row. y must be 8-byte
37 aligned.
38
39
40 cb Pointer to destination Cb component row. cb must be 8-byte
41 aligned.
42
43
44 cr Pointer to destination Cr component row. cr must be 8-byte
45 aligned.
46
47
48 k Pointer to destination K component row. k must be 8-byte
49 aligned.
50
51
52 cmyk Pointer to source CMYK multi-component row. cmyk must be 8-byte
53 aligned.
54
55
56 n Length of Y,Cb,Cr, and K component rows. The length of the CMYK
57 multi-component row must be 4*n.
58
59
61 The function returns MLIB_SUCCESS if successful. Otherwise it returns
62 MLIB_FAILURE.
63
65 See attributes(5) for descriptions of the following attributes:
66
67
68
69
70 ┌─────────────────────────────┬─────────────────────────────┐
71 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
72 ├─────────────────────────────┼─────────────────────────────┤
73 │Interface Stability │Committed │
74 ├─────────────────────────────┼─────────────────────────────┤
75 │MT-Level │MT-Safe │
76 └─────────────────────────────┴─────────────────────────────┘
77
79 mlib_VideoColorJFIFYCCK2CMYK444(3MLIB), attributes(5)
80
81
82
83SunOS 5.11 23 Maym2l0i0b7_VideoColorCMYK2JFIFYCCK444(3MLIB)