#include "buff.h"
Go to the source code of this file.
Data Structures | |
struct | distrib_t |
struct | code_arith |
Defines | |
#define | PREC_TOTAL 32 |
#define | PREC_INTER ((2 * PREC_TOTAL) / 3) |
#define | PREC_PROBA (PREC_TOTAL - PREC_INTER) |
#define | distrib_get_proba(d, i) ((d).prob[(i) - (d).min]) |
Typedefs | |
typedef struct code_arith * | arith_t |
Functions | |
arith_t | arith_init (struct buff *b) |
int | coder (int i, distrib_t d, arith_t state) |
int | coder_uniforme (unsigned long i, unsigned long n, arith_t state) |
int | coder_bin_fin (int i, arith_t state) |
int | decoder (distrib_t d, int *lettre, arith_t state) |
unsigned long | decoder_uniforme (unsigned long n, unsigned long *lettre, arith_t state) |
int | decoder_bin_fin (arith_t state) |
int | tester_fin (arith_t state) |
int | tester_compteur (arith_t state) |
#define distrib_get_proba | ( | d, | |||
i | ) | ((d).prob[(i) - (d).min]) |
Definition at line 35 of file arith.h.
Referenced by coder(), decoder(), dicho_si_lb_node(), dicho_si_node(), init_proba(), update_delta(), and write_precomp().
#define PREC_INTER ((2 * PREC_TOTAL) / 3) |
Definition at line 27 of file arith.h.
Referenced by adjust_delta(), ajuster(), arith_init(), coder(), coder_uniforme(), decoder(), decoder_uniforme(), dicho_searchmin(), dicho_si_from_list(), dicho_si_lb_leaf(), dicho_si_lb_node(), and leaf_info().
#define PREC_PROBA (PREC_TOTAL - PREC_INTER) |
Definition at line 28 of file arith.h.
Referenced by coder(), decoder(), dicho(), dicho_si_lb_node(), dicho_si_node(), dichoinv(), init_proba(), leaf_info(), and update_delta().
typedef struct code_arith * arith_t |
Definition at line 69 of file arith.c.
References code_arith::buffer, code_arith::compteur, code_arith::max, code_arith::min, and PREC_INTER.
Referenced by dicho_b2cw(), and dicho_cw2b().
Definition at line 137 of file arith.c.
References ajuster(), code_arith::buffer, bwrite_lock(), code_arith::compteur, distrib_get_proba, distrib_t::max, code_arith::max, code_arith::min, PREC_INTER, and PREC_PROBA.
Referenced by dicho_rec().
int coder_bin_fin | ( | int | i, | |
arith_t | state | |||
) |
int coder_uniforme | ( | unsigned long | i, | |
unsigned long | n, | |||
arith_t | state | |||
) |
Definition at line 176 of file arith.c.
References ajuster(), code_arith::buffer, bwrite_lock(), code_arith::compteur, code_arith::max, code_arith::min, and PREC_INTER.
Referenced by dicho().
Definition at line 223 of file arith.c.
References ajuster(), blook(), bread_lock(), bstep(), code_arith::buffer, chercher(), code_arith::compteur, distrib_get_proba, distrib_t::max, code_arith::max, distrib_t::min, code_arith::min, PREC_INTER, PREC_PROBA, and distrib_t::prob.
Referenced by dichoinv_rec().
int decoder_bin_fin | ( | arith_t | state | ) |
unsigned long decoder_uniforme | ( | unsigned long | n, | |
unsigned long * | lettre, | |||
arith_t | state | |||
) |
Definition at line 289 of file arith.c.
References ajuster(), blook(), bread_lock(), bstep(), code_arith::buffer, code_arith::compteur, code_arith::max, code_arith::min, and PREC_INTER.
Referenced by dichoinv().
int tester_compteur | ( | arith_t | state | ) |
int tester_fin | ( | arith_t | state | ) |