mediaLib Library Functions mlibImageTestFlags(3MLIB)
NAME
mlibImageTestFlags - test flags
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include
int mlibImageTestFlags(const mlibimage *img, mlibs32 flags);
DESCRIPTION
The mlibImageTestFlags() function tests the flags for a
combination of the following predefined characteristics.
Note that the result of zero means the conditions are satis-
fied.
MLIBIMAGEALIGNED64 /* data address is 64-byte aligned */
MLIBIMAGEALIGNED8 /* data address is 8-byte aligned */
MLIBIMAGEALIGNED4 /* data address is 4-byte aligned */
MLIBIMAGEALIGNED2 /* data address is 2-byte aligned */
MLIBIMAGEWIDTH8X /* width is multiple of 8 */
MLIBIMAGEWIDTH4X /* width is multiple of 4 */
MLIBIMAGEWIDTH2X /* width is multiple of 2 */
MLIBIMAGEHEIGHT8X /* height is multiple of 8 */
MLIBIMAGEHEIGHT4X /* height is multiple of 4 */
MLIBIMAGEHEIGHT2X /* height is multiple of 2 */
MLIBIMAGESTRIDE8X /* stride is multiple of 8 */
MLIBIMAGEONEVECTOR /* stride is equal to width in bytes */
MLIBIMAGEUSERALOCATED /* data space has been allocated by user */
MLIBIMAGEATRIBUTESET /* 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 characteristics.
RETURN VALUES
The function returns an integer value containing results of
test. Condition = 0 if satisfied; otherwise, Condition != 0.
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
SunOS 5.11 Last change: 2 Mar 2007 1
mediaLib Library Functions mlibImageTestFlags(3MLIB)
ATRIBUTE TYPE ATRIBUTE VALUE
Interface Stability Committed
MT-Level MT-Safe
SEE ALSO
mlibImageGetFlags(3MLIB), attributes(5)
SunOS 5.11 Last change: 2 Mar 2007 2
|