mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:37:44 +00:00
LibPDF: Split CCITT errors by group
This commit is contained in:
parent
c201825cc8
commit
eaa568210f
1 changed files with 5 additions and 2 deletions
|
@ -306,7 +306,6 @@ PDFErrorOr<ByteBuffer> Filter::decode_ccitt(ReadonlyBytes, RefPtr<DictObject> de
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME: Do something with these.
|
// FIXME: Do something with these.
|
||||||
(void)k;
|
|
||||||
(void)require_end_of_line;
|
(void)require_end_of_line;
|
||||||
(void)encoded_byte_align;
|
(void)encoded_byte_align;
|
||||||
(void)columns;
|
(void)columns;
|
||||||
|
@ -315,7 +314,11 @@ PDFErrorOr<ByteBuffer> Filter::decode_ccitt(ReadonlyBytes, RefPtr<DictObject> de
|
||||||
(void)black_is_1;
|
(void)black_is_1;
|
||||||
(void)damaged_rows_before_error;
|
(void)damaged_rows_before_error;
|
||||||
|
|
||||||
return Error::rendering_unsupported_error("CCITTFaxDecode Filter is unsupported");
|
if (k < 0)
|
||||||
|
return Error::rendering_unsupported_error("CCITTFaxDecode Filter Group 4 is unsupported");
|
||||||
|
if (k == 0)
|
||||||
|
return Error::rendering_unsupported_error("CCITTFaxDecode Filter Group 3, 1-D is unsupported");
|
||||||
|
return Error::rendering_unsupported_error("CCITTFaxDecode Filter Group 3, 2-D is unsupported");
|
||||||
}
|
}
|
||||||
|
|
||||||
PDFErrorOr<ByteBuffer> Filter::decode_jbig2(ReadonlyBytes)
|
PDFErrorOr<ByteBuffer> Filter::decode_jbig2(ReadonlyBytes)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue