1mlib_VideoColorRGB2JFIFYCC4m4e4d_iSa1L6i(b3MLLiIbBrm)alriyb_FVuindcetoiCoonlsorRGB2JFIFYCC444_S16(3MLIB)
2
3
4

NAME

6       mlib_VideoColorRGB2JFIFYCC444_S16 - RGB to JFIF YCbCr color conversion
7

SYNOPSIS

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

DESCRIPTION

17       The  mlib_VideoColorRGB2JFIFYCC444_S16()  function performs color space
18       conversion from RGB to YCbCr when used in  the  JPEG  File  Interchange
19       Format (JFIF).
20
21
22       Both  the input RGB components and the output YCbCr components are sup‐
23       posed to be in the range of [0, 4095].
24
25
26       The following equation is used:
27
28         Y  =  0.29900 * R + 0.58700 * G + 0.11400 * B
29         Cb = -0.16874 * R - 0.33126 * G + 0.50000 * B  + 2048
30         Cr =  0.50000 * R - 0.41869 * G - 0.08131 * B  + 2048
31
32

PARAMETERS

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       rgb    Pointer  to  source  RGB multi-component row. rgb must be 8-byte
49              aligned.
50
51
52       n      Length of Y component row. The length of  Cb  and  Cr  component
53              rows  must  be n. The length of the RGB multi-component row must
54              be 3*n.
55
56

RETURN VALUES

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

ATTRIBUTES

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

SEE ALSO

76       mlib_VideoColorABGR2JFIFYCC444(3MLIB),         mlib_VideoColorARGB2JFI‐
77       FYCC444(3MLIB), mlib_VideoColorRGB2JFIFYCC444(3MLIB), attributes(5)
78
79
80
81SunOS 5.11                        23 Mamyli2b0_0V7ideoColorRGB2JFIFYCC444_S16(3MLIB)
Impressum