[imageio] Add support for importing JPEG2000 files with .jpf
and .jpx
file extensions
#17596
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The Part II extension to the JPEG 2000 standard (ISO/IEC 15444-2) provides many additional definitions beyond a basic file format called JP2 and defined by Part I (ISO/IEC 15444-1). This extended file format is called JPX, and should use the file extension
.jpf
, although.jpx
is also used. Some JPX files can be written as JP2 files and a JP2 reader will skip "boxes" it doesn't understand.This PR allows us to import files with the aforementioned file extensions. The current JPEG 2000 file loader successfully loads sample .jpf files from https://github.com/openpreserve/format-corpus/tree/master/jp2k-formats and https://github.com/openpreserve/format-corpus/tree/master/jp2k-test.