diff options
| author | Joshua Bakita <bakitajoshua@gmail.com> | 2019-10-07 19:13:39 -0400 |
|---|---|---|
| committer | Joshua Bakita <bakitajoshua@gmail.com> | 2019-10-07 19:13:39 -0400 |
| commit | 386b7d3366f1359a265da207a9cafa3edf553b64 (patch) | |
| tree | c76120c2c138faed822e4ae386be6ef22a738a78 /baseline/source/gsm_dec/private.h | |
| parent | 54a3f7091a2146b29c73a6fdc4b62a5c4ad7a3d8 (diff) | |
Reorganize and commit all the modified TACLeBench code and run scripts
Diffstat (limited to 'baseline/source/gsm_dec/private.h')
| -rw-r--r-- | baseline/source/gsm_dec/private.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/baseline/source/gsm_dec/private.h b/baseline/source/gsm_dec/private.h new file mode 100644 index 0000000..80b5c83 --- /dev/null +++ b/baseline/source/gsm_dec/private.h | |||
| @@ -0,0 +1,44 @@ | |||
| 1 | #ifndef GSM_DEC_PRIVATE_H | ||
| 2 | #define GSM_DEC_PRIVATE_H | ||
| 3 | |||
| 4 | typedef short word; /* 16 bit signed int */ | ||
| 5 | typedef long longword; /* 32 bit signed int */ | ||
| 6 | |||
| 7 | typedef unsigned short uword; /* unsigned word */ | ||
| 8 | typedef unsigned long ulongword; /* unsigned longword */ | ||
| 9 | |||
| 10 | /* Table 4.6 Normalized direct mantissa used to compute xM/xmax | ||
| 11 | */ | ||
| 12 | /* i 0 1 2 3 4 5 6 7 */ | ||
| 13 | word gsm_dec_FAC[8] = { | ||
| 14 | 18431, 20479, 22527, 24575, 26623, 28671, 30719, 32767 }; | ||
| 15 | |||
| 16 | struct gsm_state { | ||
| 17 | word dp0[ 280 ]; | ||
| 18 | word z1; /* preprocessing.c, Offset_com. */ | ||
| 19 | longword L_z2; /* Offset_com. */ | ||
| 20 | int mp; /* Preemphasis */ | ||
| 21 | word u[8]; /* short_term_aly_filter.c */ | ||
| 22 | word LARpp[2][8]; /* */ | ||
| 23 | word j; /* */ | ||
| 24 | word nrp; /* 40 */ /* long_term.c, synthesis */ | ||
| 25 | word v[9]; /* short_term.c, synthesis */ | ||
| 26 | word msr; /* decoder.c, Postprocessing */ | ||
| 27 | }; | ||
| 28 | |||
| 29 | |||
| 30 | #define MIN_WORD ((-32767)-1) | ||
| 31 | #define MAX_WORD ( 32767) | ||
| 32 | |||
| 33 | #define MIN_LONGWORD ((-2147483647)-1) | ||
| 34 | #define MAX_LONGWORD ( 2147483647) | ||
| 35 | |||
| 36 | /* >> is a signed arithmetic shift right */ | ||
| 37 | #define SASR(x, by) ((x) >> (by)) | ||
| 38 | |||
| 39 | /* Table 4.3b Quantization levels of the LTP gain quantizer | ||
| 40 | */ | ||
| 41 | /* bc 0 1 2 3 */ | ||
| 42 | word gsm_dec_QLB[4] = { 3277, 11469, 21299, 32767 }; | ||
| 43 | |||
| 44 | #endif /* GSM_DEC_PRIVATE_H */ | ||
