51typedef struct kos_img {
83#define KOS_IMG_FMT_I(x) ((x) & 0xffff)
94#define KOS_IMG_FMT_D(x) (((x) >> 16) & 0xffff)
110#define KOS_IMG_FMT(i, d) ( ((i) & 0xffff) | (((d) & 0xffff) << 16) )
124#define KOS_IMG_FMT_NONE 0x00
127#define KOS_IMG_FMT_RGB888 0x01
130#define KOS_IMG_FMT_ARGB8888 0x02
133#define KOS_IMG_FMT_RGB565 0x03
136#define KOS_IMG_FMT_ARGB4444 0x04
140#define KOS_IMG_FMT_ARGB1555 0x05
143#define KOS_IMG_FMT_PAL4BPP 0x06
146#define KOS_IMG_FMT_PAL8BPP 0x07
149#define KOS_IMG_FMT_YUV422 0x08
152#define KOS_IMG_FMT_BGR565 0x09
155#define KOS_IMG_FMT_RGBA8888 0x10
158#define KOS_IMG_FMT_MASK 0xff
161#define KOS_IMG_INVERTED_X 0x0100
164#define KOS_IMG_INVERTED_Y 0x0200
171#define KOS_IMG_NOT_OWNER 0x0400
unsigned long uint32
32-bit unsigned integer
Definition types.h:33
void kos_img_free(kos_img_t *img, int struct_also)
Free a kos_img_t object.
Platform-indpendent image type.
Definition img.h:51
void * data
Image data in the specified format.
Definition img.h:52
uint32 fmt
Format of the image data.
Definition img.h:55
uint32 w
Width of the image.
Definition img.h:53
uint32 byte_count
Length of the image data, in bytes.
Definition img.h:58
uint32 h
Height of the image.
Definition img.h:54