FreeCalypso > hg > gsm-codec-lib
diff libtwamr/tw_amr.h @ 354:e4ce7972737f
libtwamr: add DHF tables
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 05 May 2024 21:34:23 +0000 |
parents | 6b33f3ba4289 |
children | 028ed5114e52 |
line wrap: on
line diff
--- a/libtwamr/tw_amr.h Sun May 05 21:32:59 2024 +0000 +++ b/libtwamr/tw_amr.h Sun May 05 21:34:23 2024 +0000 @@ -94,4 +94,20 @@ int amr_frame_from_tseq(const uint16_t *cod, int use_rxtype, struct amr_param_frame *frame); +/* stateless functions and const data for DHF detection */ + +int amr_check_dhf(const struct amr_param_frame *frame, int first_sub_only); + +void amr_dhf_subst_efr(struct amr_param_frame *frame); + +extern const int16_t amr_dhf_mr475[AMR_MAX_PRM]; +extern const int16_t amr_dhf_mr515[AMR_MAX_PRM]; +extern const int16_t amr_dhf_mr59[AMR_MAX_PRM]; +extern const int16_t amr_dhf_mr67[AMR_MAX_PRM]; +extern const int16_t amr_dhf_mr74[AMR_MAX_PRM]; +extern const int16_t amr_dhf_mr795[AMR_MAX_PRM]; +extern const int16_t amr_dhf_mr102[AMR_MAX_PRM]; +extern const int16_t amr_dhf_mr122[AMR_MAX_PRM]; +extern const int16_t amr_dhf_gsmefr[AMR_MAX_PRM]; + #endif /* include guard */