1mlib_VideoColorBGR2JFIFYCC4m4e4d_iSa1L6i(b3MLLiIbBrm)alriyb_FVuindcetoiCoonlsorBGR2JFIFYCC444_S16(3MLIB)
2
3
4

NAME

6       mlib_VideoColorBGR2JFIFYCC444_S16 - BGR to JFIF YCbCr color conversion
7

SYNOPSIS

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

DESCRIPTION

17       The  mlib_VideoColorBGR2JFIFYCC444_S16()  function performs color space
18       conversion from BGR to YCbCr when used in  the  JPEG  File  Interchange
19       Format (JFIF).
20
21
22       Both  the input BGR 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       bgr    Pointer  to  source  BGR multi-component row. bgr 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 BGR 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_VideoColorBGR2JFIFYCC420(3MLIB),           mlib_VideoColorBGR2JFI‐
77       FYCC422(3MLIB), mlib_VideoColorBGR2JFIFYCC444(3MLIB), attributes(5)
78
79
80
81SunOS 5.11                        23 Mamyli2b0_0V7ideoColorBGR2JFIFYCC444_S16(3MLIB)
Impressum