1mlib_VideoColorBGR2JFIFYCC4m2e0d(i3aMLLiIbB)LibrarymFluinbc_tViiodnesoColorBGR2JFIFYCC420(3MLIB)
2
3
4

NAME

6       mlib_VideoColorBGR2JFIFYCC420 - BGR to JFIF YCbCr color conversion
7

SYNOPSIS

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

DESCRIPTION

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

PARAMETERS

23       The function takes the following arguments:
24
25       y0      Pointer to upper destination Y component row. y0 must be 8-byte
26               aligned.
27
28
29       y1      Pointer to lower destination Y component row. y1 must be 8-byte
30               aligned.
31
32
33       cb      Pointer  to  destination  Cb  component  row. cb must be 8-byte
34               aligned.
35
36
37       cr      Pointer to destination Cr component  row.  cr  must  be  8-byte
38               aligned.
39
40
41       bgr0    Pointer  to  upper source BGR multi-component row. bgr0 must be
42               8-byte aligned.
43
44
45       bgr1    Pointer to lower source BGR multi-component row. bgr1  must  be
46               8-byte aligned.
47
48
49       n       Length of Y component row. n must be even. The length of Cb and
50               Cr component rows must be n/2. The length of the BGR multi-com‐
51               ponent row must be 3*n.
52
53

RETURN VALUES

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

ATTRIBUTES

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

SEE ALSO

73       mlib_VideoColorBGR2JFIFYCC422(3MLIB),           mlib_VideoColorBGR2JFI‐
74       FYCC444(3MLIB), mlib_VideoColorBGR2JFIFYCC444_S16(3MLIB), attributes(5)
75
76
77
78SunOS 5.11                        2 Mar 200m7lib_VideoColorBGR2JFIFYCC420(3MLIB)
Impressum