FreeCalypso > hg > gsm-codec-lib
diff 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 |
line wrap: on
line diff
--- a/libgsmhr1/tw_gsmhr.h Sun Aug 25 02:50:43 2024 +0000 +++ b/libgsmhr1/tw_gsmhr.h Sun Aug 25 18:42:27 2024 +0000 @@ -51,6 +51,12 @@ int gsmhr_rtp_in_direct(const uint8_t *rtp_in, unsigned rtp_in_len, int16_t *param); +/* reading parameter arrays from files: validation functions */ + +int gsmhr_check_common_params(const int16_t *params); +int gsmhr_check_encoder_params(const int16_t *params); +int gsmhr_check_decoder_params(const int16_t *params); + /* perfect SID detection and regeneration */ int gsmhr_ts101318_is_perfect_sid(const uint8_t *payload);