~ubuntu-branches/ubuntu/trusty/tiff/trusty

« back to all changes in this revision

Viewing changes to tools/tiffcmp.c

  • Committer: Package Import Robot
  • Author(s): Jay Berkenbilt
  • Date: 2012-06-24 13:45:42 UTC
  • mfrom: (15.1.14 sid)
  • Revision ID: package-import@ubuntu.com-20120624134542-u7dltcqwnb6orprf
Tags: 4.0.2-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: tiffcmp.c,v 1.13.2.1 2010-06-08 18:50:44 bfriesen Exp $ */
 
1
/* $Id: tiffcmp.c,v 1.16 2010-03-10 18:56:50 bfriesen Exp $ */
2
2
 
3
3
/*
4
4
 * Copyright (c) 1988-1997 Sam Leffler
35
35
# include <unistd.h>
36
36
#endif
37
37
 
 
38
#ifdef NEED_LIBPORT
 
39
# include "libport.h"
 
40
#endif
 
41
 
38
42
#include "tiffio.h"
39
43
 
40
44
#ifndef HAVE_GETOPT
52
56
static  void usage(void);
53
57
static  int tiffcmp(TIFF*, TIFF*);
54
58
static  int cmptags(TIFF*, TIFF*);
55
 
static  int ContigCompare(int, uint32, unsigned char*, unsigned char*, int);
 
59
static  int ContigCompare(int, uint32, unsigned char*, unsigned char*, tsize_t);
56
60
static  int SeparateCompare(int, int, uint32, unsigned char*, unsigned char*);
57
61
static  void PrintIntDiff(uint32, int, uint32, uint32, uint32);
58
62
static  void PrintFloatDiff(uint32, int, uint32, double, double);
309
313
 
310
314
static int
311
315
ContigCompare(int sample, uint32 row,
312
 
              unsigned char* p1, unsigned char* p2, int size)
 
316
              unsigned char* p1, unsigned char* p2, tsize_t size)
313
317
{
314
318
    uint32 pix;
315
319
    int ppb = 8 / bitspersample;