mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-22 17:29:01 +00: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: 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 ✅
1 changed files with 7 additions and 7 deletions
|
@ -13,17 +13,17 @@
|
|||
namespace Gfx::ISOBMFF {
|
||||
|
||||
// Define all Box types:
|
||||
#define ENUMERATE_ALL() \
|
||||
ENUMERATE_ONE(FileTypeBox, ftyp) \
|
||||
ENUMERATE_ONE(MetaBox, meta) \
|
||||
ENUMERATE_ONE(MovieBox, moov) \
|
||||
ENUMERATE_ONE(MediaDataBox, mdat) \
|
||||
ENUMERATE_ONE(FreeBox, free)
|
||||
#define ENUMERATE_ALL() \
|
||||
ENUMERATE_ONE(FileTypeBox, "ftyp") \
|
||||
ENUMERATE_ONE(MetaBox, "meta") \
|
||||
ENUMERATE_ONE(MovieBox, "moov") \
|
||||
ENUMERATE_ONE(MediaDataBox, "mdat") \
|
||||
ENUMERATE_ONE(FreeBox, "free")
|
||||
|
||||
enum class BoxType : u32 {
|
||||
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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue