mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-27 05:05:32 +03:00
LibGfx/JBIG2: Implement decode_end_of_page()
This commit is contained in:
parent
ecce570cb7
commit
323cacc593
Notes:
sideshowbarker
2024-07-17 07:19:27 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/323cacc593 Pull-request: https://github.com/SerenityOS/serenity/pull/23548 Reviewed-by: https://github.com/LucasChollet ✅
@ -546,9 +546,14 @@ static ErrorOr<void> decode_page_information(JBIG2LoadingContext& context, Segme
|
||||
return {};
|
||||
}
|
||||
|
||||
static ErrorOr<void> decode_end_of_page(JBIG2LoadingContext&, SegmentData const&)
|
||||
static ErrorOr<void> decode_end_of_page(JBIG2LoadingContext&, SegmentData const& segment)
|
||||
{
|
||||
return Error::from_string_literal("JBIG2ImageDecoderPlugin: Cannot decode end of page yet");
|
||||
// 7.4.9 End of page segment syntax
|
||||
if (segment.data.size() != 0)
|
||||
return Error::from_string_literal("JBIG2ImageDecoderPlugin: End of page segment has non-zero size");
|
||||
// FIXME: If the page had unknown height, check that previous segment was end-of-stripe.
|
||||
// FIXME: Maybe mark page as completed and error if we see more segments for it?
|
||||
return {};
|
||||
}
|
||||
|
||||
static ErrorOr<void> decode_end_of_stripe(JBIG2LoadingContext&, SegmentData const&)
|
||||
|
Loading…
Reference in New Issue
Block a user