mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-23 11:04:40 +00:00
LibGfx/JPEG2000: Decode tile-part COM marker segment data
We don't do anything with this (except log the contents if JPEG2000_DEBUG is 1).
This commit is contained in:
parent
38be93c9a1
commit
072457edd8
|
@ -440,6 +440,7 @@ static ErrorOr<Comment> read_comment(ReadonlyBytes data)
|
|||
|
||||
struct TilePartData {
|
||||
StartOfTilePart sot;
|
||||
Vector<Comment> coms;
|
||||
ReadonlyBytes data;
|
||||
};
|
||||
|
||||
|
@ -631,9 +632,13 @@ static ErrorOr<void> parse_codestream_tile_header(JPEG2000LoadingContext& contex
|
|||
case J2K_PPT:
|
||||
case J2K_PLT:
|
||||
case J2K_COM: {
|
||||
// FIXME: These are valid tile part header markers. Parse contents.
|
||||
auto marker = TRY(read_marker_at_cursor(context));
|
||||
dbgln("JPEG2000ImageDecoderPlugin: marker {:#04x} not yet implemented in tile header", marker.marker);
|
||||
if (marker.marker == J2K_COM) {
|
||||
tile_part.coms.append(TRY(read_comment(marker.data.value())));
|
||||
} else {
|
||||
// FIXME: These are valid main header markers. Parse contents.
|
||||
dbgln("JPEG2000ImageDecoderPlugin: marker {:#04x} not yet implemented in tile header", marker.marker);
|
||||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue