mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-10 00:10:33 +00:00
LibGfx/ISOBMFF: Add JPEG2000 box types
I prefixed the types that are labeled as "JPEG2000" on https://mp4ra.org/registered-types/boxes with "JPEG2000".
This commit is contained in:
parent
cdbdc334de
commit
a72770cdf6
Notes:
sideshowbarker
2024-07-18 08:59:31 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/a72770cdf6 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 27 additions and 7 deletions
|
@ -12,13 +12,33 @@
|
|||
|
||||
namespace Gfx::ISOBMFF {
|
||||
|
||||
// Define all Box types:
|
||||
// Define all Box types.
|
||||
// In FourCC-asciibetical order.
|
||||
// The JPEG2000 types are from T-REC-T.800-201511-S!!PDF-E.pdf, Table I.2 – Defined boxes
|
||||
#define ENUMERATE_ALL() \
|
||||
ENUMERATE_ONE(JPEG2000BitsPerComponentBox, "bpcc") \
|
||||
ENUMERATE_ONE(JPEG2000ChannelDefinitionBox, "cdef") \
|
||||
ENUMERATE_ONE(JPEG2000ComponentMappingBox, "cmap") \
|
||||
ENUMERATE_ONE(JPEG2000ColorSpecificationBox, "colr") \
|
||||
ENUMERATE_ONE(FreeBox, "free") \
|
||||
ENUMERATE_ONE(FileTypeBox, "ftyp") \
|
||||
ENUMERATE_ONE(JPEG2000ImageHeaderBox, "ihdr") \
|
||||
ENUMERATE_ONE(JPEG2000SignatureBox, "jP ") \
|
||||
ENUMERATE_ONE(JPEG2000ContiguousCodestreamBox, "jp2c") \
|
||||
ENUMERATE_ONE(JPEG2000HeaderBox, "jp2h") \
|
||||
ENUMERATE_ONE(JPEG2000IntellectualPropertyBox, "jp2i") \
|
||||
ENUMERATE_ONE(MediaDataBox, "mdat") \
|
||||
ENUMERATE_ONE(MetaBox, "meta") \
|
||||
ENUMERATE_ONE(MovieBox, "moov")
|
||||
ENUMERATE_ONE(MovieBox, "moov") \
|
||||
ENUMERATE_ONE(JPEG2000PaletteBox, "pclr") \
|
||||
ENUMERATE_ONE(JPEG2000ResolutionBox, "res ") \
|
||||
ENUMERATE_ONE(JPEG2000CaptureResolutionBox, "resc") \
|
||||
ENUMERATE_ONE(JPEG2000DefaultDisplayResolutionBox, "resd") \
|
||||
ENUMERATE_ONE(JPEG2000UUIDInfoBox, "uinf") \
|
||||
ENUMERATE_ONE(JPEG2000UUIDListBox, "ulst") \
|
||||
ENUMERATE_ONE(JPEG2000URLBox, "url ") \
|
||||
ENUMERATE_ONE(UserExtensionBox, "uuid") \
|
||||
ENUMERATE_ONE(XMLBox, "xml ")
|
||||
|
||||
enum class BoxType : u32 {
|
||||
None = 0,
|
||||
|
|
Loading…
Reference in a new issue