"checkit_tiff" is an incredibly fast conformance checker for baseline TIFFs (with various extensions), see http://andreas-romeyke.de
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

33 lines
770 B

/* rule based checks if given TIFF is a specific baseline TIFF
*
* author: Andreas Romeyke, 2015-2017
* licensed under conditions of libtiff
* (see http://libtiff.maptools.org/misc.html)
*
*/
#include "check.h"
#include "check_renderer.h"
render_type render_engine=render_default;
short int is_quiet = 1;
void set_renderer_to_quiet() {
is_quiet=0;
}
void set_renderer_to_ansi() {
if (isatty (STDOUT_FILENO)) {
render_engine=render_ansi;
}
}
const char * renderer ( const retmsg_t * ret ) {
// call debug renderer
switch (render_engine) {
case render_ansi: return renderer_ansi( ret, is_quiet );
default: return renderer_default( ret, is_quiet );
}
return "";
}
/* vim: set tabstop=2 softtabstop=2 shiftwidth=2 smarttab expandtab :*/