mediaLib Library Functions
mlibVideoColorYUV411seqtoARGBint(3MLIB)
NAME
mlibVideoColorYUV411seqtoARGBint - color convert YUV
sequential to ARGB interleaved
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include
void mlibVideoColorYUV411seqtoARGBint(mlibu32 *ARGB,
const mlibu8 *Y,const mlibu8 *U,
const mlibu8 *V,const mlibu8 *Aarray,
mlibu8 Aconst, mlibs32 w,
mlibs32 h, mlibs32 dlb,
mlibs32 yalb, mlibs32 uvlb);
DESCRIPTION
The Y, U, V pixel streams are converted into an ARGB pixel
stream. All pixel components are 8-bit unsigned integers.
The Y buffer has dimensions w and h. The U and V buffers
have dimensions w/4 and h. Dimension w is assumed to be a
multiple of 4. In each row, every 4 Y values use the same U
and V values.
The alpha values for this function work in the following
fashion:
o If Aarray pointer is not NUL, the values are
taken from there. It has to have the same dimen-
sions as the Y buffer.
o If Aarray pointer is NUL, the alpha values for
every pixel are set to Aconst.
The following equation is used:
R 1.1644 0.0000 1.5966 [Y 16.0000]
G = 1.1644 -0.3920 -0.8132 * [U - 128.0000]
B 1.1644 2.0184 0.0000 [V 128.0000]
PARAMETERS
The function takes the following arguments:
ARGB Pointer to output buffer.
Y Pointer to Y input buffer.
SunOS 5.11 Last change: 2 Mar 2007 1
mediaLib Library Functions
mlibVideoColorYUV411seqtoARGBint(3MLIB)
U Pointer to U input buffer.
V Pointer to V input buffer.
Aarray Array of alpha values.
Aconst Constant alpha value.
w Image width in pixels.
h Image height in lines.
dlb Linebytes for output buffer.
yalb Linebytes for Y and alpha buffers.
uvlb Linebytes for U and V buffers.
RETURN VALUES
None.
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
ATRIBUTE TYPE ATRIBUTE VALUE
Interface Stability Committed
MT-Level MT-Safe
SEE ALSO
mlibVideoColorYUV420seqtoARGBint(3MLIB),
mlibVideoColorYUV422seqtoARGBint(3MLIB),
mlibVideoColorYUV444seqtoARGBint(3MLIB),
mlibVideoColorYUV420seqtoABGRint(3MLIB),
mlibVideoColorYUV411seqtoABGRint(3MLIB),
SunOS 5.11 Last change: 2 Mar 2007 2
mediaLib Library Functions
mlibVideoColorYUV411seqtoARGBint(3MLIB)
mlibVideoColorYUV422seqtoABGRint(3MLIB),
mlibVideoColorYUV444seqtoABGRint(3MLIB),
mlibVideoColorYUYV422inttoARGBint(3MLIB),
mlibVideoColorYUV444inttoARGBint(3MLIB),
mlibVideoColorYUYV422inttoABGRint(3MLIB),
mlibVideoColorYUV444inttoABGRint(3MLIB),
mlibVideoColorUYVY422inttoARGBint(3MLIB),
mlibVideoColorUYVY422inttoABGRint(3MLIB),
mlibVideoColorUYV444inttoARGBint(3MLIB),
mlibVideoColorUYV444inttoABGRint(3MLIB), attributes(5)
SunOS 5.11 Last change: 2 Mar 2007 3
mediaLib Library Functions
mlibVideoColorYUV411seqtoARGBint(3MLIB)
SunOS 5.11 Last change: 2 Mar 2007 4
|