comparison libgsmfrp/gsm_fr_preproc.h @ 1:6780b23654bd

libgsmfrp: starting with the silence frame
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 19 Nov 2022 04:04:01 +0000
parents
children 2b5770c715ee
comparison
equal deleted inserted replaced
0:b45bb0f9bdfc 1:6780b23654bd
1 /*
2 * This header file is the external public interface to libgsmfrp;
3 * it should be installed in the same system include directory
4 * as <gsm.h> from libgsm, on which we depend.
5 */
6
7 #ifndef __GSM_FR_PREPROC_H
8 #define __GSM_FR_PREPROC_H
9
10 #include <gsm.h>
11
12 struct gsmfr_preproc_state; /* opaque to external users */
13
14 extern struct gsmfr_preproc_state *gsmfr_preproc_create(void);
15 /* use standard free() call to free it afterward */
16
17 /* reset state to initial */
18 extern void gsmfr_preproc_reset(struct gsmfr_preproc_state *state);
19
20 /* main processing functions */
21 extern void gsmfr_preproc_good_frame(struct gsmfr_preproc_state *state,
22 gsm_byte *frame);
23 extern void gsmfr_preproc_bfi(struct gsmfr_preproc_state *state, int taf,
24 gsm_byte *frame_out);
25
26 /* utility function */
27 extern int gsmfr_preproc_sid_classify(const gsm_frame *frame);
28
29 /* utility datum */
30 extern const gsm_frame gsmfr_preproc_silence_frame;
31
32 #endif /* include guard */