mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:37:34 +00:00
LibGfx/JBIG2: Implement decode_end_of_page()
This commit is contained in:
parent
ecce570cb7
commit
323cacc593
1 changed files with 7 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue