Benny Prijono | 7ffd775 | 2008-03-17 14:07:53 +0000 | [diff] [blame^] | 1 | /* $Id$ */ |
| 2 | /* |
| 3 | * Copyright (C)2003-2008 Benny Prijono <benny@prijono.org> |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation; either version 2 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 General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this program; if not, write to the Free Software |
| 17 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 18 | */ |
| 19 | #ifndef __PJMEDIA_CODEC_G722_H__ |
| 20 | #define __PJMEDIA_CODEC_G722_H__ |
| 21 | |
| 22 | /** |
| 23 | * @file pjmedia-codec/g722.h |
| 24 | * @brief G.722 codec. |
| 25 | */ |
| 26 | |
| 27 | #include <pjmedia-codec/types.h> |
| 28 | |
| 29 | /** |
| 30 | * @defgroup PJMED_G722 G.722 Codec |
| 31 | * @ingroup PJMEDIA_CODEC |
| 32 | * @brief Implementation of G.722 Codec |
| 33 | * @{ |
| 34 | * This section describes functions to register and register G.722 codec |
| 35 | * factory to the codec manager. After the codec factory has been registered, |
| 36 | * application can use @ref PJMEDIA_CODEC API to manipulate the codec. |
| 37 | * |
| 38 | * The G.722 codec implementation is provided as part of pjmedia-codec |
| 39 | * library, and does not depend on external G.722 codec implementation. |
| 40 | */ |
| 41 | |
| 42 | PJ_BEGIN_DECL |
| 43 | |
| 44 | |
| 45 | /** |
| 46 | * Initialize and register G.722 codec factory to pjmedia endpoint. |
| 47 | * |
| 48 | * @param endpt The pjmedia endpoint. |
| 49 | * |
| 50 | * @return PJ_SUCCESS on success. |
| 51 | */ |
| 52 | PJ_DECL(pj_status_t) pjmedia_codec_g722_init(pjmedia_endpt *endpt); |
| 53 | |
| 54 | |
| 55 | /** |
| 56 | * Unregister G.722 codec factory from pjmedia endpoint and cleanup |
| 57 | * resources allocated by the factory. |
| 58 | * |
| 59 | * @return PJ_SUCCESS on success. |
| 60 | */ |
| 61 | PJ_DECL(pj_status_t) pjmedia_codec_g722_deinit(void); |
| 62 | |
| 63 | |
| 64 | PJ_END_DECL |
| 65 | |
| 66 | |
| 67 | /** |
| 68 | * @} |
| 69 | */ |
| 70 | |
| 71 | #endif /* __PJMEDIA_CODEC_G722_H__ */ |
| 72 | |