diff libgsmefr/gsm_efr.h @ 33:88468d5b3590

libgsmefr: implement frame packing
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 24 Nov 2022 01:57:57 +0000
parents 2272ba6f6879
children 9499d12d315b
line wrap: on
line diff
--- a/libgsmefr/gsm_efr.h	Thu Nov 24 01:41:49 2022 +0000
+++ b/libgsmefr/gsm_efr.h	Thu Nov 24 01:57:57 2022 +0000
@@ -9,6 +9,9 @@
 
 #include <stdint.h>
 
+#define	EFR_RTP_FRAME_LEN	31
+#define	EFR_NUM_PARAMS		57
+
 struct EFR_encoder_state;	/* opaque to external users */
 struct EFR_decoder_state;	/* ditto */
 
@@ -41,6 +44,7 @@
 
 extern int EFR_sid_classify(const uint8_t *frame);
 extern void EFR_frame2params(const uint8_t *frame, int16_t *params);
-extern void EFR_params2frame(const int16_t *params, int sid, uint8_t *frame);
+extern void EFR_params2frame(const int16_t *params, uint8_t *frame);
+extern void EFR_insert_sid_codeword(uint8_t *frame);
 
 #endif	/* include guard */