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

« back to all changes in this revision

Viewing changes to src/gsimage.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: gsimage.c 8022 2007-06-05 22:23:38Z giles $ */
 
14
/* $Id: gsimage.c 8250 2007-09-25 13:31:24Z giles $ */
15
15
/* Image setup procedures for Ghostscript library */
16
16
#include "memory_.h"
17
17
#include "math_.h"
119
119
#define gs_image_enum_num_ptrs 2
120
120
 
121
121
/* GC procedures */
122
 
private 
 
122
static 
123
123
ENUM_PTRS_WITH(gs_image_enum_enum_ptrs, gs_image_enum *eptr)
124
124
{
125
125
    /* Enumerate the data planes. */
134
134
ENUM_PTR(0, gs_image_enum, dev);
135
135
ENUM_PTR(1, gs_image_enum, info);
136
136
ENUM_PTRS_END
137
 
private RELOC_PTRS_WITH(gs_image_enum_reloc_ptrs, gs_image_enum *eptr)
 
137
static RELOC_PTRS_WITH(gs_image_enum_reloc_ptrs, gs_image_enum *eptr)
138
138
{
139
139
    int i;
140
140
 
147
147
}
148
148
RELOC_PTRS_END
149
149
 
150
 
private int
 
150
static int
151
151
is_image_visible(const gs_image_common_t * pic, gs_state * pgs, gx_clip_path *pcpath)
152
152
{
153
153
    /* HACK : We need the source image size here, 
232
232
}
233
233
 
234
234
/* Allocate an image enumerator. */
235
 
private void
 
235
static void
236
236
image_enum_init(gs_image_enum * penum)
237
237
{
238
238
    /* Clean pointers for GC. */
300
300
}
301
301
 
302
302
/* Cache information when initializing, or after transferring plane data. */
303
 
private void
 
303
static void
304
304
cache_planes(gs_image_enum *penum)
305
305
{
306
306
    int i;
317
317
    }
318
318
}
319
319
/* Advance to the next wanted plane. */
320
 
private void
 
320
static void
321
321
next_plane(gs_image_enum *penum)
322
322
{
323
323
    int px = penum->plane_index;
332
332
 * Initialize plane_index and (if appropriate) wanted and
333
333
 * wanted_varies at the beginning of a group of planes.
334
334
 */
335
 
private void
 
335
static void
336
336
begin_planes(gs_image_enum *penum)
337
337
{
338
338
    cache_planes(penum);
419
419
 * Because some PostScript files use save/restore within an image data
420
420
 * reading procedure, this must be a stable allocator.
421
421
 */
422
 
private gs_memory_t *
 
422
static gs_memory_t *
423
423
gs_image_row_memory(const gs_image_enum *penum)
424
424
{
425
425
    return gs_memory_stable(penum->memory);
426
426
}
427
427
 
428
428
/* Free the row buffers when cleaning up. */
429
 
private void
 
429
static void
430
430
free_row_buffers(gs_image_enum *penum, int num_planes, client_name_t cname)
431
431
{
432
432
    int i;