static void warning_callback( const char* msg, void* ){
  logfile << "OpenJPEG warning :: " << msg << endl;
}
static void warning_callback( const char* msg, void* ){
  logfile << "OpenJPEG warning :: " << msg << endl;
}