~ubuntu-branches/ubuntu/hardy/ghostscript/hardy

« back to all changes in this revision

Viewing changes to libpng/pngtrans.c

  • Committer: Bazaar Package Importer
  • Author(s): Till Kamppeter
  • Date: 2007-11-22 12:17:43 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20071122121743-cd70s3ypq0r243mp
Tags: 8.61.dfsg.1-0ubtuntu1
* New upstream release
  o Final 8.61 release
* debian/patches/09_ijs_krgb_support.dpatch: Adapted to upstream changes.
* debian/rules: Updated CUPS-related variables for "make install" calls.
* debian/rules: Remove /usr/include/ghostscript from the ghostscript
  package, they go into lings-dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
2
2
/* pngtrans.c - transforms the data in a row (used by both readers and writers)
3
3
 *
4
 
 * Last changed in libpng 1.2.13 November 13, 2006
 
4
 * Last changed in libpng 1.2.17 May 15, 2007
5
5
 * For conditions of distribution and use, see copyright notice in png.h
6
 
 * Copyright (c) 1998-2006 Glenn Randers-Pehrson
 
6
 * Copyright (c) 1998-2007 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
 */
252
252
#endif
253
253
 
254
254
#if defined(PNG_READ_PACKSWAP_SUPPORTED)||defined(PNG_WRITE_PACKSWAP_SUPPORTED)
255
 
static const png_byte onebppswaptable[256] = {
 
255
static PNG_CONST png_byte onebppswaptable[256] = {
256
256
   0x00, 0x80, 0x40, 0xC0, 0x20, 0xA0, 0x60, 0xE0,
257
257
   0x10, 0x90, 0x50, 0xD0, 0x30, 0xB0, 0x70, 0xF0,
258
258
   0x08, 0x88, 0x48, 0xC8, 0x28, 0xA8, 0x68, 0xE8,
287
287
   0x1F, 0x9F, 0x5F, 0xDF, 0x3F, 0xBF, 0x7F, 0xFF
288
288
};
289
289
 
290
 
static const png_byte twobppswaptable[256] = {
 
290
static PNG_CONST png_byte twobppswaptable[256] = {
291
291
   0x00, 0x40, 0x80, 0xC0, 0x10, 0x50, 0x90, 0xD0,
292
292
   0x20, 0x60, 0xA0, 0xE0, 0x30, 0x70, 0xB0, 0xF0,
293
293
   0x04, 0x44, 0x84, 0xC4, 0x14, 0x54, 0x94, 0xD4,
322
322
   0x2F, 0x6F, 0xAF, 0xEF, 0x3F, 0x7F, 0xBF, 0xFF
323
323
};
324
324
 
325
 
static const png_byte fourbppswaptable[256] = {
 
325
static PNG_CONST png_byte fourbppswaptable[256] = {
326
326
   0x00, 0x10, 0x20, 0x30, 0x40, 0x50, 0x60, 0x70,
327
327
   0x80, 0x90, 0xA0, 0xB0, 0xC0, 0xD0, 0xE0, 0xF0,
328
328
   0x01, 0x11, 0x21, 0x31, 0x41, 0x51, 0x61, 0x71,