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

« back to all changes in this revision

Viewing changes to PNG/zlib/compress.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
/* compress.c -- compress a memory buffer
2
 
 * Copyright (C) 1995-2002 Jean-loup Gailly.
3
 
 * For conditions of distribution and use, see copyright notice in zlib.h 
 
2
 * Copyright (C) 1995-2003 Jean-loup Gailly.
 
3
 * For conditions of distribution and use, see copyright notice in zlib.h
4
4
 */
5
5
 
6
6
/* @(#) $Id$ */
7
7
 
 
8
#define ZLIB_INTERNAL
8
9
#include "zlib.h"
9
10
 
10
11
/* ===========================================================================
66
67
{
67
68
    return compress2(dest, destLen, source, sourceLen, Z_DEFAULT_COMPRESSION);
68
69
}
 
70
 
 
71
/* ===========================================================================
 
72
     If the default memLevel or windowBits for deflateInit() is changed, then
 
73
   this function needs to be updated.
 
74
 */
 
75
uLong ZEXPORT compressBound (sourceLen)
 
76
    uLong sourceLen;
 
77
{
 
78
    return sourceLen + (sourceLen >> 12) + (sourceLen >> 14) + 11;
 
79
}