[trunk] added a warning when tif conversion changes input image bitdepth

This commit is contained in:
Antonin Descampe 2014-02-12 15:16:36 +00:00
parent c81fb397bb
commit d6c0c85125
1 changed files with 8 additions and 0 deletions

View File

@ -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;