base: re-format ETC__PIXEL_FORMAT__ETC defines

This commit is contained in:
Nigel Tao committed 2024-03-27 21:16:32 +11:00
1 parent b4cd9b8d3c
commit da40cdf29f
2 files changed
+8

No files matched your search

+4
View File
@@ -365,6 +365,8 @@ wuffs_base__make_pixel_format(uint32_t repr) {
// Common 8-bit-depth pixel formats. This list is not exhaustive; not all valid // Common 8-bit-depth pixel formats. This list is not exhaustive; not all valid
// wuffs_base__pixel_format values are present. // wuffs_base__pixel_format values are present.
// clang-format off
#define WUFFS_BASE__PIXEL_FORMAT__INVALID 0x00000000 #define WUFFS_BASE__PIXEL_FORMAT__INVALID 0x00000000
#define WUFFS_BASE__PIXEL_FORMAT__A 0x02000008 #define WUFFS_BASE__PIXEL_FORMAT__A 0x02000008
@@ -407,6 +409,8 @@ wuffs_base__make_pixel_format(uint32_t repr) {
#define WUFFS_BASE__PIXEL_FORMAT__CMY 0xC0020888 #define WUFFS_BASE__PIXEL_FORMAT__CMY 0xC0020888
#define WUFFS_BASE__PIXEL_FORMAT__CMYK 0xD0038888 #define WUFFS_BASE__PIXEL_FORMAT__CMYK 0xD0038888
// clang-format on
extern const uint32_t wuffs_private_impl__pixel_format__bits_per_channel[16]; extern const uint32_t wuffs_private_impl__pixel_format__bits_per_channel[16];
static inline bool // static inline bool //
+4
View File
@@ -4313,6 +4313,8 @@ wuffs_base__make_pixel_format(uint32_t repr) {
// Common 8-bit-depth pixel formats. This list is not exhaustive; not all valid // Common 8-bit-depth pixel formats. This list is not exhaustive; not all valid
// wuffs_base__pixel_format values are present. // wuffs_base__pixel_format values are present.
// clang-format off
#define WUFFS_BASE__PIXEL_FORMAT__INVALID 0x00000000 #define WUFFS_BASE__PIXEL_FORMAT__INVALID 0x00000000
#define WUFFS_BASE__PIXEL_FORMAT__A 0x02000008 #define WUFFS_BASE__PIXEL_FORMAT__A 0x02000008
@@ -4355,6 +4357,8 @@ wuffs_base__make_pixel_format(uint32_t repr) {
#define WUFFS_BASE__PIXEL_FORMAT__CMY 0xC0020888 #define WUFFS_BASE__PIXEL_FORMAT__CMY 0xC0020888
#define WUFFS_BASE__PIXEL_FORMAT__CMYK 0xD0038888 #define WUFFS_BASE__PIXEL_FORMAT__CMYK 0xD0038888
// clang-format on
extern const uint32_t wuffs_private_impl__pixel_format__bits_per_channel[16]; extern const uint32_t wuffs_private_impl__pixel_format__bits_per_channel[16];
static inline bool // static inline bool //