1mlib_VideoColorBGR2JFIFYCC4m4e4d(i3aMLLiIbB)LibrarymFluinbc_tViiodnesoColorBGR2JFIFYCC444(3MLIB)
2
3
4

NAME

6       mlib_VideoColorBGR2JFIFYCC444 - BGR to JFIF YCbCr color conversion
7

SYNOPSIS

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

DESCRIPTION

17       The  mlib_VideoColorBGR2JFIFYCC444() function performs color space con‐
18       version from BGR 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       bgr    Pointer to source BGR multi-component row. bgr  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 BGR 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_VideoColorBGR2JFIFYCC420(3MLIB),           mlib_VideoColorBGR2JFI‐
73       FYCC422(3MLIB), mlib_VideoColorBGR2JFIFYCC444_S16(3MLIB), attributes(5)
74
75
76
77SunOS 5.11                        23 May 20m0l7ib_VideoColorBGR2JFIFYCC444(3MLIB)
Impressum