25 #include <sys/cdefs.h>
68 #define KOS_IMG_FMT_I(x) ((x) & 0xffff)
78 #define KOS_IMG_FMT_D(x) (((x) >> 16) & 0xffff)
93 #define KOS_IMG_FMT(i, d) ( ((i) & 0xffff) | (((d) & 0xffff) << 16) )
105 #define KOS_IMG_FMT_NONE 0x00
108 #define KOS_IMG_FMT_RGB888 0x01
111 #define KOS_IMG_FMT_ARGB8888 0x02
114 #define KOS_IMG_FMT_RGB565 0x03
117 #define KOS_IMG_FMT_ARGB4444 0x04
121 #define KOS_IMG_FMT_ARGB1555 0x05
124 #define KOS_IMG_FMT_PAL4BPP 0x06
127 #define KOS_IMG_FMT_PAL8BPP 0x07
130 #define KOS_IMG_FMT_YUV422 0x08
133 #define KOS_IMG_FMT_BGR565 0x09
136 #define KOS_IMG_FMT_RGBA8888 0x10
139 #define KOS_IMG_FMT_MASK 0xff
142 #define KOS_IMG_INVERTED_X 0x0100
145 #define KOS_IMG_INVERTED_Y 0x0200
152 #define KOS_IMG_NOT_OWNER 0x0400
uint32 byte_count
Length of the image data, in bytes.
Definition: img.h:51
uint32 h
Height of the image.
Definition: img.h:47
uint32 fmt
Format of the image data.
Definition: img.h:48
void * data
Image data in the specified format.
Definition: img.h:45
Platform-indpendent image type.
Definition: img.h:44
uint32 w
Width of the image.
Definition: img.h:46
unsigned long uint32
32-bit unsigned integer
Definition: types.h:28
void kos_img_free(kos_img_t *img, int struct_also)
Free a kos_img_t object.
struct kos_img kos_img_t
Platform-indpendent image type.