1mlib_VideoColorRGB2JFIFYCC4m2e2d(i3aMLLiIbB)LibrarymFluinbc_tViiodnesoColorRGB2JFIFYCC422(3MLIB)
2
3
4

NAME

6       mlib_VideoColorRGB2JFIFYCC422 - RGB to JFIF YCbCr color conversion
7

SYNOPSIS

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

DESCRIPTION

17       The  mlib_VideoColorRGB2JFIFYCC422() function performs color space con‐
18       version from RGB to YCbCr together with sampling rate  conversion  when
19       used in the JPEG File Interchange Format (JFIF).
20

PARAMETERS

22       The function takes the following arguments:
23
24       y      Pointer  to  destination  Y  component  row.  y  must  be 8-byte
25              aligned.
26
27
28       cb     Pointer to destination Cb  component  row.  cb  must  be  8-byte
29              aligned.
30
31
32       cr     Pointer  to  destination  Cr  component  row.  cr must be 8-byte
33              aligned.
34
35
36       rgb    Pointer to source RGB multi-component row. rgb  must  be  8-byte
37              aligned.
38
39
40       n      Length  of Y component row. n must be even. The length of Cb and
41              Cr component rows must be n/2. The length of the RGB  multi-com‐
42              ponent row must be 3*n.
43
44

RETURN VALUES

46       The  function  returns MLIB_SUCCESS if successful. Otherwise it returns
47       MLIB_FAILURE.
48

ATTRIBUTES

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

SEE ALSO

64       mlib_VideoColorABGR2JFIFYCC420(3MLIB),         mlib_VideoColorABGR2JFI‐
65       FYCC422(3MLIB),  mlib_VideoColorARGB2JFIFYCC420(3MLIB),  mlib_VideoCol‐
66       orARGB2JFIFYCC422(3MLIB),         mlib_VideoColorRGB2JFIFYCC420(3MLIB),
67       attributes(5)
68
69
70
71SunOS 5.11                        2 Mar 200m7lib_VideoColorRGB2JFIFYCC422(3MLIB)
Impressum