1mlib_VideoColorJFIFYCC2RGB4m4e4d_iSa1L6i(b3MLLiIbBrm)alriyb_FVuindcetoiCoonlsorJFIFYCC2RGB444_S16(3MLIB)
2
3
4

NAME

6       mlib_VideoColorJFIFYCC2RGB444_S16 - JFIF YCbCr to RGB color conversion
7

SYNOPSIS

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

DESCRIPTION

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

PARAMETERS

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

RETURN VALUES

56       The  function  returns MLIB_SUCCESS if successful. Otherwise it returns
57       MLIB_FAILURE.
58

ATTRIBUTES

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

SEE ALSO

74       mlib_VideoColorJFIFYCC2ABGR444(3MLIB),              mlib_VideoColorJFI‐
75       FYCC2ARGB444(3MLIB),              mlib_VideoColorJFIFYCC2RGB444(3MLIB),
76       attributes(5)
77
78
79
80SunOS 5.11                        23 Mamyli2b0_0V7ideoColorJFIFYCC2RGB444_S16(3MLIB)
Impressum