comparison 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
comparison
equal deleted inserted replaced
32:9639a44ae2e7 33:88468d5b3590
6 6
7 #ifndef __GSM_EFR_H 7 #ifndef __GSM_EFR_H
8 #define __GSM_EFR_H 8 #define __GSM_EFR_H
9 9
10 #include <stdint.h> 10 #include <stdint.h>
11
12 #define EFR_RTP_FRAME_LEN 31
13 #define EFR_NUM_PARAMS 57
11 14
12 struct EFR_encoder_state; /* opaque to external users */ 15 struct EFR_encoder_state; /* opaque to external users */
13 struct EFR_decoder_state; /* ditto */ 16 struct EFR_decoder_state; /* ditto */
14 17
15 extern struct EFR_encoder_state *EFR_encoder_create(int dtx); 18 extern struct EFR_encoder_state *EFR_encoder_create(int dtx);
39 42
40 /* stateless utility functions */ 43 /* stateless utility functions */
41 44
42 extern int EFR_sid_classify(const uint8_t *frame); 45 extern int EFR_sid_classify(const uint8_t *frame);
43 extern void EFR_frame2params(const uint8_t *frame, int16_t *params); 46 extern void EFR_frame2params(const uint8_t *frame, int16_t *params);
44 extern void EFR_params2frame(const int16_t *params, int sid, uint8_t *frame); 47 extern void EFR_params2frame(const int16_t *params, uint8_t *frame);
48 extern void EFR_insert_sid_codeword(uint8_t *frame);
45 49
46 #endif /* include guard */ 50 #endif /* include guard */