FreeCalypso > hg > gsm-codec-lib
comparison libtwamr/tw_amr.h @ 428:ffd87f972f86
libtwamr: implement TXFrameType to RXFrameType conversion
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Tue, 07 May 2024 22:15:23 +0000 |
| parents | 09534cdc59ec |
| children | 6fa27df6903b |
comparison
equal
deleted
inserted
replaced
| 427:357d1faad55d | 428:ffd87f972f86 |
|---|---|
| 82 void amr_decode_frame(struct amr_decoder_state *st, | 82 void amr_decode_frame(struct amr_decoder_state *st, |
| 83 const struct amr_param_frame *frame, int16_t *pcm); | 83 const struct amr_param_frame *frame, int16_t *pcm); |
| 84 | 84 |
| 85 /* stateless utility functions: format conversions */ | 85 /* stateless utility functions: format conversions */ |
| 86 | 86 |
| 87 enum RXFrameType amr_txtype_to_rxtype(enum TXFrameType tx_type); | 87 int amr_txtype_to_rxtype(enum TXFrameType tx_type, enum RXFrameType *rx_type); |
| 88 | 88 |
| 89 unsigned amr_frame_to_ietf(const struct amr_param_frame *frame, uint8_t *bytes); | 89 unsigned amr_frame_to_ietf(const struct amr_param_frame *frame, uint8_t *bytes); |
| 90 int amr_frame_from_ietf(const uint8_t *bytes, struct amr_param_frame *frame); | 90 int amr_frame_from_ietf(const uint8_t *bytes, struct amr_param_frame *frame); |
| 91 int amr_ietf_grok_first_octet(uint8_t fo); | 91 int amr_ietf_grok_first_octet(uint8_t fo); |
| 92 | 92 |
