mediaLib Library Functions mlibVideoColorYUV2ABGR420(3MLIB)
NAME
mlibVideoColorYUV2ABGR420 - YUV to RGB color conversion
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include
mlibstatus mlibVideoColorYUV2ABGR420(mlibu8 *abgr, const mlibu8 *y,
const mlibu8 *u, const mlibu8 *v, mlibs32 width, mlibs32 height,
mlibs32 rgbstride, mlibs32 ystride, mlibs32 uvstride);
DESCRIPTION
The mlibVideoColorYUV2ABGR420() function performs YUV to
RGB color conversion used in MPEG1 and MPEG2 video compres-
sion in the 4:2:0 sequence.
The luminance component is stored in Y, the chrominance com-
ponents are stored in U and V, respectively. The size of the
chrominance image depends on the chroma format used by the
sequence. In this sequence, the chrominance components are
subsampled 2-to-1 in both the horizontal and vertical direc-
tions in respect to the luminance component.
PARAMETERS
The function takes the following arguments:
abgr Pointer to the destination packed ABGR image.
y Pointer to the source Y component.
u Pointer to the source U component.
v Pointer to the source V component.
width Width of the image.
height Height of the image.
rgbstride Stride, in bytes, between adjacent rows in the
destination image.
ystride Stride, in bytes, between adjacent rows in the
Y component image.
SunOS 5.11 Last change: 2 Mar 2007 1
mediaLib Library Functions mlibVideoColorYUV2ABGR420(3MLIB)
uvstride Stride, in bytes, between adjacent rows in the
U and V component images.
RETURN VALUES
The function returns MLIBSUCES if successful. Otherwise
it returns MLIBFAILURE.
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
ATRIBUTE TYPE ATRIBUTE VALUE
Interface Stability Committed
MT-Level MT-Safe
SEE ALSO
mlibVideoColorYUV2ABGR411(3MLIB),
mlibVideoColorYUV2ABGR422(3MLIB),
mlibVideoColorYUV2ABGR444(3MLIB),
mlibVideoColorYUV2ARGB411(3MLIB),
mlibVideoColorYUV2ARGB420(3MLIB),
mlibVideoColorYUV2ARGB422(3MLIB),
mlibVideoColorYUV2ARGB444(3MLIB),
mlibVideoColorYUV2RGB411(3MLIB),
mlibVideoColorYUV2RGB420(3MLIB),
mlibVideoColorYUV2RGB422(3MLIB),
mlibVideoColorYUV2RGB444(3MLIB), attributes(5)
SunOS 5.11 Last change: 2 Mar 2007 2
|