ReactOS 0.4.15-dev-7907-g95bf896
lzx_compress.h
Go to the documentation of this file.
1/*
2 File lzx_compress.h, part of lzxcomp library
3 Copyright (C) 2002 Matthew T. Russotto
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as published by
7 the Free Software Foundation; version 2.1 only
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17*/
18typedef struct lzx_data lzx_data;
19typedef int (*lzx_get_bytes_t)(void *arg, int n, void *buf);
20typedef int (*lzx_put_bytes_t)(void *arg, int n, void *buf);
21typedef void (*lzx_mark_frame_t)(void *arg, uint32_t uncomp, uint32_t comp);
22typedef int (*lzx_at_eof_t)(void *arg);
23
24typedef struct lzx_results
25{
26 /* add more here? Error codes, # blocks, # frames, etc? */
30
31int lzx_init(struct lzx_data **lzxdp, int wsize_code,
32 lzx_get_bytes_t get_bytes, void *get_bytes_arg,
33 lzx_at_eof_t at_eof,
34 lzx_put_bytes_t put_bytes, void *put_bytes_arg,
35 lzx_mark_frame_t mark_frame, void *mark_frame_arg);
36
37void lzx_reset(lzx_data *lzxd);
38
39int lzx_compress_block(lzx_data *lzxd, int block_size, int subdivide);
40
41int lzx_finish(struct lzx_data *lzxd, struct lzx_results *lzxr);
42
UINT32 uint32_t
Definition: types.h:75
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Definition: typeof.h:31
GLdouble n
Definition: glext.h:7729
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
static DWORD block_size(DWORD block)
Definition: jsutils.c:66
int lzx_finish(struct lzx_data *lzxd, struct lzx_results *lzxr)
Definition: lzx_layer.c:1236
int lzx_init(struct lzx_data **lzxdp, int wsize_code, lzx_get_bytes_t get_bytes, void *get_bytes_arg, lzx_at_eof_t at_eof, lzx_put_bytes_t put_bytes, void *put_bytes_arg, lzx_mark_frame_t mark_frame, void *mark_frame_arg)
Definition: lzx_layer.c:1189
int lzx_compress_block(lzx_data *lzxd, int block_size, int subdivide)
Definition: lzx_layer.c:1062
int(* lzx_get_bytes_t)(void *arg, int n, void *buf)
Definition: lzx_compress.h:19
void lzx_reset(lzx_data *lzxd)
Definition: lzx_layer.c:1053
int(* lzx_at_eof_t)(void *arg)
Definition: lzx_compress.h:22
int(* lzx_put_bytes_t)(void *arg, int n, void *buf)
Definition: lzx_compress.h:20
void(* lzx_mark_frame_t)(void *arg, uint32_t uncomp, uint32_t comp)
Definition: lzx_compress.h:21
long len_compressed_output
Definition: lzx_compress.h:27
long len_uncompressed_input
Definition: lzx_compress.h:28
void * arg
Definition: msvc.h:10