opj_compress: add a -TargetBitDepth switch for TIFF output (#1384)
authormsheby <44249925+msheby@users.noreply.github.com>
Wed, 27 Oct 2021 12:10:50 +0000 (05:10 -0700)
committerGitHub <noreply@github.com>
Wed, 27 Oct 2021 12:10:50 +0000 (14:10 +0200)
commit90481203a28d4d18052a07711d6d890ed1ab8c8a
tree45c0bf9b951a664ab3ce089d1da5aa3a2062072c
parent9f70bf0ad1ba02fa3af87c552647bbc05c94c18e
opj_compress: add a -TargetBitDepth switch for TIFF output (#1384)

Sometimes, given the same (16-bit TIF) input, one wants to generate a variety of J2C outputs (say, 16-, 12-, and 10-bit). This patch allows one to downsample input files, and so makes it easier to automate OpenJPEG in mass generation of J2Cs without having to pipe though an image processing program.
src/bin/jp2/convert.h
src/bin/jp2/converttif.c
src/bin/jp2/opj_compress.c
tests/compare_images.c