1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:38:12 +00:00

LibGfx/TIFF: Read the ExtraSamples tag

This commit is contained in:
Lucas CHOLLET 2023-12-16 20:33:39 -05:00 committed by Sam Atkins
parent e89163911c
commit 796ece7b35

View file

@ -90,6 +90,12 @@ class SampleFormat(EnumWithExportName):
Undefined = 4
class ExtraSample(EnumWithExportName):
Unspecified = 0
AssociatedAlpha = 1
UnassociatedAlpha = 2
tag_fields = ['id', 'types', 'counts', 'default', 'name', 'associated_enum']
Tag = namedtuple(
@ -117,6 +123,7 @@ known_tags: List[Tag] = [
Tag('296', [TIFFType.UnsignedShort], [], ResolutionUnit.Inch, "ResolutionUnit", ResolutionUnit),
Tag('339', [TIFFType.UnsignedShort], [], SampleFormat.Unsigned, "SampleFormat", SampleFormat),
Tag('317', [TIFFType.UnsignedShort], [1], Predictor.NoPrediction, "Predictor", Predictor),
Tag('338', [TIFFType.UnsignedShort], [], None, "ExtraSamples", ExtraSample),
Tag('34675', [TIFFType.Undefined], [], None, "ICCProfile"),
]