Tristan Matthews | 0a329cc | 2013-07-17 13:20:14 -0400 | [diff] [blame] | 1 | /* $Id$ */ |
| 2 | /* |
| 3 | * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com) |
| 4 | * Copyright (C) 2003-2008 Benny Prijono <benny@prijono.org> |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by |
| 8 | * the Free Software Foundation; either version 2 of the License, or |
| 9 | * (at your option) any later version. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
| 15 | * |
| 16 | * You should have received a copy of the GNU General Public License |
| 17 | * along with this program; if not, write to the Free Software |
| 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 19 | */ |
| 20 | #ifndef __PJMEDIA_CODEC_G7221_SDP_MATCH_H__ |
| 21 | #define __PJMEDIA_CODEC_G7221_SDP_MATCH_H__ |
| 22 | |
| 23 | |
| 24 | /** |
| 25 | * @file g7221_sdp_match.h |
| 26 | * @brief Special SDP format match for G722.1. |
| 27 | */ |
| 28 | |
| 29 | #include <pjmedia/sdp_neg.h> |
| 30 | |
| 31 | PJ_BEGIN_DECL |
| 32 | |
| 33 | /** |
| 34 | * Match G.722.1 format in the SDP media offer and answer. This function |
| 35 | * will match G.722.1 bitrate setting in the SDP format parameter of |
| 36 | * offer and answer. |
| 37 | * |
| 38 | * @param pool The memory pool. |
| 39 | * @param offer The SDP media offer. |
| 40 | * @param o_fmt_idx Index of the G.722.1 format in the SDP media offer. |
| 41 | * @param answer The SDP media answer. |
| 42 | * @param a_fmt_idx Index of the G.722.1 format in the SDP media answer. |
| 43 | * @param option The format matching option, see |
| 44 | * #pjmedia_sdp_neg_fmt_match_flag. |
| 45 | * |
| 46 | * @return PJ_SUCCESS when the formats in offer and answer match. |
| 47 | */ |
| 48 | PJ_DECL(pj_status_t) pjmedia_codec_g7221_match_sdp( pj_pool_t *pool, |
| 49 | pjmedia_sdp_media *offer, |
| 50 | unsigned o_fmt_idx, |
| 51 | pjmedia_sdp_media *answer, |
| 52 | unsigned a_fmt_idx, |
| 53 | unsigned option); |
| 54 | |
| 55 | |
| 56 | PJ_END_DECL |
| 57 | |
| 58 | |
| 59 | #endif /* __PJMEDIA_CODEC_G7221_SDP_MATCH_H__ */ |