make sure tests build
This commit is contained in:
parent
018b7e9b69
commit
c96c009aca
|
@ -260,6 +260,9 @@ static opj_image_t* readImageFromFileTIF(const char* filename,
|
||||||
{
|
{
|
||||||
opj_image_t* image_read = NULL;
|
opj_image_t* image_read = NULL;
|
||||||
opj_cparameters_t parameters;
|
opj_cparameters_t parameters;
|
||||||
|
#ifdef OPJ_HAVE_LIBTIFF
|
||||||
|
const unsigned int target_bitdepth = 0;
|
||||||
|
#endif
|
||||||
(void)nbFilenamePGX;
|
(void)nbFilenamePGX;
|
||||||
(void)separator;
|
(void)separator;
|
||||||
|
|
||||||
|
@ -284,7 +287,7 @@ static opj_image_t* readImageFromFileTIF(const char* filename,
|
||||||
|
|
||||||
/* Read the tif file corresponding to the component */
|
/* Read the tif file corresponding to the component */
|
||||||
#ifdef OPJ_HAVE_LIBTIFF
|
#ifdef OPJ_HAVE_LIBTIFF
|
||||||
image_read = tiftoimage(filename, ¶meters);
|
image_read = tiftoimage(filename, ¶meters, target_bitdepth);
|
||||||
#endif
|
#endif
|
||||||
if (!image_read) {
|
if (!image_read) {
|
||||||
fprintf(stderr, "Unable to load TIF file\n");
|
fprintf(stderr, "Unable to load TIF file\n");
|
||||||
|
|
Loading…
Reference in New Issue