Debian Codegraph @

converter/other/fiasco/codec/wfalib.h

raw
1 /*
2 * wfalib.h
3 *
4 * Written by: Ullrich Hafner
5 *
6 * This file is part of FIASCO (Fractal Image And Sequence COdec)
7 * Copyright (C) 1994-2000 Ullrich Hafner
8 */
9
10 /*
11 * $Date: 2000/06/14 20:50:51 $
12 * $Author: hafner $
13 * $Revision: 5.1 $
14 * $State: Exp $
15 */
16
17 #ifndef _WFALIB_H
18 #define _WFALIB_H
19
20 #include "types.h"
21 #include "wfa.h"
22 #include "list.h"
23
24 typedef struct range_sort
25 {
26 u_word_t *range_state;
27 byte_t *range_label;
28 u_word_t *range_max_domain;
29 bool_t *range_subdivided;
30 unsigned range_no;
31 } range_sort_t;
32
33 bool_t
34 locate_delta_images (wfa_t *wfa);
35 void
36 sort_ranges (unsigned state, unsigned *domain,
37 range_sort_t *rs, const wfa_t *wfa);
38 bool_t
39 find_range (unsigned x, unsigned y, unsigned band,
40 const wfa_t *wfa, unsigned *range_state, unsigned *range_label);
41 void
42 compute_spiral (int *vorder, unsigned image_width, unsigned image_height,
43 unsigned tiling_exp, bool_t inc_spiral);
44 void
45 locate_subimage (unsigned orig_level, unsigned level, unsigned bintree,
46 unsigned *x, unsigned *y, unsigned *width, unsigned *height);
47 void
48 copy_wfa (wfa_t *dst, const wfa_t *src);
49 void
50 remove_states (unsigned from, wfa_t *wfa);
51 void
52 append_edge (unsigned from, unsigned into, real_t weight,
53 unsigned label, wfa_t *wfa);
54 word_t *
55 compute_hits (unsigned from, unsigned to, unsigned n, const wfa_t *wfa);
56 real_t
57 compute_final_distribution (unsigned state, const wfa_t *wfa);
58 wfa_t *
59 alloc_wfa (bool_t coding);
60 void
61 free_wfa (wfa_t *wfa);
62 bool_t
63 locate_delta_images (wfa_t *wfa);
64
65 #endif /* not _WFALIB_H */
66