]> granicus.if.org Git - openjpeg/commit
Add capability to decode only a subset of all components of an image.
authorEven Rouault <even.rouault@spatialys.com>
Tue, 19 Sep 2017 14:52:07 +0000 (16:52 +0200)
committerEven Rouault <even.rouault@spatialys.com>
Tue, 19 Sep 2017 15:06:19 +0000 (17:06 +0200)
commit7e2b6bebff12eab8bdc17fc9af017e8c11652f4f
tree1f1456a4b3962862d3ab581e7b1b080919c53d34
parentce199f42e77f972d6ee782b63492f6d861891053
Add capability to decode only a subset of all components of an image.

This adds a opj_set_decoded_components(opj_codec_t *p_codec,
OPJ_UINT32 numcomps, const OPJ_UINT32* comps_indices) function,
and equivalent "opj_decompress -c compno[,compno]*" option.

When specified, neither the MCT transform nor JP2 channel transformations
will be applied.

Tests added for various combinations of whole image vs tiled-based decoding,
full or reduced resolution, use of decode area or not.
12 files changed:
src/bin/jp2/opj_decompress.c
src/lib/openjp2/j2k.c
src/lib/openjp2/j2k.h
src/lib/openjp2/jp2.c
src/lib/openjp2/jp2.h
src/lib/openjp2/openjpeg.c
src/lib/openjp2/openjpeg.h
src/lib/openjp2/opj_codec.h
src/lib/openjp2/tcd.c
src/lib/openjp2/tcd.h
tests/nonregression/md5refs.txt
tests/nonregression/test_suite.ctest.in