mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-06 17:48:37 +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
Notes:
sideshowbarker
2024-07-17 06:54:15 +09:00
Author: https://github.com/nico
Commit: 072457edd8
Pull-request: https://github.com/SerenityOS/serenity/pull/23901
Reviewed-by: https://github.com/trflynn89 ✅
1 changed files with 7 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue