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

« back to all changes in this revision

Viewing changes to src/gximage2.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:
11
11
   San Rafael, CA  94903, U.S.A., +1(415)492-9861, for further information.
12
12
*/
13
13
 
14
 
/* $Id: gximage2.c 8022 2007-06-05 22:23:38Z giles $ */
 
14
/* $Id: gximage2.c 8250 2007-09-25 13:31:24Z giles $ */
15
15
/* ImageType 2 image implementation */
16
16
#include "math_.h"
17
17
#include "memory_.h"
29
29
#include "gscolor2.h"
30
30
 
31
31
/* Forward references */
32
 
private dev_proc_begin_typed_image(gx_begin_image2);
33
 
private image_proc_source_size(gx_image2_source_size);
 
32
static dev_proc_begin_typed_image(gx_begin_image2);
 
33
static image_proc_source_size(gx_image2_source_size);
34
34
 
35
35
/* Structure descriptor */
36
36
private_st_gs_image2();
60
60
    gs_int_rect bbox;
61
61
    gs_image1_t image;
62
62
} image2_data_t;
63
 
private int
 
63
static int
64
64
image2_set_data(const gs_image2_t * pim, image2_data_t * pid)
65
65
{
66
66
    gs_state *pgs = pim->DataSource;
83
83
}
84
84
 
85
85
/* Compute the source size of an ImageType 2 image. */
86
 
private int
 
86
static int
87
87
gx_image2_source_size(const gs_imager_state * pis, const gs_image_common_t * pim,
88
88
                      gs_int_point * psize)
89
89
{
98
98
/* Begin an ImageType 2 image. */
99
99
/* Note that since ImageType 2 images don't have any source data, */
100
100
/* this procedure does all the work. */
101
 
private int
 
101
static int
102
102
gx_begin_image2(gx_device * dev,
103
103
                const gs_imager_state * pis, const gs_matrix * pmat,
104
104
                const gs_image_common_t * pic, const gs_int_rect * prect,