1mlib_VideoColorJFIFYCCK2CMYmKe4d4i4a(L3iMbLILBi)brarmyliFbu_nVcitdieoonCsolorJFIFYCCK2CMYK444(3MLIB)
2
3
4

NAME

6       mlib_VideoColorJFIFYCCK2CMYK444 - JFIF YCbCr to CMYK color conversion
7

SYNOPSIS

9       cc [ flag... ] file... -lmlib [ library... ]
10       #include <mlib.h>
11
12       mlib_status mlib_VideoColorJFIFYCCK2CMYK444(mlib_u8 *cmyk,
13            const mlib_u8 *y, const mlib_u8 *cb,
14            const mlib_u8 *cr, const mlib_u8 *k,
15            mlib_s32 n);
16
17

DESCRIPTION

19       The  mlib_VideoColorJFIFYCCK2CMYK444()  function  performs  color space
20       conversion from YCbCrK to CMYK when used in the JPEG  File  Interchange
21       Format (JFIF).
22
23
24       The following equation is used:
25
26         R = Y                        + 1.40200 * (Cr - 128)
27         G = Y - 0.34414 * (Cb - 128) - 0.71414 * (Cr - 128)
28         B = Y + 1.77200 * (Cb - 128)
29         C = (255 - R)
30         M = (255 - G)
31         Y = (255 - B)
32         K = K
33
34

PARAMETERS

36       The function takes the following arguments:
37
38       cmyk    Pointer  to  destination CMYK multi-component row. cmyk must be
39               8-byte aligned.
40
41
42       y       Pointer to source Y component row. y must be 8-byte aligned.
43
44
45       cb      Pointer to source Cb component row. cb must be 8-byte aligned.
46
47
48       cr      Pointer to source Cr component row. cr must be 8-byte aligned.
49
50
51       k       Pointer to source K component row. k must be 8-byte aligned.
52
53
54       n       Length of Y, Cb, Cr, and K component rows. The  length  of  the
55               CMYK multi-component row must be 4*n.
56
57

RETURN VALUES

59       The  function  returns MLIB_SUCCESS if successful. Otherwise it returns
60       MLIB_FAILURE.
61

ATTRIBUTES

63       See attributes(5) for descriptions of the following attributes:
64
65
66
67
68       ┌─────────────────────────────┬─────────────────────────────┐
69       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
70       ├─────────────────────────────┼─────────────────────────────┤
71       │Interface Stability          │Committed                    │
72       ├─────────────────────────────┼─────────────────────────────┤
73       │MT-Level                     │MT-Safe                      │
74       └─────────────────────────────┴─────────────────────────────┘
75

SEE ALSO

77       mlib_VideoColorCMYK2JFIFYCCK444(3MLIB), attributes(5)
78
79
80
81SunOS 5.11                        23 Maym2l0i0b7_VideoColorJFIFYCCK2CMYK444(3MLIB)
Impressum