mlib_VideoReversibleColorRmediaLimlib_VideoReversibleColorRGB2YUV_U8_U8(3MLIB)NAME
mlib_VideoReversibleColorRGB2YUV_U8_U8, mlib_VideoReversibleColor‐
RGB2YUV_S16_U8, mlib_VideoReversibleColorRGB2YUV_S16_S16, mlib_VideoRe‐
versibleColorRGB2YUV_S32_S16 - reversible color space conversion for
wavelet transformation
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include <mlib.h>
mlib_status mlib_VideoReversibleColorRGB2YUV_U8_U8(mlib_u8 *y,
mlib_u8 *u, mlib_u8 *v, const mlib_u8 *r, const mlib_u8 *g,
const mlib_u8 *b, mlib_s32 n, mlib_s32 depth);
mlib_status mlib_VideoReversibleColorRGB2YUV_S16_U8(mlib_s16 *y,
mlib_s16 *u, mlib_s16 *v, const mlib_u8 *r, const mlib_u8 *g,
const mlib_u8 *b,
mlib_s32 n, mlib_s32 depth);
mlib_status mlib_VideoReversibleColorRGB2YUV_S16_S16(mlib_s16 *y,
mlib_s16 *u, mlib_s16 *v, const mlib_s16 *r, const mlib_s16 *g,
const mlib_s16 *b, mlib_s32 n, mlib_s32 depth);
mlib_status mlib_VideoReversibleColorRGB2YUV_S32_S16(mlib_s32 *y,
mlib_s32 *u, mlib_s32 *v, const mlib_s16 *r, const mlib_s16 *g,
const mlib_s16 *b, mlib_s32 n, mlib_s32 depth);
DESCRIPTION
Each of the functions provides support to reversible wavelet transfor‐
mation. It is for reversible color space conversion.
PARAMETERS
Each of the functions takes the following arguments:
y Pointer to destination Y component.
u Pointer to destination U component.
v Pointer to destination V component.
r Pointer to source R component.
g Pointer to source G component.
b Pointer to source B component.
n Length of data.
depth Number of bit planes required to store the original R, G, and
B components.
RETURN VALUES
Each of the functions returns MLIB_SUCCESS if successful. Otherwise it
returns MLIB_FAILURE.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
┌─────────────────────────────┬─────────────────────────────┐
│ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
├─────────────────────────────┼─────────────────────────────┤
│Interface Stability │Committed │
├─────────────────────────────┼─────────────────────────────┤
│MT-Level │MT-Safe │
└─────────────────────────────┴─────────────────────────────┘
SEE ALSOmlib_VideoReversibleColorYUV2RGB_U8_U8(3MLIB), attributes(5)SunOS 5.10mlib_VideoReversibleColorRGB2YUV_U8_U8(3MLIB)