mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-25 20:22:18 +03:00
LibGfx/ISOBMFF: Put string literals in box type ENUMERATE_ONE()
This allows types that have spaces in their FourCC.
This commit is contained in:
parent
bdb4f6bd49
commit
e81009b338
Notes:
sideshowbarker
2024-07-17 04:41:05 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/e81009b338 Pull-request: https://github.com/SerenityOS/serenity/pull/23682 Reviewed-by: https://github.com/LucasChollet Reviewed-by: https://github.com/Zaggy1024 Reviewed-by: https://github.com/timschumi ✅
@ -13,17 +13,17 @@
|
|||||||
namespace Gfx::ISOBMFF {
|
namespace Gfx::ISOBMFF {
|
||||||
|
|
||||||
// Define all Box types:
|
// Define all Box types:
|
||||||
#define ENUMERATE_ALL() \
|
#define ENUMERATE_ALL() \
|
||||||
ENUMERATE_ONE(FileTypeBox, ftyp) \
|
ENUMERATE_ONE(FileTypeBox, "ftyp") \
|
||||||
ENUMERATE_ONE(MetaBox, meta) \
|
ENUMERATE_ONE(MetaBox, "meta") \
|
||||||
ENUMERATE_ONE(MovieBox, moov) \
|
ENUMERATE_ONE(MovieBox, "moov") \
|
||||||
ENUMERATE_ONE(MediaDataBox, mdat) \
|
ENUMERATE_ONE(MediaDataBox, "mdat") \
|
||||||
ENUMERATE_ONE(FreeBox, free)
|
ENUMERATE_ONE(FreeBox, "free")
|
||||||
|
|
||||||
enum class BoxType : u32 {
|
enum class BoxType : u32 {
|
||||||
None = 0,
|
None = 0,
|
||||||
|
|
||||||
#define ENUMERATE_ONE(box_name, box_4cc) box_name = RIFF::ChunkID(#box_4cc).as_number(),
|
#define ENUMERATE_ONE(box_name, box_4cc) box_name = RIFF::ChunkID(box_4cc).as_number(),
|
||||||
|
|
||||||
ENUMERATE_ALL()
|
ENUMERATE_ALL()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user