KallistiOS  ##version##
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Macros
Image format types

Macros

#define KOS_IMG_FMT_NONE   0x00
 Undefined or uninitialized format. More...
 
#define KOS_IMG_FMT_RGB888   0x01
 24-bpp interleaved R/G/B bytes. More...
 
#define KOS_IMG_FMT_ARGB8888   0x02
 32-bpp interleaved A/R/G/B bytes. More...
 
#define KOS_IMG_FMT_RGB565   0x03
 16-bpp interleaved R (5 bits), G (6 bits), B (5 bits). More...
 
#define KOS_IMG_FMT_ARGB4444   0x04
 16-bpp interleaved A/R/G/B (4 bits each). More...
 
#define KOS_IMG_FMT_ARGB1555   0x05
 16-bpp interleaved A (1 bit), R (5 bits), G (5 bits), B (5 bits). More...
 
#define KOS_IMG_FMT_PAL4BPP   0x06
 Paletted, 4 bits per pixel (16 colors). More...
 
#define KOS_IMG_FMT_PAL8BPP   0x07
 Paletted, 8 bits per pixel (256 colors). More...
 
#define KOS_IMG_FMT_YUV422   0x08
 8-bit Y (4 bits), U (2 bits), V (2 bits). More...
 
#define KOS_IMG_FMT_BGR565   0x09
 15-bpp interleaved B (5 bits), G (6 bits), R (5 bits). More...
 
#define KOS_IMG_FMT_RGBA8888   0x10
 32-bpp interleaved R/G/B/A bytes. More...
 
#define KOS_IMG_FMT_MASK   0xff
 Basic format mask (not an actual format value). More...
 
#define KOS_IMG_INVERTED_X   0x0100
 X axis of image data is inverted (stored right to left). More...
 
#define KOS_IMG_INVERTED_Y   0x0200
 Y axis of image data is inverted (stored bottom to top). More...
 
#define KOS_IMG_NOT_OWNER   0x0400
 The image is not the owner of the image data buffer. More...
 

Detailed Description

This is the list of platform-independent image types that can be used as the lower-half of the fmt value for a kos_img_t.

Macro Definition Documentation

#define KOS_IMG_FMT_ARGB1555   0x05

16-bpp interleaved A (1 bit), R (5 bits), G (5 bits), B (5 bits).

Note
This can also be used for RGB555 (with the top bit ignored).
#define KOS_IMG_FMT_ARGB4444   0x04

16-bpp interleaved A/R/G/B (4 bits each).

#define KOS_IMG_FMT_ARGB8888   0x02

32-bpp interleaved A/R/G/B bytes.

#define KOS_IMG_FMT_BGR565   0x09

15-bpp interleaved B (5 bits), G (6 bits), R (5 bits).

#define KOS_IMG_FMT_MASK   0xff

Basic format mask (not an actual format value).

#define KOS_IMG_FMT_NONE   0x00

Undefined or uninitialized format.

#define KOS_IMG_FMT_PAL4BPP   0x06

Paletted, 4 bits per pixel (16 colors).

#define KOS_IMG_FMT_PAL8BPP   0x07

Paletted, 8 bits per pixel (256 colors).

#define KOS_IMG_FMT_RGB565   0x03

16-bpp interleaved R (5 bits), G (6 bits), B (5 bits).

#define KOS_IMG_FMT_RGB888   0x01

24-bpp interleaved R/G/B bytes.

#define KOS_IMG_FMT_RGBA8888   0x10

32-bpp interleaved R/G/B/A bytes.

#define KOS_IMG_FMT_YUV422   0x08

8-bit Y (4 bits), U (2 bits), V (2 bits).

#define KOS_IMG_INVERTED_X   0x0100

X axis of image data is inverted (stored right to left).

#define KOS_IMG_INVERTED_Y   0x0200

Y axis of image data is inverted (stored bottom to top).

#define KOS_IMG_NOT_OWNER   0x0400

The image is not the owner of the image data buffer.

This generally implies that the image data is stored in ROM and thus cannot be freed.