Coverage Report

Created: 2025-06-24 07:01

/src/ghostpdl/base/gxclzlib.c
Line
Count
Source
1
/* Copyright (C) 2001-2023 Artifex Software, Inc.
2
   All Rights Reserved.
3
4
   This software is provided AS-IS with no warranty, either express or
5
   implied.
6
7
   This software is distributed under license and may not be copied,
8
   modified or distributed except as expressly authorized under the terms
9
   of the license contained in the file LICENSE in this distribution.
10
11
   Refer to licensing information at http://www.artifex.com or contact
12
   Artifex Software, Inc.,  39 Mesa Street, Suite 108A, San Francisco,
13
   CA 94129, USA, for further information.
14
*/
15
16
17
/* zlib filter initialization for RAM-based band lists */
18
/* Must be compiled with -I$(ZSRCDIR) */
19
#include "std.h"
20
#include "gstypes.h"
21
#include "gsmemory.h"
22
#include "gxclmem.h"
23
#include "szlibx.h"
24
25
/* Return the prototypes for compressing/decompressing the band list. */
26
const stream_template *
27
clist_compressor_template(void)
28
730k
{
29
730k
    return &s_zlibE_template;
30
730k
}
31
const stream_template *
32
clist_decompressor_template(void)
33
730k
{
34
730k
    return &s_zlibD_template;
35
730k
}
36
void
37
clist_compressor_init(stream_state *state)
38
730k
{
39
730k
    s_zlib_set_defaults(state);
40
730k
    ((stream_zlib_state *)state)->no_wrapper = true;
41
730k
    state->templat = &s_zlibE_template;
42
730k
}
43
void
44
clist_decompressor_init(stream_state *state)
45
730k
{
46
730k
    s_zlib_set_defaults(state);
47
730k
    ((stream_zlib_state *)state)->no_wrapper = true;
48
730k
    state->templat = &s_zlibD_template;
49
730k
}