mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-17 16:32:11 +01:00
Add FourCC comment
This commit is contained in:
1 parent
9437d1a265
commit
0460bfcd7a
2 files changed
+22
-2
No files matched your search
@@ -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.
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user