~ubuntu-branches/ubuntu/oneiric/ghostscript/oneiric

« back to all changes in this revision

Viewing changes to base/gdevtifs.h

  • Committer: Bazaar Package Importer
  • Author(s): Till Kamppeter
  • Date: 2011-07-15 16:49:55 UTC
  • mfrom: (1.1.23 upstream)
  • Revision ID: james.westby@ubuntu.com-20110715164955-uga6qibao6kez05c
Tags: 9.04~dfsg~20110715-0ubuntu1
* New upstream release
   - GIT snapshot from Jult, 12 2011.
* debian/patches/020110406~a54df2d.patch,
  debian/patches/020110408~0791cc8.patch,
  debian/patches/020110408~507cbee.patch,
  debian/patches/020110411~4509a49.patch,
  debian/patches/020110412~78bb9a6.patch,
  debian/patches/020110418~a05ab8a.patch,
  debian/patches/020110420~20b6c78.patch,
  debian/patches/020110420~4ddefa2.patch: Removed upstream patches.
* debian/rules: Generate ABI version number (variable "abi") correctly,
  cutting off repackaging and pre-release parts.
* debian/rules: Added ./lcms2/ directory to DEB_UPSTREAM_REPACKAGE_EXCLUDES.
* debian/copyright: Added lcms2/* to the list of excluded files.
* debian/symbols.common: Updated for new upstream source. Applied patch
  which dpkg-gensymbols generated for debian/libgs9.symbols to this file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
   San Rafael, CA  94903, U.S.A., +1(415)492-9861, for further information.
12
12
*/
13
13
 
14
 
/* $Id: gdevtifs.h 11862 2010-10-27 19:48:01Z robin $ */
 
14
/* $Id$ */
15
15
/* Definitions for writing TIFF file formats. */
16
16
 
17
17
#ifndef gdevtifs_INCLUDED
18
18
#  define gdevtifs_INCLUDED
19
19
 
20
 
#include <tiffio.h>     /* must be first, because gdevio.h re-#defines "printf"
21
 
                           which is used in a function __attribute__ by
22
 
                           tiffio.h */
 
20
#include <tiffio.h>     /* must be first, because gdevio.h re-#defines "printf"
 
21
                           which is used in a function __attribute__ by
 
22
                           tiffio.h */
23
23
#include "gdevprn.h"
24
24
 
25
25
/* ================ Implementation ================ */
28
28
    gx_device_common;
29
29
    gx_prn_device_common;
30
30
    bool  BigEndian;            /* true = big endian; false = little endian*/
31
 
    uint16 Compression;         /* same values as TIFFTAG_COMPRESSION */
 
31
    uint16 Compression;         /* same values as TIFFTAG_COMPRESSION */
32
32
    long MaxStripSize;
33
33
    long DownScaleFactor;
34
 
    long AdjustWidth;            /* 0 = no adjust, 1 = adjust to fax values */
 
34
    long AdjustWidth;            /* 0 = no adjust, 1 = adjust to fax values, >1 = adjust to this */
35
35
    long MinFeatureSize;         /* < 2 == no darkening */
36
 
    TIFF *tif;                  /* TIFF file opened on gx_device_common.file */
 
36
    TIFF *tif;                  /* TIFF file opened on gx_device_common.file */
37
37
} gx_device_tiff;
38
38
 
39
39
dev_proc_output_page(tiff_output_page);
52
52
int tiff_print_page(gx_device_printer *dev, TIFF *tif, int min_feature_size);
53
53
 
54
54
int tiff_downscale_and_print_page(gx_device_printer *dev, TIFF *tif,
55
 
                                  int factor, int msf, int aw);
 
55
                                  int factor, int msf, int aw, int bpc,
 
56
                                  int num_comps);
56
57
 
57
58
/*
58
59
 * Sets the compression tag for TIFF and updates the rows_per_strip tag to
63
64
#define TIFF_DEFAULT_DOWNSCALE 1
64
65
 
65
66
int tiff_set_compression(gx_device_printer *pdev,
66
 
                         TIFF *tif,
67
 
                         uint compression,
68
 
                         long max_strip_size);
 
67
                         TIFF *tif,
 
68
                         uint compression,
 
69
                         long max_strip_size);
69
70
 
70
71
int tiff_set_fields_for_printer(gx_device_printer *pdev, TIFF *tif, int factor,
71
72
                                int adjustWidth);