Coverage Report

Created: 2025-04-22 06:20

/src/libspectre/ghostscript/base/gxclzlib.c
Line
Count
Source (jump to first uncovered line)
1
/* Copyright (C) 2001-2020 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.,  1305 Grant Avenue - Suite 200, Novato,
13
   CA 94945, U.S.A., +1(415)492-9861, 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
0
{
29
0
    return &s_zlibE_template;
30
0
}
31
const stream_template *
32
clist_decompressor_template(void)
33
0
{
34
0
    return &s_zlibD_template;
35
0
}
36
void
37
clist_compressor_init(stream_state *state)
38
0
{
39
0
    s_zlib_set_defaults(state);
40
0
    ((stream_zlib_state *)state)->no_wrapper = true;
41
0
    state->templat = &s_zlibE_template;
42
0
}
43
void
44
clist_decompressor_init(stream_state *state)
45
0
{
46
0
    s_zlib_set_defaults(state);
47
0
    ((stream_zlib_state *)state)->no_wrapper = true;
48
0
    state->templat = &s_zlibD_template;
49
0
}