#include "opj_getopt.h"
-void compareRAWimages_help_display(void);
-
typedef struct test_cmp_parameters
{
/** */
/*******************************************************************************
* Command line help function
*******************************************************************************/
-void compareRAWimages_help_display(void) {
+static void compareRAWimages_help_display(void) {
fprintf(stdout,"\nList of parameters for the comparePGX function \n");
fprintf(stdout,"\n");
fprintf(stdout," -b \t REQUIRED \t filename to the reference/baseline RAW image \n");
*******************************************************************************/
int main(int argc, char **argv)
{
+ int pos = 0;
test_cmp_parameters inParam;
FILE *file_test=NULL, *file_base=NULL;
unsigned char equal = 1;
/* Read one byte*/
if (!fread(&value_base, 1, 1, file_base)) {
- eof_base = 1;;
+ eof_base = 1;
}
/* End of file reached by the two files?*/
/* Binary values are equal?*/
if (value_test != value_base)
{
- fprintf(stdout,"Binary values read in the file are different.\n");
+ fprintf(stdout,"Binary values read in the file are different %x vs %x at position %d.\n", value_test, value_base, pos);
equal = 0;
}
+ pos++;
}
/* Free Memory */