diff options
| author | Matthieu Darbois <mayeut@users.noreply.github.com> | 2014-11-19 20:05:39 +0000 |
|---|---|---|
| committer | Matthieu Darbois <mayeut@users.noreply.github.com> | 2014-11-19 20:05:39 +0000 |
| commit | 3bc360fc9d58b25493af4084394955e790fce26b (patch) | |
| tree | 84cd8df9b63e7976875429cc22b4b3abb29c600b /src/bin/jp2/convert.h | |
| parent | ae1da37558796508abcaff73632fb2ab06decb9f (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.h | 5 |
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); |
