FreeCalypso > hg > gsm-codec-lib
comparison libtwamr/vad.h @ 414:028ed5114e52
libtwamr: implement run-time VAD selection scheme
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 07 May 2024 02:06:47 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
413:c1bb166f768e | 414:028ed5114e52 |
---|---|
1 /* | |
2 * In the original 3GPP code, the selection between VAD1 and VAD2 is made | |
3 * only at compile time. In libtwamr we support run-time selection between | |
4 * these two VAD algorithms for tinkering and investigation work; this | |
5 * header file implements the logic that fits this run-time selection | |
6 * into the existing code structure from 3GPP. | |
7 */ | |
8 | |
9 #ifndef vad_h | |
10 #define vad_h | |
11 | |
12 #include "typedef.h" | |
13 #include "vad1.h" | |
14 #include "vad2.h" | |
15 | |
16 typedef struct { | |
17 Flag use_vad2; | |
18 union { | |
19 vadState1 v1; | |
20 vadState2 v2; | |
21 } u; | |
22 } vadState; | |
23 | |
24 void vad_reset(vadState *st, Flag use_vad2); | |
25 | |
26 #endif /* include guard */ |