Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mlib_imagetestflags(3mlib) [opensolaris man page]

mlib_ImageTestFlags(3MLIB)				    mediaLib Library Functions					mlib_ImageTestFlags(3MLIB)

NAME
mlib_ImageTestFlags - test flags SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ] #include <mlib.h> int mlib_ImageTestFlags(const mlib_image *img, mlib_s32 flags); DESCRIPTION
The mlib_ImageTestFlags() function tests the flags for a combination of the following predefined characteristics. Note that the result of zero means the conditions are satisfied. MLIB_IMAGE_ALIGNED64 /* data address is 64-byte aligned */ MLIB_IMAGE_ALIGNED8 /* data address is 8-byte aligned */ MLIB_IMAGE_ALIGNED4 /* data address is 4-byte aligned */ MLIB_IMAGE_ALIGNED2 /* data address is 2-byte aligned */ MLIB_IMAGE_WIDTH8X /* width is multiple of 8 */ MLIB_IMAGE_WIDTH4X /* width is multiple of 4 */ MLIB_IMAGE_WIDTH2X /* width is multiple of 2 */ MLIB_IMAGE_HEIGHT8X /* height is multiple of 8 */ MLIB_IMAGE_HEIGHT4X /* height is multiple of 4 */ MLIB_IMAGE_HEIGHT2X /* height is multiple of 2 */ MLIB_IMAGE_STRIDE8X /* stride is multiple of 8 */ MLIB_IMAGE_ONEVECTOR /* stride is equal to width in bytes */ MLIB_IMAGE_USERALLOCATED /* data space has been allocated by user */ MLIB_IMAGE_ATTRIBUTESET /* image attribute flags have been set */ PARAMETERS
The function takes the following arguments: img Pointer to a mediaLib image structure. flags Combination of a set of characteristics to be tested. It is formed by logically Oring one or more individual predefined character- istics. RETURN VALUES
The function returns an integer value containing results of test. Condition = 0 if satisfied; otherwise, Condition != 0. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Committed | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
mlib_ImageGetFlags(3MLIB), attributes(5) SunOS 5.11 2 Mar 2007 mlib_ImageTestFlags(3MLIB)

Check Out this Related Man Page

mlib_VideoColorYUV2ABGR420_X2(3MLIB)			    mediaLib Library Functions			      mlib_VideoColorYUV2ABGR420_X2(3MLIB)

NAME
mlib_VideoColorYUV2ABGR420_X2 - YUV to RGB color conversion SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ] #include <mlib.h> mlib_status mlib_VideoColorYUV2ABGR420_X2(mlib_u8 *abgr, const mlib_u8 *y, const mlib_u8 *u, const mlib_u8 *v, mlib_s32 width, mlib_s32 height, mlib_s32 abgr_stride, mlib_s32 y_stride, mlib_s32 uv_stride); DESCRIPTION
The mlib_VideoColorYUV2ABGR420_X2() function performs YUV to RGB color conversion used in MPEG1 and MPEG2 video compression in the 4:2:0 sequence. It performs color conversion together with 2X zooming. The luminance component is stored in Y, the chrominance components 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 horizon- tal and vertical directions in respect to the luminance component. PARAMETERS
The function takes the following arguments: abgr Pointer to the destination packed ABGR image. abgr must be 8-byte aligned. y Pointer to the source Y component. y must be 8-byte aligned. u Pointer to the source U component. u must be 4-byte aligned. v Pointer to the source V component. v must be 4-byte aligned. width Width of the image. width must be a multiple of 8. height Height of the image. height must be a multiple of 2. abgr_stride Stride, in bytes, between adjacent rows in the ABGR image. abgr_stride must be a multiple of 8. y_stride Stride, in bytes, between adjacent rows in the Y component image. y_stride must be a multiple of 8. uv_stride Stride, in bytes, between adjacent rows in the U and V component images. uv_stride must be a multiple of 8. RETURN VALUES
The function 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 ALSO
mlib_VideoColorYUV2ABGR420_W(3MLIB), mlib_VideoColorYUV2ABGR420_WX2(3MLIB), mlib_VideoColorYUV2ABGR420_WX3(3MLIB), mlib_VideoCol- orYUV2ABGR420_X3(3MLIB), attributes(5) SunOS 5.11 2 Mar 2007 mlib_VideoColorYUV2ABGR420_X2(3MLIB)
Man Page