1mlib_ImageColorYCC2RGB(3MLImBe)diaLib Library Functiomnlsib_ImageColorYCC2RGB(3MLIB)
2
3
4

NAME

6       mlib_ImageColorYCC2RGB - YCC to RGB color conversion
7

SYNOPSIS

9       cc [ flag... ] file... -lmlib [ library... ]
10       #include <mlib.h>
11
12       mlib_status mlib_ImageColorYCC2RGB(mlib_image *dst, const mlib_image *src);
13
14

DESCRIPTION

16       The mlib_ImageColorYCC2RGB() function performs a color space conversion
17       from ITU-R Rec.601 Y'CbCr to computer R'G'B'.
18
19
20       The source and destination images must be three-channel images.
21
22
23       It uses the following equation:
24
25         |R'|   |cmat[0] cmat[1] cmat[2]|   |Y'|   |offset[0]|
26         |G'| = |cmat[3] cmat[4] cmat[5]| * |Cb| + |offset[1]|
27         |B'|   |cmat[6] cmat[7] cmat[8]|   |Cr|   |offset[2]|
28
29
30
31       where
32
33         cmat[] = { 298.082/256,    0.000/256,  408.583/256,
34                    298.082/256, -100.291/256, -208.120/256,
35                    298.082/256,  516.411/256,    0.000/256 };
36         offset[] = { -222.922, 135.575, -276.836 };
37         src[x][y] = { Y', Cb, Cr };
38         dst[x][y] = { R', G', B' };
39
40

PARAMETERS

42       The function takes the following arguments:
43
44       dst    Pointer to destination image.
45
46
47       src    Pointer to source image.
48
49

RETURN VALUES

51       The function returns MLIB_SUCCESS if successful. Otherwise  it  returns
52       MLIB_FAILURE.
53

ATTRIBUTES

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

SEE ALSO

69       mlib_ImageColorConvert2(3MLIB),      mlib_ImageColorConvert2_Fp(3MLIB),
70       mlib_ImageColorRGB2XYZ(3MLIB),        mlib_ImageColorRGB2XYZ_Fp(3MLIB),
71       mlib_ImageColorRGB2YCC(3MLIB),        mlib_ImageColorRGB2YCC_Fp(3MLIB),
72       mlib_ImageColorYCC2RGB_Fp(3MLIB), attributes(5)
73
74
75
76SunOS 5.11                        2 Mar 2007     mlib_ImageColorYCC2RGB(3MLIB)
Impressum