UniMRCP  1.7.0
mpf_codec_manager.h
Go to the documentation of this file.
1 /*
2  * Copyright 2008-2015 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 
17 #ifndef MPF_CODEC_MANAGER_H
18 #define MPF_CODEC_MANAGER_H
19 
20 /**
21  * @file mpf_codec_manager.h
22  * @brief MPF Codec Manager
23  */
24 
25 #include "mpf_types.h"
26 #include "mpf_codec.h"
27 
29 
30 /** Create codec manager */
31 MPF_DECLARE(mpf_codec_manager_t*) mpf_codec_manager_create(apr_size_t codec_count, apr_pool_t *pool);
32 
33 /** Destroy codec manager */
35 
36 /** Register codec in codec manager */
38 
39 /** Get (allocate) codec by codec descriptor */
40 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);
41 
42 /** Get (allocate) list of available codecs */
43 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);
44 
45 /** Load (allocate) list of codecs */
46 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);
47 
48 /** Find codec by name */
49 MPF_DECLARE(const mpf_codec_t*) mpf_codec_manager_codec_find(const mpf_codec_manager_t *codec_manager, const apt_str_t *codec_name);
50 
52 
53 #endif /* MPF_CODEC_MANAGER_H */
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)
const mpf_codec_t * mpf_codec_manager_codec_find(const mpf_codec_manager_t *codec_manager, const apt_str_t *codec_name)
Definition: mpf_codec_descriptor.h:79
MPF Codec.
#define APT_END_EXTERN_C
Definition: apt.h:38
int apt_bool_t
Definition: apt.h:57
Definition: mpf_codec.h:35
void mpf_codec_manager_destroy(mpf_codec_manager_t *codec_manager)
#define MPF_DECLARE(type)
Definition: mpf.h:40
mpf_codec_t * mpf_codec_manager_codec_get(const mpf_codec_manager_t *codec_manager, mpf_codec_descriptor_t *descriptor, apr_pool_t *pool)
#define APT_BEGIN_EXTERN_C
Definition: apt.h:36
MPF Types Declarations.
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)
Definition: apt_string.h:36
APT_BEGIN_EXTERN_C mpf_codec_manager_t * mpf_codec_manager_create(apr_size_t codec_count, apr_pool_t *pool)
struct mpf_codec_manager_t mpf_codec_manager_t
Definition: mpf_types.h:39
Definition: mpf_codec_descriptor.h:63
apt_bool_t mpf_codec_manager_codec_register(mpf_codec_manager_t *codec_manager, mpf_codec_t *codec)