Code clean up
[platform/core/api/mediacodec.git] / include / media_codec_spec_emul.h
1 /*
2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
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 __TIZEN_MEDIA_CODEC_EMUL_H__
18 #define __TIZEN_MEDIA_CODEC_EMUL_H__
19
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23
24 #include <media_codec_private.h>
25
26 #define MEDIA_CODEC_MAX_CODEC_TYPE 100
27
28 enum {DECODER, ENCODER};
29 enum {SOFTWARE, HARDWARE};
30
31 typedef struct _mc_codec_spec_t mc_codec_spec_t;
32 typedef struct _mc_codec_map_t mc_codec_map_t;
33 typedef struct _mc_codec_type_t mc_codec_type_t;
34
35 struct _mc_codec_spec_t {
36         mediacodec_codec_type_e codec_id;
37         mediacodec_support_type_e codec_type;
38         mediacodec_port_type_e port_type;
39 };
40
41 struct _mc_codec_type_t {
42         char *factory_name;
43         char *mime;
44         media_format_mimetype_e out_format;
45 };
46
47 struct _mc_codec_map_t {
48         mediacodec_codec_type_e id;
49         bool hardware;
50         mc_codec_type_t type;
51 };
52
53 extern mc_codec_spec_t spec_emul[MEDIA_CODEC_MAX_CODEC_TYPE];
54
55 #ifdef __cplusplus
56 }
57 #endif
58
59 #endif /* __TIZEN_MEDIA_CODEC_EMUL_H__ */