1mlib_VideoColorRGB2JFIFYCC4m4e4d(i3aMLLiIbB)LibrarymFluinbc_tViiodnesoColorRGB2JFIFYCC444(3MLIB)
2
3
4

NAME

6       mlib_VideoColorRGB2JFIFYCC444 - RGB to JFIF YCbCr color conversion
7

SYNOPSIS

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

DESCRIPTION

17       The  mlib_VideoColorRGB2JFIFYCC444() function performs color space con‐
18       version from RGB to YCbCr when used in the JPEG File Interchange Format
19       (JFIF).
20
21
22       The following equation is used:
23
24         Y  =  0.29900 * R + 0.58700 * G + 0.11400 * B
25         Cb = -0.16874 * R - 0.33126 * G + 0.50000 * B  + 128
26         Cr =  0.50000 * R - 0.41869 * G - 0.08131 * B  + 128
27
28

PARAMETERS

30       The function takes the following arguments:
31
32       y      Pointer  to  destination  Y  component  row.  y  must  be 8-byte
33              aligned.
34
35
36       cb     Pointer to destination Cb  component  row.  cb  must  be  8-byte
37              aligned.
38
39
40       cr     Pointer  to  destination  Cr  component  row.  cr must be 8-byte
41              aligned.
42
43
44       rgb    Pointer to source RGB multi-component row. rgb  must  be  8-byte
45              aligned.
46
47
48       n      Length  of  Y  component  row. The length of Cb and Cr component
49              rows must be n. The length of the RGB multi-component  row  must
50              be 3*n.
51
52

RETURN VALUES

54       The  function  returns MLIB_SUCCESS if successful. Otherwise it returns
55       MLIB_FAILURE.
56

ATTRIBUTES

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

SEE ALSO

72       mlib_VideoColorABGR2JFIFYCC444(3MLIB),         mlib_VideoColorARGB2JFI‐
73       FYCC444(3MLIB), mlib_VideoColorRGB2JFIFYCC444_S16(3MLIB), attributes(5)
74
75
76
77SunOS 5.11                        23 May 20m0l7ib_VideoColorRGB2JFIFYCC444(3MLIB)
Impressum