PandA-2024.02
|
#include <stdio.h>
Go to the source code of this file.
Macros | |
#define | SIZE 100 |
#define | IN_END 100 |
Functions | |
int | encode (int, int) |
void | decode (int) |
int | filtez (int *bpl, int *dlt) |
void | upzero (int dlt, int *dlti, int *bli) |
int | filtep (int rlt1, int al1, int rlt2, int al2) |
int | quantl (int el, int detl) |
int | logscl (int il, int nbl) |
int | scalel (int nbl, int shift_constant) |
int | uppol2 (int al1, int al2, int plt, int plt1, int plt2) |
int | uppol1 (int al1, int apl2, int plt, int plt1) |
int | logsch (int ih, int nbh) |
void | reset () |
int | abs (int n) |
void | adpcm_main () |
int | main () |
Variables | |
int | tqmf [24] |
const int | h [24] |
int | xl |
int | xh |
int | accumc [11] |
int | accumd [11] |
int | xout1 |
int | xout2 |
int | xs |
int | xd |
int | il |
int | szl |
int | spl |
int | sl |
int | el |
const int | qq4_code4_table [16] |
const int | qq6_code6_table [64] |
int | delay_bpl [6] |
int | delay_dltx [6] |
const int | wl_code_table [16] |
const int | ilb_table [32] |
int | nbl |
int | al1 |
int | al2 |
int | plt |
int | plt1 |
int | plt2 |
int | dlt |
int | rlt |
int | rlt1 |
int | rlt2 |
const int | decis_levl [30] |
int | detl |
const int | quant26bt_pos [31] |
const int | quant26bt_neg [31] |
int | deth |
int | sh |
int | eh |
const int | qq2_code2_table [4] |
const int | wh_code_table [4] |
int | dh |
int | ih |
int | nbh |
int | szh |
int | sph |
int | ph |
int | yh |
int | rh |
int | delay_dhx [6] |
int | delay_bph [6] |
int | ah1 |
int | ah2 |
int | ph1 |
int | ph2 |
int | rh1 |
int | rh2 |
int | ilr |
int | rl |
int | dec_deth |
int | dec_detl |
int | dec_dlt |
int | dec_del_bpl [6] |
int | dec_del_dltx [6] |
int | dec_plt |
int | dec_plt1 |
int | dec_plt2 |
int | dec_szl |
int | dec_spl |
int | dec_sl |
int | dec_rlt1 |
int | dec_rlt2 |
int | dec_rlt |
int | dec_al1 |
int | dec_al2 |
int | dl |
int | dec_nbl |
int | dec_dh |
int | dec_nbh |
int | dec_del_bph [6] |
int | dec_del_dhx [6] |
int | dec_szh |
int | dec_rh1 |
int | dec_rh2 |
int | dec_ah1 |
int | dec_ah2 |
int | dec_ph |
int | dec_sph |
int | dec_sh |
int | dec_ph1 |
int | dec_ph2 |
const int | test_data [SIZE] |
int | compressed [SIZE] |
int | result [SIZE] |
const int | test_compressed [SIZE] |
const int | test_result [SIZE] |
#define IN_END 100 |
Definition at line 776 of file adpcm.c.
Referenced by adpcm_main(), and main().
void adpcm_main | ( | ) |
void decode | ( | int | input | ) |
Definition at line 401 of file adpcm.c.
References accumc, accumd, dec_ah1, dec_ah2, dec_al1, dec_al2, dec_del_bph, dec_del_bpl, dec_del_dhx, dec_del_dltx, dec_deth, dec_detl, dec_dh, dec_dlt, dec_nbh, dec_nbl, dec_ph, dec_ph1, dec_ph2, dec_plt, dec_plt1, dec_plt2, dec_rh1, dec_rh2, dec_rlt, dec_rlt1, dec_rlt2, dec_sh, dec_sl, dec_sph, dec_spl, dec_szh, dec_szl, dl, filtep(), filtez(), h, ih, il, ilr, L, logsch(), logscl(), qq2_code2_table, qq4_code4_table, qq6_code6_table, rh, rl, scalel(), uppol1(), uppol2(), upzero(), xd, xout1, xout2, and xs.
int encode | ( | int | xin1, |
int | xin2 | ||
) |
Definition at line 248 of file adpcm.c.
References abs(), ah1, ah2, al1, al2, delay_bph, delay_bpl, delay_dhx, delay_dltx, deth, detl, dh, dlt, eh, el, filtep(), filtez(), h, ih, il, L, logsch(), logscl(), nbh, nbl, ph, ph1, ph2, plt, plt1, plt2, qq2_code2_table, qq4_code4_table, quantl(), rh1, rh2, rlt, rlt1, rlt2, scalel(), sh, sl, sph, spl, szh, szl, tqmf, uppol1(), uppol2(), upzero(), xh, xl, and yh.
int filtep | ( | int | rlt1, |
int | al1, | ||
int | rlt2, | ||
int | al2 | ||
) |
int logsch | ( | int | ih, |
int | nbh | ||
) |
Definition at line 754 of file adpcm.c.
References ih, L, and wh_code_table.
int logscl | ( | int | il, |
int | nbl | ||
) |
Definition at line 634 of file adpcm.c.
References L, and wl_code_table.
int main | ( | void | ) |
Definition at line 859 of file adpcm.c.
References adpcm_main(), compressed, IN_END, main_result, result, test_compressed, and test_result.
int quantl | ( | int | el, |
int | detl | ||
) |
Definition at line 608 of file adpcm.c.
References abs(), decis_levl, L, quant26bt_neg, and quant26bt_pos.
void reset | ( | ) |
Definition at line 540 of file adpcm.c.
References accumc, accumd, ah1, ah2, al1, al2, dec_ah1, dec_ah2, dec_al1, dec_al2, dec_del_bph, dec_del_bpl, dec_del_dhx, dec_del_dltx, dec_deth, dec_detl, dec_nbh, dec_nbl, dec_ph1, dec_ph2, dec_plt1, dec_plt2, dec_rh1, dec_rh2, dec_rlt1, dec_rlt2, delay_bph, delay_bpl, delay_dhx, delay_dltx, deth, detl, nbh, nbl, ph1, ph2, plt1, plt2, rh1, rh2, rlt1, rlt2, and tqmf.
int scalel | ( | int | nbl, |
int | shift_constant | ||
) |
int uppol1 | ( | int | al1, |
int | apl2, | ||
int | plt, | ||
int | plt1 | ||
) |
int uppol2 | ( | int | al1, |
int | al2, | ||
int | plt, | ||
int | plt1, | ||
int | plt2 | ||
) |
void upzero | ( | int | dlt, |
int * | dlti, | ||
int * | bli | ||
) |
const int decis_levl[30] |
const int h[24] |
const int ilb_table[32] |
const int qq2_code2_table[4] |
const int qq4_code4_table[16] |
const int qq6_code6_table[64] |
const int quant26bt_neg[31] |
const int quant26bt_pos[31] |
const int test_compressed[SIZE] |
const int test_data[SIZE] |
const int test_result[SIZE] |
const int wh_code_table[4] |
const int wl_code_table[16] |