KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
Types

Video image format types More...

Macros

#define KOS_IMG_FMT_NONE   0x00
 Undefined or uninitialized format.
 
#define KOS_IMG_FMT_RGB888   0x01
 24-bpp interleaved R/G/B bytes.
 
#define KOS_IMG_FMT_ARGB8888   0x02
 32-bpp interleaved A/R/G/B bytes.
 
#define KOS_IMG_FMT_RGB565   0x03
 16-bpp interleaved R (5 bits), G (6 bits), B (5 bits).
 
#define KOS_IMG_FMT_ARGB4444   0x04
 16-bpp interleaved A/R/G/B (4 bits each).
 
#define KOS_IMG_FMT_ARGB1555   0x05
 16-bpp interleaved A (1 bit), R (5 bits), G (5 bits), B (5 bits).
 
#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_YUV422   0x08
 8-bit Y (4 bits), U (2 bits), V (2 bits).
 
#define KOS_IMG_FMT_BGR565   0x09
 15-bpp interleaved B (5 bits), G (6 bits), R (5 bits).
 
#define KOS_IMG_FMT_RGBA8888   0x10
 32-bpp interleaved R/G/B/A bytes.
 
#define KOS_IMG_FMT_MASK   0xff
 Basic format mask (not an actual format value).
 
#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.
 

Detailed Description

Video image format types

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

◆ KOS_IMG_FMT_ARGB1555

#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).

◆ KOS_IMG_FMT_ARGB4444

#define KOS_IMG_FMT_ARGB4444   0x04

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

◆ KOS_IMG_FMT_ARGB8888

#define KOS_IMG_FMT_ARGB8888   0x02

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

◆ KOS_IMG_FMT_BGR565

#define KOS_IMG_FMT_BGR565   0x09

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

◆ KOS_IMG_FMT_MASK

#define KOS_IMG_FMT_MASK   0xff

Basic format mask (not an actual format value).

◆ KOS_IMG_FMT_NONE

#define KOS_IMG_FMT_NONE   0x00

Undefined or uninitialized format.

◆ KOS_IMG_FMT_PAL4BPP

#define KOS_IMG_FMT_PAL4BPP   0x06

Paletted, 4 bits per pixel (16 colors).

◆ KOS_IMG_FMT_PAL8BPP

#define KOS_IMG_FMT_PAL8BPP   0x07

Paletted, 8 bits per pixel (256 colors).

◆ KOS_IMG_FMT_RGB565

#define KOS_IMG_FMT_RGB565   0x03

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

◆ KOS_IMG_FMT_RGB888

#define KOS_IMG_FMT_RGB888   0x01

24-bpp interleaved R/G/B bytes.

◆ KOS_IMG_FMT_RGBA8888

#define KOS_IMG_FMT_RGBA8888   0x10

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

◆ KOS_IMG_FMT_YUV422

#define KOS_IMG_FMT_YUV422   0x08

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

◆ KOS_IMG_INVERTED_X

#define KOS_IMG_INVERTED_X   0x0100

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

◆ KOS_IMG_INVERTED_Y

#define KOS_IMG_INVERTED_Y   0x0200

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

◆ KOS_IMG_NOT_OWNER

#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.