mediaLib Library Functions mlibVideoColorBlendABGRInp(3MLIB)
NAME
mlibVideoColorBlendABGRInp,
mlibVideoColorBlendABGResetAlphaInp - in-place image
blend
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include
void mlibVideoColorBlendABGRInp(mlibu32 *src1dst,
const mlibu32 *src2,mlibs32 src1dstw,
mlibs32 src1dsth,mlibs32 src2w,
mlibs32 src2h,mlibs32 src2x,
mlibs32 src2y,mlibs32 src1dstlb,
mlibs32 src2lb,mlibblend src1dstblend,
mlibblend src2blend);
void mlibVideoColorBlendABGResetAlphaInp(mlibu32 *src1dst,
const mlibu32 *src2, mlibs32 src1dstw,
mlibs32 src1dsth, mlibs32 src2w,
mlibs32 src2h, mlibs32 src2x,
mlibs32 src2y, mlibs32 src1dstlb,
mlibs32 src2lb, mlibblend src1dstblend,
mlibblend src2blend);
DESCRIPTION
The functions use the following equation for blending
images:
src1dst = (src1dst * src1dstblend) ] (src2 * src2blend)
The two multi-banded source images (src1dst and src2) are
blended together and the result is stored in src1dst.
src1dstblend specifies the blend function to be applied to
the src1dst image and src2blend specifies the blend func-
tion to be applied to the src2 image. src2x and src2y
specify position of src2 relative to the upper-left corner
of src1dst. src2 is clipped to the boundaries of src1dst,
if needed.
Possible blend functions are:
MLIBLENDZERO
MLIBLENDONE
MLIBLENDSRCALPHA
MLIBLENDONEMINUSRCALPHA
MLIBLENDSTALPHA
SunOS 5.11 Last change: 2 Mar 2007 1
mediaLib Library Functions mlibVideoColorBlendABGRInp(3MLIB)
MLIBLENDONEMINUSDSTALPHA
MLIBLENDSTALPHA is the alpha band of image src1 scaled
to the range 0 to 1. MLIBLENDSRCALPHA is the alpha band
of image src2 scaled to the range 0 to 1. The output pixel
bands are clamped to the range 0 to 255.
For the mlibVideoColorBlendABGResetAlphaInp() function,
the alpha value of every pixel in destination image is set
to 0 after blending is complete.
PARAMETERS
Each of the functions takes the following arguments:
src1dst Pointer to 1st input image (also dest.
image).
src2 Pointer to 2nd input image.
src1dstw src1dst image width in pixels.
src1dsth src1dst image height in rows.
src2w src2 image width in pixels.
src2h src2 image height in rows.
src2x src2 horizontal displacement (in pixels),
relative to the upper-left corner of
src1dst.
src2y src2 vertical displacement (in rows), rela-
tive to the upper-left corner of src1dst.
src1dstlb Linebytes for src1dst image.
src2lb Linebytes for src2 image.
SunOS 5.11 Last change: 2 Mar 2007 2
mediaLib Library Functions mlibVideoColorBlendABGRInp(3MLIB)
src1dstblend Blend function for src1dst image.
src2blend Blend function for src2 image.
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
mlibVideoColorBlendABGR(3MLIB), attributes(5)
SunOS 5.11 Last change: 2 Mar 2007 3
|