Skip to content

Commit

Permalink
image/png: tag image data as zlib
Browse files Browse the repository at this point in the history
  • Loading branch information
martinlindhe committed Jun 12, 2024
1 parent 671147b commit 9ca1847
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/images/png.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ structs:
label: self.Type

if self.Type == IDAT:
u8[self.Length] Image data: ??
compressed:zlib[self.Length] Image data: ??

if self.Type == PLTE:
rgb8[self.Length / 3] Palette: ??
Expand Down Expand Up @@ -185,7 +185,7 @@ structs:

# UNKNOWN CHUNK TYPE
if not(self.Type, IDAT, PLTE, sBIT, sRGB, pHYs, tEXt, zTXt, iTXt, iCCP, tIME, bKGD, cHRM, gAMA, iDOT):
u8[self.Length] Chunk data: ??
raw:u8[self.Length] Chunk data: ??

#crc32[Type_IHDR.offset:self.offset] Checksum: ?? # XXX crc32 in big-endian of chunk minus Length and CRC field
u32 Checksum: ?? # XXX crc32 type
Expand Down

0 comments on commit 9ca1847

Please sign in to comment.