Jacob Erlbeck | 239a853 | 2014-03-13 14:25:51 +0100 | [diff] [blame] | 1 | /* |
| 2 | * (C) 2014 by On-Waves |
| 3 | * All Rights Reserved |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU Affero General Public License as published by |
| 7 | * the Free Software Foundation; either version 3 of the License, or |
| 8 | * (at your option) any later version. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU Affero General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU Affero General Public License |
| 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 | * |
| 18 | */ |
| 19 | #ifndef OPENBSC_MGCP_TRANSCODE_H |
| 20 | #define OPENBSC_MGCP_TRANSCODE_H |
| 21 | |
| 22 | int mgcp_transcoding_setup(struct mgcp_endpoint *endp, |
| 23 | struct mgcp_rtp_end *dst_end, |
| 24 | struct mgcp_rtp_end *src_end); |
| 25 | |
| 26 | void mgcp_transcoding_net_downlink_format(struct mgcp_endpoint *endp, |
| 27 | int *payload_type, |
| 28 | const char**audio_name, |
| 29 | const char**fmtp_extra); |
| 30 | |
| 31 | int mgcp_transcoding_process_rtp(struct mgcp_endpoint *endp, |
| 32 | struct mgcp_rtp_end *dst_end, |
| 33 | char *data, int *len, int buf_size); |
Jacob Erlbeck | 136a319 | 2014-03-13 14:33:37 +0100 | [diff] [blame] | 34 | |
| 35 | int mgcp_transcoding_get_frame_size(void *state_, int nsamples, int dst); |
Jacob Erlbeck | 239a853 | 2014-03-13 14:25:51 +0100 | [diff] [blame] | 36 | #endif /* OPENBSC_MGCP_TRANSCODE_H */ |