1mlib_ImageTestFlags(3MLIB)mediaLib Library Functionsmlib_ImageTestFlags(3MLIB)
2
3
4

NAME

6       mlib_ImageTestFlags - test flags
7

SYNOPSIS

9       cc [ flag... ] file... -lmlib [ library... ]
10       #include <mlib.h>
11
12       int mlib_ImageTestFlags(const mlib_image *img, mlib_s32 flags);
13
14

DESCRIPTION

16       The mlib_ImageTestFlags() function tests the flags for a combination of
17       the following predefined characteristics. Note that the result of  zero
18       means the conditions are satisfied.
19
20         MLIB_IMAGE_ALIGNED64     /* data address is 64-byte aligned */
21         MLIB_IMAGE_ALIGNED8      /* data address is 8-byte aligned */
22         MLIB_IMAGE_ALIGNED4      /* data address is 4-byte aligned */
23         MLIB_IMAGE_ALIGNED2      /* data address is 2-byte aligned */
24         MLIB_IMAGE_WIDTH8X       /* width is multiple of 8 */
25         MLIB_IMAGE_WIDTH4X       /* width is multiple of 4 */
26         MLIB_IMAGE_WIDTH2X       /* width is multiple of 2 */
27         MLIB_IMAGE_HEIGHT8X      /* height is multiple of 8 */
28         MLIB_IMAGE_HEIGHT4X      /* height is multiple of 4 */
29         MLIB_IMAGE_HEIGHT2X      /* height is multiple of 2 */
30         MLIB_IMAGE_STRIDE8X      /* stride is multiple of 8 */
31         MLIB_IMAGE_ONEVECTOR     /* stride is equal to width in bytes */
32         MLIB_IMAGE_USERALLOCATED /* data space has been allocated by user */
33         MLIB_IMAGE_ATTRIBUTESET  /* image attribute flags have been set */
34
35

PARAMETERS

37       The function takes the following arguments:
38
39       img      Pointer to a mediaLib image structure.
40
41
42       flags    Combination  of  a  set of characteristics to be tested. It is
43                formed by logically Oring one or  more  individual  predefined
44                characteristics.
45
46

RETURN VALUES

48       The  function returns an integer value containing results of test. Con‐
49       dition = 0 if satisfied; otherwise, Condition != 0.
50

ATTRIBUTES

52       See attributes(5) for descriptions of the following attributes:
53
54
55
56
57       ┌─────────────────────────────┬─────────────────────────────┐
58       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
59       ├─────────────────────────────┼─────────────────────────────┤
60       │Interface Stability          │Committed                    │
61       ├─────────────────────────────┼─────────────────────────────┤
62       │MT-Level                     │MT-Safe                      │
63       └─────────────────────────────┴─────────────────────────────┘
64

SEE ALSO

66       mlib_ImageGetFlags(3MLIB), attributes(5)
67
68
69
70SunOS 5.11                        2 Mar 2007        mlib_ImageTestFlags(3MLIB)
Impressum