4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: Hyunjun Ko <zzoon.ko@samsung.com>, Haejeong Kim <backto.kim@samsung.com>
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
24 #ifndef _MEDIA_INFO_DEBUG_H_
25 #define _MEDIA_INFO_DEBUG_H_
35 #define LOG_TAG "Media-Info"
37 #define mediainfo_dbg(fmt, arg...) LOGD("[%s : %d] [%s] " fmt "\n", __FILE__, __LINE__, __FUNCTION__, ##arg)
40 void mediainfo_init_file_debug();
41 void mediainfo_close_file_debug();
43 #define mediainfo_file_dbg(fmt,arg...) fprintf( get_fp(), "[%s: %d] [%s]" fmt "\n", __FILE__, __LINE__, __FUNCTION__, ##arg)
48 #ifdef _PERFORMANCE_CHECK_
50 mediainfo_get_debug_time(void);
52 mediainfo_reset_debug_time(void);
54 mediainfo_print_debug_time(char* time_string);
56 mediainfo_print_debug_time_ex(long start, long end, const char* func_name, char* time_string);
59 #endif /*_MEDIA_INFO_DEBUG_H_*/