-D_FILE_OFFSET_BITS=64
libmmfile_codecs_la_LIBADD = $(MMCOMMON_LIBS) \
- $(top_builddir)/utils/libmmfile_utils.la
+ $(top_builddir)/utils/libmmfile_utils.la
-libmmfile_codecs_la_CFLAGS += $(MMLOG_CFLAGS) -DMMF_LOG_OWNER=0x040 -DMMF_DEBUG_PREFIX=\"MMF-FILE-CODEC-FFMPEG\"
-libmmfile_codecs_la_LIBADD += $(MMLOG_LIBS)
+libmmfile_codecs_la_CFLAGS += $(DLOG_CFLAGS)
+libmmfile_codecs_la_LIBADD += $(DLOG_LIBS)
#include <mm_error.h>
-#include "mm_debug.h"
+#include "mm_file_debug.h"
#include "mm_file_codec_private.h"
#include "mm_file_codec_dummy.h"
#include <string.h>
#include <stdlib.h>
-#include "mm_debug.h"
+#include "mm_file_debug.h"
#include "mm_file_utils.h"
#include "mm_file_codec_private.h"
#AC_SUBST(MMMHAL_CFLAGS)
#AC_SUBST(MMMHAL_LIBS)
-PKG_CHECK_MODULES(MMLOG,mm-log)
-AC_SUBST(MMLOG_CFLAGS)
-AC_SUBST(MMLOG_LIBS)
-
-
+PKG_CHECK_MODULES(DLOG,dlog)
+AC_SUBST(DLOG_CFLAGS)
+AC_SUBST(DLOG_LIBS)
PKG_CHECK_MODULES(GLIB, glib-2.0)
AC_SUBST(GLIB_CFLAGS)
libmmfile_formats_la_LIBADD += $(DRMCLIENT_LIBS) $(DRMTRUSTTED_LIBS)
endif
-libmmfile_formats_la_CFLAGS += $(MMLOG_CFLAGS) -DMMF_LOG_OWNER=0x040 -DMMF_DEBUG_PREFIX=\"MMF-FILE-FORMAT-FFMPEG\"
-libmmfile_formats_la_LIBADD += $(MMLOG_LIBS)
+libmmfile_formats_la_CFLAGS += $(DLOG_CFLAGS)
+libmmfile_formats_la_LIBADD += $(DLOG_LIBS)
libmmfile_formats_la_CFLAGS += -D__MMFILE_FFMPEG_V100__
libmmfile_formats_la_CFLAGS += -D__MMFILE_FFMPEG_V085__
*
*/
-#include <stdio.h>
+#include <stdio.h>
#include <string.h> /*memcmp*/
#include <stdlib.h> /*malloc*/
#include <mm_error.h>
-#include "mm_debug.h"
+#include "mm_file_debug.h"
#include "mm_file_utils.h"
#include "mm_file_format_private.h"
#include "mm_file_format_aac.h"
// Internal Error Type
#define MMFILE_AAC_PARSER_FILE_END 2
-
+
// Media specific definations
#define MMFILE_AAC_ADIF_HEADER_MAX_SIZE 30
#define MMFILE_AAC_ADTS_HEADER_MAX_SIZE 7
*
*/
-#include <stdio.h>
+#include <stdio.h>
#include <string.h> /*memcmp*/
#include <stdlib.h> /*malloc*/
#include <mm_error.h>
-#include "mm_debug.h"
+#include "mm_file_debug.h"
#include "mm_file_utils.h"
#include "mm_file_format_private.h"
#include <mm_error.h>
-#include "mm_debug.h"
+#include "mm_file_debug.h"
#include "mm_file_format_private.h"
#include "mm_file_format_dummy.h"
#include <drm_client.h>
#endif
-#include "mm_debug.h"
+#include "mm_file_debug.h"
#include "mm_file_formats.h"
#include "mm_file_utils.h"
#include "mm_file_format_ffmpeg.h"
* limitations under the License.
*
*/
-
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <libavformat/avformat.h>
#include <libavformat/avio.h>
-#include "mm_debug.h"
+#include "mm_file_debug.h"
#include "mm_file_utils.h"
#include "mm_file_format_ffmpeg_mem.h"
#include <libswscale/swscale.h>
#include <mm_types.h>
-#include "mm_debug.h"
+#include "mm_file_debug.h"
#include "mm_file_formats.h"
#include "mm_file_utils.h"
#include "mm_file_format_ffmpeg_mem.h"
#include <string.h> /*memcmp*/
#include <stdlib.h> /*malloc*/
-#include "mm_debug.h"
+#include "mm_file_debug.h"
#include "mm_file_utils.h"
#include "mm_file_format_private.h"
#include "mm_file_format_imelody.h"
* limitations under the License.
*
*/
-
+
#include <string.h> /*memcmp*/
#include <stdio.h>
#include <stdlib.h> /*malloc*/
#include <mm_error.h>
-#include "mm_debug.h"
+#include "mm_file_debug.h"
#include "mm_file_utils.h"
#include "mm_file_format_private.h"
#include "mm_file_format_midi.h"
#include <string.h> /*memcmp*/
#include <stdlib.h> /*malloc*/
-#include "mm_debug.h"
+#include "mm_file_debug.h"
#include "mm_file_utils.h"
#include "mm_file_format_mmf.h"
#include <stdlib.h> /*malloc*/
-#include "mm_debug.h"
+#include "mm_file_debug.h"
#include "mm_file_utils.h"
#include "mm_file_format_private.h"
#include "mm_file_format_audio.h"
#include <string.h>
#include <stdlib.h>
-#include "mm_debug.h"
+#include "mm_file_debug.h"
#include "mm_file_format_tag_id3.h"
#define MMFILE_ID3V1TAG_SIZE 128
#include <string.h>
#include <stdlib.h>
-#include "mm_debug.h"
+#include "mm_file_debug.h"
#include "mm_file_utils.h"
#include "mm_file_format_tag_id3.h"
#include "mm_file_format_tags.h"
#include <stdlib.h> /*malloc*/
#include <mm_error.h>
-#include "mm_debug.h"
+#include "mm_file_debug.h"
#include "mm_file_utils.h"
#include "mm_file_format_private.h"
#endif
-#include "mm_debug.h"
+#include "mm_file_debug.h"
#include "mm_file_format_private.h"
#include "mm_file_utils.h"
--- /dev/null
+/*
+ * libmm-fileinfo
+ *
+ * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact: Haejeong Kim <backto.kim@samsung.com>
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+#ifndef _MMFILE_DEBUG_H_
+#define _MMFILE_DEBUG_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <dlog.h>
+
+#ifdef LOG_TAG
+#undef LOG_TAG
+#endif
+
+#define LOG_TAG "MM_FILEINFO"
+
+/*#define LOG_COLOR */
+
+#ifdef LOG_COLOR
+#define FONT_COLOR_RESET "\033[0m"
+#define FONT_COLOR_RED "\033[31m"
+#define FONT_COLOR_GREEN "\033[32m"
+#define FONT_COLOR_YELLOW "\033[33m"
+#define FONT_COLOR_BLUE "\033[34m"
+#define FONT_COLOR_PURPLE "\033[35m"
+#define FONT_COLOR_CYAN "\033[36m"
+#define FONT_COLOR_GRAY "\033[37m"
+
+#define debug_log(fmt, arg...) do { \
+ LOGD(FONT_COLOR_RESET fmt, ##arg); \
+ } while (0)
+
+#define debug_msg(fmt, arg...) do { \
+ LOGD(FONT_COLOR_RESET fmt, ##arg); \
+ } while (0)
+
+#define debug_warning(fmt, arg...) do { \
+ LOGW(FONT_COLOR_GREEN fmt, ##arg); \
+ } while (0)
+
+#define debug_error(fmt, arg...) do { \
+ LOGE(FONT_COLOR_RED fmt, ##arg); \
+ } while (0)
+
+#define debug_fenter() do { \
+ LOGE(FONT_COLOR_RESET "<ENTER> \n"); \
+ } while (0)
+
+#define debug_fleave() do { \
+ LOGE(FONT_COLOR_RESET "<LEAVE> \n"); \
+ } while (0)
+
+#else
+
+#define debug_log(fmt, arg...) do { \
+ LOGD(" "fmt"", ##arg); \
+ } while (0)
+
+#define debug_msg(fmt, arg...) do { \
+ LOGD(" "fmt"", ##arg); \
+ } while (0)
+
+#define debug_warning(fmt, arg...) do { \
+ LOGW(" "fmt"", ##arg); \
+ } while (0)
+
+#define debug_error(fmt, arg...) do { \
+ LOGE(" "fmt"", ##arg); \
+ } while (0)
+
+#define debug_fenter() do { \
+ LOGE("<ENTER> \n"); \
+ } while (0)
+
+#define debug_fleave() do { \
+ LOGE("<LEAVE> \n"); \
+ } while (0)
+#endif
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _MMFILE_DEBUG_H_ */
+
Name : mm-fileinfo
Description : Multimedia Framework FileInfo Library
-Requires : mm-log mm-common glib-2.0
+Requires : dlog mm-common glib-2.0
Version : @VERSION@
Libs : -L${libdir} -lmmffile -lmmfile_utils
-Cflags : -I${includedir}/mmf -D__MMFILE_DYN_LOADING__
+Cflags : -I${includedir}/mmf -D__MMFILE_DYN_LOADING__
/* internal MM header files */
#include <mm_attrs_private.h>
-#include <mm_debug.h>
/* internal MM File headers */
+#include "mm_file_debug.h"
#include "mm_file_formats.h"
#include "mm_file_format_frame.h"
#include "mm_file_codecs.h"
Name: libmm-fileinfo
Summary: Media Fileinfo
-Version: 0.6.31
+Version: 0.6.32
Release: 0
Group: System/Libraries
License: Apache-2.0
Requires(postun): /sbin/ldconfig
BuildRequires: pkgconfig(mm-common)
-BuildRequires: pkgconfig(mm-log)
+BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(libswscale)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(libavcodec)
mm_file_util_locale.c \
mm_file_util_validity.c \
mm_file_util_tag.c
-
+
libmmfile_utils_la_CFLAGS = -I$(srcdir)/include \
-I$(srcdir)/../include \
$(MMCOMMON_CFLAGS) \
$(VCONF_CFLAGS)
if USE_TESTMODE
libmmfile_utils_la_CFLAGS += -D__MMFILE_TEST_MODE__
-endif
+endif
libmmfile_utils_la_LIBADD = $(MMCOMMON_LIBS) \
$(ICU_LIBS) \
$(VCONF_LIBS)
if USE_DRM
-libmmfile_utils_la_SOURCES += mm_file_util_io_drm.c
+libmmfile_utils_la_SOURCES += mm_file_util_io_drm.c
libmmfile_utils_la_CFLAGS += $(DRMCLIENT_CFLAGS) $(DRMTRUSTED_CFLAGS) -DDRM_SUPPORT
libmmfile_utils_la_LIBADD += $(DRMCLIENT_LIBS) $(DRMTRUSTED_LIBS)
endif
-libmmfile_utils_la_CFLAGS += $(MMLOG_CFLAGS) -DMMF_LOG_OWNER=0x040 -DMMF_DEBUG_PREFIX=\"MMF-FILE-UTILS\"
-libmmfile_utils_la_LIBADD += $(MMLOG_LIBS)
+libmmfile_utils_la_CFLAGS += $(DLOG_CFLAGS)
+libmmfile_utils_la_LIBADD += $(DLOG_LIBS)
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
-#include "mm_debug.h"
+#include "mm_file_debug.h"
#include "mm_file_utils.h"
static unsigned char is_little_endian = 0;
#include <string.h>
#include <unistd.h>
-#include "mm_debug.h"
+#include "mm_file_debug.h"
#include "mm_file_utils.h"
typedef struct mmfileiodata
* limitations under the License.
*
*/
-
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include "mm_debug.h"
+#include "mm_file_debug.h"
#include "mm_file_utils.h"
#include <sys/stat.h>
#include <fcntl.h>
-#include "mm_debug.h"
+#include "mm_file_debug.h"
#include "mm_file_utils.h"
*/
#include <glib.h>
-#include <mm_debug.h>
+#include "mm_file_debug.h"
#include "mm_file_utils.h"
-EXPORT_API
+EXPORT_API
MMFileList mmfile_list_alloc ()
{
return g_list_alloc ();
* limitations under the License.
*
*/
-
-#include <stdlib.h>
+
+#include <stdlib.h>
#include <string.h>
#include <vconf.h>
#include <gconf/gconf-client.h>
#endif
-#include "mm_debug.h"
+#include "mm_file_debug.h"
#include "mm_file_utils.h"
/* This macro is the same with global-gconf.h */
#include <stdlib.h>
#include <string.h>
-#include "mm_debug.h"
+#include "mm_file_debug.h"
#include "mm_file_utils.h"
typedef struct _mmfileavmimetype
{
- char mimetype[MMFILE_MIMETYPE_MAX_LEN];
+ char mimetype[MMFILE_MIMETYPE_MAX_LEN];
char ffmpegFormat[MMFILE_FILE_FMT_MAX_LEN];
char extension[MMFILE_FILE_EXT_MAX_LEN];
} MMFileAVMimeType;
*
*/
-#include "mm_debug.h"
+#include "mm_file_debug.h"
#include "mm_file_utils.h"
EXPORT_API
* limitations under the License.
*
*/
-
-#include <stdlib.h>
+
+#include <stdlib.h>
#include <string.h>
#include <glib.h>
#include <unicode/ucsdet.h>
-#include "mm_debug.h"
+#include "mm_file_debug.h"
#include "mm_file_utils.h"
#ifdef __MMFILE_MEM_TRACE__
#include <ctype.h>
#include <vconf.h>
-#include "mm_debug.h"
+#include "mm_file_debug.h"
#include "mm_file_utils.h"
#define ENABLE_ITUNES_META //All itunes metadata extracted by ffmpeg. see mov_read_udta_string() but Some cover art not support.
#include <string.h> /*memcmp*/
#include <stdlib.h> /*malloc*/
#include <mm_error.h>
-#include <mm_debug.h>
+#include "mm_file_debug.h"
#include "mm_file_utils.h"
/* Description of return value