FreeCalypso > hg > gsm-codec-lib
comparison libgsmfr2/pp_homing.c @ 525:c95e89367321
libgsmfr2: add gsmfr_preproc_good_frame_hm()
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 19 Sep 2024 06:42:01 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
524:ddb2b00d582b | 525:c95e89367321 |
---|---|
1 /* | |
2 * gsmfr_preproc_good_frame_hm() is a wrapper around gsmfr_preproc_good_frame() | |
3 * that adds homing of the Rx DTX handler preprocessor block. This homing | |
4 * version of good frame preproc is not used in the full decoder (the latter | |
5 * implements its own homing logic as specified by 3GPP), but it will be used | |
6 * when our Rx DTX handler preprocessor functions as a TFO transform. | |
7 */ | |
8 | |
9 #include <stdint.h> | |
10 #include <string.h> | |
11 #include "tw_gsmfr.h" | |
12 | |
13 void gsmfr_preproc_good_frame_hm(struct gsmfr_preproc_state *st, uint8_t *frame) | |
14 { | |
15 if (memcmp(frame, gsmfr_decoder_homing_frame, GSMFR_RTP_FRAME_LEN)) | |
16 gsmfr_preproc_good_frame(st, frame); | |
17 else | |
18 gsmfr_preproc_reset(st); | |
19 } |