1mlib_VideoColorJFIFYCC2ARGBm4e4d4i(a3LMiLbIBL)ibrarymlFiubn_cVtiidoenosColorJFIFYCC2ARGB444(3MLIB)
2
3
4

NAME

6       mlib_VideoColorJFIFYCC2ARGB444 - JFIF YCbCr to ARGB color conversion
7

SYNOPSIS

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

DESCRIPTION

18       The mlib_VideoColorJFIFYCC2ARGB444() function performs color space con‐
19       version from YCbCr to ARGB when used in the JPEG File Interchange  For‐
20       mat (JFIF).
21
22
23       The following equation is used:
24
25         A = 0xFF
26         R = Y                        + 1.40200 * (Cr - 128)
27         G = Y - 0.34414 * (Cb - 128) - 0.71414 * (Cr - 128)
28         B = Y + 1.77200 * (Cb - 128)
29
30

PARAMETERS

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

RETURN VALUES

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

ATTRIBUTES

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

SEE ALSO

71       mlib_VideoColorJFIFYCC2ABGR444(3MLIB),              mlib_VideoColorJFI‐
72       FYCC2RGB444(3MLIB),           mlib_VideoColorJFIFYCC2RGB444_S16(3MLIB),
73       attributes(5)
74
75
76
77SunOS 5.11                        23 May 2m0l0i7b_VideoColorJFIFYCC2ARGB444(3MLIB)
Impressum