Debugging: print which jpeg lib is used

This commit is contained in:
Shahram Najm 2017-12-28 11:36:19 +00:00
parent a98e258d82
commit 0cfda760ca
1 changed files with 13 additions and 0 deletions

View File

@ -201,6 +201,19 @@ static void init(grib_accessor* a,const long v, grib_arguments* args)
}
}
if (a->context->debug==-1) {
switch (self->jpeg_lib) {
case 0:
printf("ECCODES DEBUG jpeg2000_packing: jpeg_lib not set!\n"); break;
case JASPER_LIB:
printf("ECCODES DEBUG jpeg2000_packing: using JASPER_LIB\n"); break;
case OPENJPEG_LIB:
printf("ECCODES DEBUG jpeg2000_packing: using OPENJPEG_LIB\n"); break;
default:
Assert(0); break;
}
}
self->dump_jpg = codes_getenv("ECCODES_GRIB_DUMP_JPG_FILE");
if(first) {