blob: 0961634da2cd8b849b43bdf64c23429149f4b456 [file] [log] [blame]
Jacob Erlbeck239a8532014-03-13 14:25:51 +01001/*
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
22int mgcp_transcoding_setup(struct mgcp_endpoint *endp,
23 struct mgcp_rtp_end *dst_end,
24 struct mgcp_rtp_end *src_end);
25
26void mgcp_transcoding_net_downlink_format(struct mgcp_endpoint *endp,
27 int *payload_type,
28 const char**audio_name,
29 const char**fmtp_extra);
30
31int mgcp_transcoding_process_rtp(struct mgcp_endpoint *endp,
32 struct mgcp_rtp_end *dst_end,
33 char *data, int *len, int buf_size);
Jacob Erlbeck136a3192014-03-13 14:33:37 +010034
35int mgcp_transcoding_get_frame_size(void *state_, int nsamples, int dst);
Jacob Erlbeck239a8532014-03-13 14:25:51 +010036#endif /* OPENBSC_MGCP_TRANSCODE_H */