Add 360 content feature
[platform/core/api/metadata-extractor.git] / include / metadata_extractor_private.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
18 #ifndef __TIZEN_MEDIA_METADATA_EXTRACTOR_PRIVATE_H__
19 #define __TIZEN_MEDIA_METADATA_EXTRACTOR_PRIVATE_H__
20
21 #include <stdbool.h>
22 #include <mm_types.h>
23 #include <dlog.h>
24
25 #ifdef __cplusplus
26 extern "C" {
27 #endif /* __cplusplus */
28
29 #ifdef LOG_TAG
30 #undef LOG_TAG
31 #endif
32 #define LOG_TAG "CAPI_MEDIA_METADATA_EXTRACTOR"
33
34 #define metadata_extractor_debug(fmt, arg...) do { \
35                 LOGD(""fmt"", ##arg);     \
36         } while (0)
37
38 #define metadata_extractor_info(fmt, arg...) do { \
39                 LOGI(""fmt"", ##arg);     \
40         } while (0)
41
42 #define metadata_extractor_error(fmt, arg...) do { \
43                 LOGE(""fmt"", ##arg);     \
44         } while (0)
45
46 #define metadata_extractor_debug_fenter() do { \
47                 LOGD("<Enter>");     \
48         } while (0)
49
50 #define metadata_extractor_debug_fleave() do { \
51                 LOGD("<Leave>");     \
52         } while (0)
53
54 #define metadata_extractor_sucure_info(fmt, arg...) do { \
55                 SECURE_LOGI(""fmt"", ##arg);     \
56         } while (0)
57
58 typedef struct {
59         char *path;
60         void *buffer;
61         int buffer_size;
62         bool extract_meta;
63
64         int audio_track_cnt;
65         int video_track_cnt;
66
67         MMHandleType attr_h;
68         MMHandleType tag_h;
69 } metadata_extractor_s;
70
71 #ifdef __cplusplus
72 }
73 #endif /* __cplusplus */
74 #endif /*__TIZEN_MEDIA_METADATA_EXTRACTOR_PRIVATE_H__*/
75
76
77