~ubuntu-branches/ubuntu/lucid/perl-tk/lucid

« back to all changes in this revision

Viewing changes to PNG/libpng/pngrio.c

  • Committer: Bazaar Package Importer
  • Author(s): Colin Tuckley
  • Date: 2008-02-15 13:56:59 UTC
  • mfrom: (1.1.3 upstream) (4.1.1 hardy)
  • Revision ID: james.westby@ubuntu.com-20080215135659-ru2oqlykuju20fav
Tags: 1:804.028-1
* New Upstream Release (Closes: #463080).
* Update to Debhelper v5.
* Build with XFT=1 (Closes: #411129).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
2
2
/* pngrio.c - functions for data input
3
3
 *
4
 
 * libpng 1.2.5 - October 3, 2002
 
4
 * Last changed in libpng 1.2.9 April 14, 2006
5
5
 * For conditions of distribution and use, see copyright notice in png.h
6
 
 * Copyright (c) 1998-2002 Glenn Randers-Pehrson
 
6
 * Copyright (c) 1998-2006 Glenn Randers-Pehrson
7
7
 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
8
8
 * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
9
9
 *
18
18
#define PNG_INTERNAL
19
19
#include "png.h"
20
20
 
 
21
#if defined(PNG_READ_SUPPORTED)
 
22
 
21
23
/* Read the data from whatever input you are using.  The default routine
22
24
   reads from a file pointer.  Note that this routine sometimes gets called
23
25
   with very small lengths, so you should implement some kind of simple
67
69
#define NEAR_BUF_SIZE 1024
68
70
#define MIN(a,b) (a <= b ? a : b)
69
71
 
70
 
static void /* PRIVATE */
 
72
static void PNGAPI
71
73
png_default_read_data(png_structp png_ptr, png_bytep data, png_size_t length)
72
74
{
73
75
   int check;
159
161
   png_ptr->output_flush_fn = NULL;
160
162
#endif
161
163
}
 
164
#endif /* PNG_READ_SUPPORTED */