UniMRCP
1.3.0
Main Page
Related Pages
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
libs
mpf
include
mpf_codec_manager.h
Go to the documentation of this file.
1
/*
2
* Copyright 2008-2014 Arsen Chaloyan
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*
16
* $Id: mpf_codec_manager.h 2136 2014-07-04 06:33:36Z achaloyan@gmail.com $
17
*/
18
19
#ifndef MPF_CODEC_MANAGER_H
20
#define MPF_CODEC_MANAGER_H
21
22
/**
23
* @file mpf_codec_manager.h
24
* @brief MPF Codec Manager
25
*/
26
27
#include "
mpf_types.h
"
28
#include "
mpf_codec.h
"
29
30
APT_BEGIN_EXTERN_C
31
32
/** Create codec manager */
33
MPF_DECLARE
(
mpf_codec_manager_t
*)
mpf_codec_manager_create
(apr_size_t codec_count, apr_pool_t *pool);
34
35
/** Destroy codec manager */
36
MPF_DECLARE
(
void
)
mpf_codec_manager_destroy
(
mpf_codec_manager_t
*codec_manager);
37
38
/** Register codec in codec manager */
39
MPF_DECLARE
(
apt_bool_t
)
mpf_codec_manager_codec_register
(
mpf_codec_manager_t
*codec_manager,
mpf_codec_t
*codec);
40
41
/** Get (allocate) codec by codec descriptor */
42
MPF_DECLARE
(
mpf_codec_t
*)
mpf_codec_manager_codec_get
(const
mpf_codec_manager_t
*codec_manager,
mpf_codec_descriptor_t
*descriptor, apr_pool_t *pool);
43
44
/** Get (allocate) list of available codecs */
45
MPF_DECLARE
(
apt_bool_t
)
mpf_codec_manager_codec_list_get
(const
mpf_codec_manager_t
*codec_manager,
mpf_codec_list_t
*codec_list, apr_pool_t *pool);
46
47
/** Load (allocate) list of codecs */
48
MPF_DECLARE
(
apt_bool_t
)
mpf_codec_manager_codec_list_load
(const
mpf_codec_manager_t
*codec_manager,
mpf_codec_list_t
*codec_list, const
char
*str, apr_pool_t *pool);
49
50
/** Find codec by name */
51
MPF_DECLARE
(const
mpf_codec_t
*)
mpf_codec_manager_codec_find
(const
mpf_codec_manager_t
*codec_manager, const
apt_str_t
*codec_name);
52
53
APT_END_EXTERN_C
54
55
#endif
/* MPF_CODEC_MANAGER_H */
Generated on Mon Feb 2 2015 19:41:38 for UniMRCP by
1.8.3.1