KallistiOS git master
Independent SDK for the Sega Dreamcast
|
Macros for accessing kos_image_t::fmt More...
Macros | |
#define | KOS_IMG_FMT_I(x) |
Read the platform-independent half of the format. | |
#define | KOS_IMG_FMT_D(x) |
Read the platform-specific half of the format. | |
#define | KOS_IMG_FMT(i, d) |
Build a format value from a platform-independent half and a platform-specific half of the value. | |
Macros for accessing kos_image_t::fmt
These macros provide easy access to the fmt field of a kos_img_t object.
#define KOS_IMG_FMT | ( | i, | |
d ) |
Build a format value from a platform-independent half and a platform-specific half of the value.
This macro combines the platform-independent and platform-specific portions of an image format into a value suitable for storing as the fmt field of a kos_img_t object.
i | The platform-independent half of the format. |
d | The platform-specific half of the format. This should not be pre-shifted. |
#define KOS_IMG_FMT_D | ( | x | ) |
Read the platform-specific half of the format.
This macro masks the format of a kos_img_t to give you just the upper half of the value, which contains the platform-specific half of the format.
x | An image format (fmt field of a kos_img_t). |
#define KOS_IMG_FMT_I | ( | x | ) |
Read the platform-independent half of the format.
This macro masks the format of a kos_img_t to give you just the lower half of the value, which contains the platform-independent half of the format.
x | An image format (fmt field of a kos_img_t). |