projects
/
openjpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c81fb39
)
[trunk] added a warning when tif conversion changes input image bitdepth
author
Antonin Descampe
<antonin@gmail.com>
Wed, 12 Feb 2014 15:16:36 +0000
(15:16 +0000)
committer
Antonin Descampe
<antonin@gmail.com>
Wed, 12 Feb 2014 15:16:36 +0000
(15:16 +0000)
src/bin/jp2/convert.c
patch
|
blob
|
history
diff --git
a/src/bin/jp2/convert.c
b/src/bin/jp2/convert.c
index 4144a395006415c0473edaeea14c14bc32af8a08..6997def917a0661ccfa431b14ce70f551a250f1a 100644
(file)
--- a/
src/bin/jp2/convert.c
+++ b/
src/bin/jp2/convert.c
@@
-2535,6
+2535,14
@@
opj_image_t* tiftoimage(const char *filename, opj_cparameters_t *parameters)
*/
memset(&cmptparm[0], 0, 4 * sizeof(opj_image_cmptparm_t));
+ if ((tiPhoto == PHOTOMETRIC_RGB) && (parameters->cp_cinema)) {
+ fprintf(stdout,"WARNING:\n"
+ "Input image bitdepth is %d bits\n"
+ "TIF conversion has automatically rescaled to 12-bits\n"
+ "to comply with cinema profiles.\n",
+ tiBps);
+ }
+
if(tiPhoto == PHOTOMETRIC_RGB) /* RGB(A) */
{
numcomps = 3 + has_alpha;