Add FourCC comment

This commit is contained in:
Nigel Tao committed 2021-10-17 23:18:58 +11:00
1 parent 9437d1a265
commit 0460bfcd7a
2 files changed
+22 -2

No files matched your search

+11 -1
View File
@@ -474,7 +474,17 @@ typedef struct wuffs_base__transform__output__struct {
// --------
// FourCC constants.
// FourCC constants. Four Character Codes are literally four ASCII characters
// (sometimes padded with ' ' spaces) that pack neatly into a signed or
// unsigned 32-bit integer. ASCII letters are conventionally upper case.
//
// They are often used to identify video codecs (e.g. "H265") and pixel formats
// (e.g. "YV12"). Wuffs uses them for that but also generally for naming
// various things: compression formats (e.g. "BZ2 "), image metadata (e.g.
// "EXIF"), file formats (e.g. "HTML"), etc.
//
// Wuffs' u32 values are big-endian ("JPEG" is 0x4A504547 not 0x4745504A) to
// preserve ordering: "JPEG" < "MP3 " and 0x4A504547 < 0x4D503320.
// ¡ INSERT FourCCs.
+11 -1
View File
@@ -560,7 +560,17 @@ typedef struct wuffs_base__transform__output__struct {
// --------
// FourCC constants.
// FourCC constants. Four Character Codes are literally four ASCII characters
// (sometimes padded with ' ' spaces) that pack neatly into a signed or
// unsigned 32-bit integer. ASCII letters are conventionally upper case.
//
// They are often used to identify video codecs (e.g. "H265") and pixel formats
// (e.g. "YV12"). Wuffs uses them for that but also generally for naming
// various things: compression formats (e.g. "BZ2 "), image metadata (e.g.
// "EXIF"), file formats (e.g. "HTML"), etc.
//
// Wuffs' u32 values are big-endian ("JPEG" is 0x4A504547 not 0x4745504A) to
// preserve ordering: "JPEG" < "MP3 " and 0x4A504547 < 0x4D503320.
// Bitmap.
#define WUFFS_BASE__FOURCC__BMP 0x424D5020