comparison 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
comparison
equal deleted inserted replaced
463:9208db14b4b9 464:fa0652115168
92 92
93 void amr_frame_to_tseq(const struct amr_param_frame *frame, uint16_t *cod); 93 void amr_frame_to_tseq(const struct amr_param_frame *frame, uint16_t *cod);
94 int amr_frame_from_tseq(const uint16_t *cod, int use_rxtype, 94 int amr_frame_from_tseq(const uint16_t *cod, int use_rxtype,
95 struct amr_param_frame *frame); 95 struct amr_param_frame *frame);
96 96
97 /* stateless functions and const data for DHF detection */ 97 /* stateless function and const data for DHF detection */
98 98
99 int amr_check_dhf(const struct amr_param_frame *frame, int first_sub_only); 99 int amr_check_dhf(const struct amr_param_frame *frame, int first_sub_only);
100
101 void amr_dhf_subst_efr(struct amr_param_frame *frame);
102 100
103 extern const int16_t amr_dhf_mr475[AMR_MAX_PRM]; 101 extern const int16_t amr_dhf_mr475[AMR_MAX_PRM];
104 extern const int16_t amr_dhf_mr515[AMR_MAX_PRM]; 102 extern const int16_t amr_dhf_mr515[AMR_MAX_PRM];
105 extern const int16_t amr_dhf_mr59[AMR_MAX_PRM]; 103 extern const int16_t amr_dhf_mr59[AMR_MAX_PRM];
106 extern const int16_t amr_dhf_mr67[AMR_MAX_PRM]; 104 extern const int16_t amr_dhf_mr67[AMR_MAX_PRM];
108 extern const int16_t amr_dhf_mr795[AMR_MAX_PRM]; 106 extern const int16_t amr_dhf_mr795[AMR_MAX_PRM];
109 extern const int16_t amr_dhf_mr102[AMR_MAX_PRM]; 107 extern const int16_t amr_dhf_mr102[AMR_MAX_PRM];
110 extern const int16_t amr_dhf_mr122[AMR_MAX_PRM]; 108 extern const int16_t amr_dhf_mr122[AMR_MAX_PRM];
111 extern const int16_t amr_dhf_gsmefr[AMR_MAX_PRM]; 109 extern const int16_t amr_dhf_gsmefr[AMR_MAX_PRM];
112 110
111 /* DHF transformation on encoder output, for AMR-EFR emulation */
112
113 void amr_dhf_subst_efr(struct amr_param_frame *frame);
114 void amr_dhf_subst_efr2(struct amr_param_frame *frame, const int16_t *pcm);
115
113 /* public const datum: RFC 4867 file header */ 116 /* public const datum: RFC 4867 file header */
114 117
115 extern const uint8_t amr_file_header_magic[AMR_IETF_HDR_LEN]; 118 extern const uint8_t amr_file_header_magic[AMR_IETF_HDR_LEN];
116 119
117 #endif /* include guard */ 120 #endif /* include guard */