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

« back to all changes in this revision

Viewing changes to src/sdctd.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: sdctd.c 8022 2007-06-05 22:23:38Z giles $ */
 
14
/* $Id: sdctd.c 8250 2007-09-25 13:31:24Z giles $ */
15
15
/* DCT decoding filter stream */
16
16
#include "memory_.h"
17
17
#include "stdio_.h"
26
26
/* ------ DCTDecode ------ */
27
27
 
28
28
/* JPEG source manager procedures */
29
 
private void
 
29
static void
30
30
dctd_init_source(j_decompress_ptr dinfo)
31
31
{
32
32
}
33
33
static const JOCTET fake_eoi[2] =
34
34
{0xFF, JPEG_EOI};
35
 
private boolean
 
35
static boolean
36
36
dctd_fill_input_buffer(j_decompress_ptr dinfo)
37
37
{
38
38
    jpeg_decompress_data *jddp =
49
49
    jddp->faked_eoi = true;     /* so process routine doesn't use next_input_byte */
50
50
    return TRUE;
51
51
}
52
 
private void
 
52
static void
53
53
dctd_skip_input_data(j_decompress_ptr dinfo, long num_bytes)
54
54
{
55
55
    struct jpeg_source_mgr *src = dinfo->src;
68
68
        src->bytes_in_buffer -= num_bytes;
69
69
    }
70
70
}
71
 
private void
 
71
static void
72
72
dctd_term_source(j_decompress_ptr dinfo)
73
73
{
74
74
}
75
75
 
76
76
/* Set the defaults for the DCTDecode filter. */
77
 
private void
 
77
static void
78
78
s_DCTD_set_defaults(stream_state * st)
79
79
{
80
80
    s_DCT_set_defaults(st);
81
81
}
82
82
 
83
83
/* Initialize DCTDecode filter */
84
 
private int
 
84
static int
85
85
s_DCTD_init(stream_state * st)
86
86
{
87
87
    stream_DCT_state *const ss = (stream_DCT_state *) st;
102
102
}
103
103
 
104
104
/* Process a buffer */
105
 
private int
 
105
static int
106
106
s_DCTD_process(stream_state * st, stream_cursor_read * pr,
107
107
               stream_cursor_write * pw, bool last)
108
108
{
263
263
}
264
264
 
265
265
/* Release the stream */
266
 
private void
 
266
static void
267
267
s_DCTD_release(stream_state * st)
268
268
{
269
269
    stream_DCT_state *const ss = (stream_DCT_state *) st;