diff libtwamr/tw_amr.h @ 464:fa0652115168

libtwamr: add amr_dhf_subst_efr2()
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 12 May 2024 21:36:26 +0000
parents 6fa27df6903b
children
line wrap: on
line diff
--- a/libtwamr/tw_amr.h	Sat May 11 20:29:11 2024 +0000
+++ b/libtwamr/tw_amr.h	Sun May 12 21:36:26 2024 +0000
@@ -94,12 +94,10 @@
 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 */
+/* stateless function 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];
@@ -110,6 +108,11 @@
 extern const int16_t amr_dhf_mr122[AMR_MAX_PRM];
 extern const int16_t amr_dhf_gsmefr[AMR_MAX_PRM];
 
+/* DHF transformation on encoder output, for AMR-EFR emulation */
+
+void amr_dhf_subst_efr(struct amr_param_frame *frame);
+void amr_dhf_subst_efr2(struct amr_param_frame *frame, const int16_t *pcm);
+
 /* public const datum: RFC 4867 file header */
 
 extern const uint8_t amr_file_header_magic[AMR_IETF_HDR_LEN];