Files
ambed-xombe/xombe/src/tables/dstar_enc_tables.h
T

26 lines
1.0 KiB
C

#ifndef XOMBE_DSTAR_ENC_TABLES_H
#define XOMBE_DSTAR_ENC_TABLES_H
/* D-STAR encoder white-noise voicing reference m_noise(N, b0), generated by scripts/gen_dstar_enc_tables.py,
do not edit
window N = 199 + 2i (i < XOMBE_DS_MN_WINDOWS) has rows for b0 lo[i]..lo[i] + cnt[i] - 1 from row off[i],
each row the 8 band values x 65536 */
#define XOMBE_DS_MN_N_MIN 199
#define XOMBE_DS_MN_WINDOWS 62
#define XOMBE_DS_MN_ROWS 368
#define XOMBE_DS_MN_SCALE 65536.0f
extern const unsigned char xombe__ds_mn_lo[XOMBE_DS_MN_WINDOWS];
extern const unsigned char xombe__ds_mn_cnt[XOMBE_DS_MN_WINDOWS];
extern const unsigned short xombe__ds_mn_off[XOMBE_DS_MN_WINDOWS];
extern const unsigned short xombe__ds_mn[XOMBE_DS_MN_ROWS][8];
/* tone detector segment and tone-in-noise window lengths in samples, Hann windows 0.5 - 0.5*cos(2*pi*i/(n - 1)) */
#define XOMBE_DS_TONE_LEN 160
#define XOMBE_DS_NZ_LEN 134
extern const float xombe__ds_tone_win[XOMBE_DS_TONE_LEN];
extern const float xombe__ds_nz_win[XOMBE_DS_NZ_LEN];
#endif