mediaLib Library Functions
mlibVideoColorBGRinttoABGRint(3MLIB)
NAME
mlibVideoColorBGRinttoABGRint - convert BGR interleaved
to ABGR interleaved
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include
void mlibVideoColorBGRinttoABGRint(mlibu32 *ABGR,
const mlibu8 *BGR, const mlibu8 *Aarray, mlibu8 Aconst,
mlibs32 w, mlibs32 h, mlibs32 dlb, mlibs32 slb, mlibs32 alb);
DESCRIPTION
The interleaved BGR stream, and the A values are combined
into an A, B, G, R interleaved byte stream. Within each 24-
bit input pixel, the component ordering is B (bits 23-16), G
(bits 15-8), and R (bits 7-0). Within each 32-bit output
word, the component ordering is A (bits 31-24), B (bits 23-
16), G (bits 15-8), and R (bits 7-0).
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 R, G, and B buffers.
o If Aarray pointer is NUL, the alpha values for
every pixel are set to Aconst.
PARAMETERS
The function takes the following arguments:
ABGR Pointer to output buffer.
BGR Pointer to input buffer.
Aarray Array of alpha values.
Aconst Constant alpha value.
w Image width in pixels.
SunOS 5.11 Last change: 2 Mar 2007 1
mediaLib Library Functions
mlibVideoColorBGRinttoABGRint(3MLIB)
h Image height in lines.
dlb Linebytes for output buffer.
slb Linebytes for input buffer.
alb Linebytes for alpha buffer.
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
mlibVideoColorRGBseqtoABGRint(3MLIB),
mlibVideoColorRGBinttoABGRint(3MLIB),
mlibVideoColorRGBXinttoABGRint(3MLIB),
mlibVideoColorRGBXinttoARGBint(3MLIB),
mlibVideoColorXRGBinttoABGRint(3MLIB),
mlibVideoColorXRGBinttoARGBint(3MLIB), attributes(5)
SunOS 5.11 Last change: 2 Mar 2007 2
mediaLib Library Functions
mlibVideoColorBGRinttoABGRint(3MLIB)
SunOS 5.11 Last change: 2 Mar 2007 3
|