comparison libgsmfr2/tw_gsmfr.h @ 259:bebae251e5ee

libgsmfr2: implement gsmfr_pack_from_array()
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 12 Apr 2024 22:48:50 +0000
parents a33edf624061
children
comparison
equal deleted inserted replaced
258:c344b4f35eb7 259:bebae251e5ee
64 /* conversion between RTP packed format and struct gsmfr_param_frame */ 64 /* conversion between RTP packed format and struct gsmfr_param_frame */
65 65
66 void gsmfr_pack_frame(const struct gsmfr_param_frame *param, uint8_t *frame); 66 void gsmfr_pack_frame(const struct gsmfr_param_frame *param, uint8_t *frame);
67 void gsmfr_unpack_frame(const uint8_t *frame, struct gsmfr_param_frame *param); 67 void gsmfr_unpack_frame(const uint8_t *frame, struct gsmfr_param_frame *param);
68 68
69 /* similar conversions with a linear array of params */
70
71 void gsmfr_pack_from_array(const int16_t *params, uint8_t *frame);
72 void gsmfr_unpack_to_array(const uint8_t *frame, int16_t *params);
73
69 /* Rx DTX handler preprocessor portion of the library */ 74 /* Rx DTX handler preprocessor portion of the library */
70 75
71 struct gsmfr_preproc_state; /* opaque to external users */ 76 struct gsmfr_preproc_state; /* opaque to external users */
72 77
73 struct gsmfr_preproc_state *gsmfr_preproc_create(void); 78 struct gsmfr_preproc_state *gsmfr_preproc_create(void);