FreeCalypso > hg > gsm-codec-lib
comparison libgsmhr1/tw_gsmhr.h @ 512:4f0ab833bec0
libgsmhr1: add parameter validation function
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 25 Aug 2024 18:42:27 +0000 |
parents | 5bf71b091323 |
children |
comparison
equal
deleted
inserted
replaced
511:a5d61331b675 | 512:4f0ab833bec0 |
---|---|
49 int gsmhr_rtp_in_preen(const uint8_t *rtp_in, unsigned rtp_in_len, | 49 int gsmhr_rtp_in_preen(const uint8_t *rtp_in, unsigned rtp_in_len, |
50 uint8_t *canon_pl); | 50 uint8_t *canon_pl); |
51 int gsmhr_rtp_in_direct(const uint8_t *rtp_in, unsigned rtp_in_len, | 51 int gsmhr_rtp_in_direct(const uint8_t *rtp_in, unsigned rtp_in_len, |
52 int16_t *param); | 52 int16_t *param); |
53 | 53 |
54 /* reading parameter arrays from files: validation functions */ | |
55 | |
56 int gsmhr_check_common_params(const int16_t *params); | |
57 int gsmhr_check_encoder_params(const int16_t *params); | |
58 int gsmhr_check_decoder_params(const int16_t *params); | |
59 | |
54 /* perfect SID detection and regeneration */ | 60 /* perfect SID detection and regeneration */ |
55 | 61 |
56 int gsmhr_ts101318_is_perfect_sid(const uint8_t *payload); | 62 int gsmhr_ts101318_is_perfect_sid(const uint8_t *payload); |
57 void gsmhr_ts101318_set_sid_codeword(uint8_t *payload); | 63 void gsmhr_ts101318_set_sid_codeword(uint8_t *payload); |
58 | 64 |