diff options
| author | Antonin Descampe <antonin@descampe.net> | 2017-09-26 18:30:20 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-09-26 18:30:20 -0300 |
| commit | d45ccb048bb2166c5d975f4e1b8acaf8ba3d198d (patch) | |
| tree | bbf4b49da38487923abc0cbf6565cf6504921e36 /tests | |
| parent | 3f0de88c7bf4e56826987aa7d3edb5acdd4399f2 (diff) | |
| parent | e17bbde9066600528ab523adee69d9c9c33ba157 (diff) | |
Merge pull request #1022 from rouault/partial_component_decoding
Add capability to decode only a subset of all components of an image.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/nonregression/md5refs.txt | 6 | ||||
| -rw-r--r-- | tests/nonregression/test_suite.ctest.in | 18 |
2 files changed, 24 insertions, 0 deletions
diff --git a/tests/nonregression/md5refs.txt b/tests/nonregression/md5refs.txt index e95a10f0..6076538b 100644 --- a/tests/nonregression/md5refs.txt +++ b/tests/nonregression/md5refs.txt @@ -310,3 +310,9 @@ d1bb7f93f4c0eb984b2e9c54e544b7e9 broken.jpc_1.pgx b704ad4c0cfefffd78c20a54f5541265 dwt_interleave_h.gsr105.jp2_d_1_1_33_33_0.pgx 9d7fe43cd7a50b7bbaf712926ee11980 dwt_interleave_h.gsr105.jp2_d_1_1_33_33_1.pgx 0960b580f991ff10f693b24aa41ad58b dwt_interleave_h.gsr105.jp2_d_1_1_33_33_2.pgx +fa7382fd8b2e788b28b807e200dd95b9 file1.jp2-c0.tif +ed79b7fe443955cdefba2b039ddc846a file1.jp2-c0_1_2.tif +ac8f6ab3acc9c692ed7c41bd62a0e1e8 file1.jp2-c0-r1.tif +fbfcf662b6f7549574b2885490fbcf12 file1.jp2-c0-d10_20_30_40.tif +fa7382fd8b2e788b28b807e200dd95b9 file1.jp2-c0-t0.tif +ac8f6ab3acc9c692ed7c41bd62a0e1e8 file1.jp2-c0-t0-r1.tif diff --git a/tests/nonregression/test_suite.ctest.in b/tests/nonregression/test_suite.ctest.in index 718d0599..31ae777b 100644 --- a/tests/nonregression/test_suite.ctest.in +++ b/tests/nonregression/test_suite.ctest.in @@ -605,3 +605,21 @@ opj_decompress -i @INPUT_NR_PATH@/issue979.j2k -o @TEMP_PATH@/issue979.j2k.pgx # https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3115 opj_decompress -i @INPUT_NR_PATH@/dwt_interleave_h.gsr105.jp2 -o @TEMP_PATH@/dwt_interleave_h.gsr105.jp2_d_1_1_33_33.pgx -d 1,1,33,33 + +# partial component decoding with opj_decode(): one component +opj_decompress -i @INPUT_CONF_PATH@/file1.jp2 -o @TEMP_PATH@/file1.jp2-c0.tif -c 0 +# partial component decoding with opj_decode(): 3 components without MCT +opj_decompress -i @INPUT_CONF_PATH@/file1.jp2 -o @TEMP_PATH@/file1.jp2-c0_1_2.tif -c 0,1,2 +# partial component decoding with opj_decode() and opj_set_decode_area() +opj_decompress -i @INPUT_CONF_PATH@/file1.jp2 -o @TEMP_PATH@/file1.jp2-c0-d10_20_30_40.tif -c 0 -d 10,20,30,40 +# partial component decoding with opj_decode() and reduced resolution +opj_decompress -i @INPUT_CONF_PATH@/file1.jp2 -o @TEMP_PATH@/file1.jp2-c0-r1.tif -c 0 -r 1 +# partial component decoding with opj_get_decoded_tile() +opj_decompress -i @INPUT_CONF_PATH@/file1.jp2 -o @TEMP_PATH@/file1.jp2-c0-t0.tif -c 0 -t 0 +# partial component decoding with opj_get_decoded_tile() and reduced resolution +opj_decompress -i @INPUT_CONF_PATH@/file1.jp2 -o @TEMP_PATH@/file1.jp2-c0-t0-r1.tif -c 0 -t 0 -r 1 + +# try to map the same component several times +!opj_decompress -i @INPUT_CONF_PATH@/file1.jp2 -o @TEMP_PATH@/file1.jp2-c0_0.tif -c 0,0 +# try to map an invalid component +!opj_decompress -i @INPUT_CONF_PATH@/file1.jp2 -o @TEMP_PATH@/file1.jp2-c10.tif -c 10 |
