Add SerenityOS JBIG2 test files
These are all created by the `jbig2-from-json` tool in SerenityOS's
repository from the json files in Tests/LibGfx/test-inputs/jbig2/json
in the github.com/SerenityOS/serenity repository.
update.sh documents how I converted them to .in format.
These files (and jbig2-from-json) were all created by me. They all
decode fine in at least one other PDF engine.
I locally have a json description of the data in Annex H of the
JBIG2 spec, and jbig2-from-json produces exactly the same bits as
the bits in Annex H, so the writer is at least not totally busted.
The test suite isn't complete, I want to add more test cases in the
future. But it already covers a pretty good chunk of the spec,
enough to find bugs in every PDF engine I've tried.
The bitstreams are correct as far as I know (and if not, we can fix
and regenerate). Some of the files are not 100% spec conformant in
the sense that some files have text strips further apart than the
strip size. I will fix those files soon. (But every engine can handle
that part fine and it's fairly inconsequential.)
All input files decode to the same output file.
Bug: 42271957
Change-Id: I0354408e529ed45b7ce98bb06368eca4245a4e03
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium_tests/+/137990
Reviewed-by: Lei Zhang <thestig@chromium.org>
Reviewed-by: Nico Weber <thakis@google.com>
125 files changed