blob: 081e79c20fe42caa16523b33917dc419360dabe6 [file] [log] [blame]
Benny Prijono7ffd7752008-03-17 14:07:53 +00001/* $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 * @{
Benny Prijono5b64b8d2008-06-20 21:39:02 +000034 *
Benny Prijono7ffd7752008-03-17 14:07:53 +000035 * This section describes functions to register and register G.722 codec
36 * factory to the codec manager. After the codec factory has been registered,
37 * application can use @ref PJMEDIA_CODEC API to manipulate the codec.
38 *
39 * The G.722 codec implementation is provided as part of pjmedia-codec
40 * library, and does not depend on external G.722 codec implementation.
41 */
42
43PJ_BEGIN_DECL
44
45
46/**
47 * Initialize and register G.722 codec factory to pjmedia endpoint.
48 *
49 * @param endpt The pjmedia endpoint.
50 *
51 * @return PJ_SUCCESS on success.
52 */
53PJ_DECL(pj_status_t) pjmedia_codec_g722_init(pjmedia_endpt *endpt);
54
55
56/**
57 * Unregister G.722 codec factory from pjmedia endpoint and cleanup
58 * resources allocated by the factory.
59 *
60 * @return PJ_SUCCESS on success.
61 */
62PJ_DECL(pj_status_t) pjmedia_codec_g722_deinit(void);
63
64
65PJ_END_DECL
66
67
68/**
69 * @}
70 */
71
72#endif /* __PJMEDIA_CODEC_G722_H__ */
73