2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 #ifndef __TIZEN_MEDIA_CODEC_EMUL_H__
18 #define __TIZEN_MEDIA_CODEC_EMUL_H__
24 #include <media_codec_private.h>
26 #define MEDIA_CODEC_MAX_CODEC_TYPE 100
28 enum {DECODER, ENCODER};
29 enum {SOFTWARE, HARDWARE};
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;
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;
41 struct _mc_codec_type_t {
44 media_format_mimetype_e out_format;
47 struct _mc_codec_map_t {
48 mediacodec_codec_type_e id;
53 extern mc_codec_spec_t spec_emul[MEDIA_CODEC_MAX_CODEC_TYPE];
59 #endif /* __TIZEN_MEDIA_CODEC_EMUL_H__ */