summaryrefslogtreecommitdiff
path: root/src/bin/jp2/convert.h
diff options
context:
space:
mode:
authorMatthieu Darbois <mayeut@users.noreply.github.com>2014-11-19 20:05:39 +0000
committerMatthieu Darbois <mayeut@users.noreply.github.com>2014-11-19 20:05:39 +0000
commit3bc360fc9d58b25493af4084394955e790fce26b (patch)
tree84cd8df9b63e7976875429cc22b4b3abb29c600b /src/bin/jp2/convert.h
parentae1da37558796508abcaff73632fb2ab06decb9f (diff)
[trunk] added option to force output bit depth in opj_decompress (fixes issue 283)
Diffstat (limited to 'src/bin/jp2/convert.h')
-rw-r--r--src/bin/jp2/convert.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bin/jp2/convert.h b/src/bin/jp2/convert.h
index ec498eeb..d375e86b 100644
--- a/src/bin/jp2/convert.h
+++ b/src/bin/jp2/convert.h
@@ -65,6 +65,11 @@ typedef struct raw_cparameters {
/*@}*/
} raw_cparameters_t;
+/* Component precision clipping */
+void clip_component(opj_image_comp_t* component, OPJ_UINT32 precision);
+/* Component precision scaling */
+void scale_component(opj_image_comp_t* component, OPJ_UINT32 precision);
+
/* TGA conversion */
opj_image_t* tgatoimage(const char *filename, opj_cparameters_t *parameters);
int imagetotga(opj_image_t * image, const char *outfile);