Harald Welte | cd90ed2 | 2020-05-14 14:58:52 +0200 | [diff] [blame] | 1 | /* TRAU frame to RTP conversion */ |
| 2 | |
| 3 | /* (C) 2009,2020 by Harald Welte <laforge@gnumonks.org> |
| 4 | * All Rights Reserved |
| 5 | * |
| 6 | * SPDX-License-Identifier: GPL-2.0+ |
| 7 | * |
| 8 | * This program is free software; you can redistribute it and/or modify |
| 9 | * it under the terms of the GNU General Public License as published by |
| 10 | * the Free Software Foundation; either version 2 of the License, or |
| 11 | * (at your option) any later version. |
| 12 | * |
| 13 | * This program is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | * GNU General Public License for more details. |
| 17 | * |
| 18 | * You should have received a copy of the GNU General Public License |
| 19 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 20 | * |
| 21 | */ |
| 22 | |
| 23 | #include <osmocom/trau/trau_frame.h> |
| 24 | |
| 25 | struct osmo_trau2rtp_state { |
| 26 | enum osmo_trau_frame_type type; |
| 27 | }; |
| 28 | |
| 29 | |
| 30 | int osmo_trau2rtp(uint8_t *out, size_t out_len, const struct osmo_trau_frame *tf, |
| 31 | struct osmo_trau2rtp_state *st); |
| 32 | |
| 33 | int osmo_rtp2trau(struct osmo_trau_frame *tf, const uint8_t *rtp, size_t rtp_len, |
| 34 | struct osmo_trau2rtp_state *st); |