Content-type: text/html
cc [ flag... ] file... -lmlib [ library... ] #include <mlib.h> mlib_status mlib_ImageDivAlpha_Fp_Inp(mlib_image *srcdst, mlib_s32 cmask);
The mlib_ImageDivAlpha_Fp_Inp() function divides floating-point color channels by the alpha channel on a pixel-by-pixel basis, in place.
It uses the following equation:
srcdst[x][y][c] = srcdst[x][y][c] / srcdst[x][y][a]
where c and a are the indices for the color channels and the alpha channel, respectively, so c != a.
The operation follows the IEEE-754 standard.
The function takes the following arguments:
srcdst
cmask
The function returns MLIB_SUCCESS if successful. Otherwise it returns MLIB_FAILURE.
See attributes(5) for descriptions of the following attributes:
|
mlib_ImageDivAlpha(3MLIB), mlib_ImageDivAlpha_Fp(3MLIB), mlib_ImageDivAlpha_Inp(3MLIB), attributes(5)