summaryrefslogtreecommitdiff
path: root/src/bin/jp2/convert.h
diff options
context:
space:
mode:
authormsheby <44249925+msheby@users.noreply.github.com>2021-10-27 05:10:50 -0700
committerGitHub <noreply@github.com>2021-10-27 14:10:50 +0200
commit90481203a28d4d18052a07711d6d890ed1ab8c8a (patch)
tree45c0bf9b951a664ab3ce089d1da5aa3a2062072c /src/bin/jp2/convert.h
parent9f70bf0ad1ba02fa3af87c552647bbc05c94c18e (diff)
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.
Diffstat (limited to 'src/bin/jp2/convert.h')
-rw-r--r--src/bin/jp2/convert.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/jp2/convert.h b/src/bin/jp2/convert.h
index 61439d49..b9b009ce 100644
--- a/src/bin/jp2/convert.h
+++ b/src/bin/jp2/convert.h
@@ -95,7 +95,8 @@ opj_image_t* bmptoimage(const char *filename, opj_cparameters_t *parameters);
int imagetobmp(opj_image_t *image, const char *outfile);
/* TIFF conversion*/
-opj_image_t* tiftoimage(const char *filename, opj_cparameters_t *parameters);
+opj_image_t* tiftoimage(const char *filename, opj_cparameters_t *parameters,
+ const unsigned int target_bitdepth);
int imagetotif(opj_image_t *image, const char *outfile);
/**
Load a single image component encoded in PGX file format