summaryrefslogtreecommitdiff
path: root/src/include/util
diff options
context:
space:
mode:
authorMinje Ahn <minje.ahn@samsung.com>2015-07-20 18:47:25 +0900
committerMinje Ahn <minje.ahn@samsung.com>2015-07-20 18:47:25 +0900
commit318ec49c458b8f7acef0c192d046074250ebe231 (patch)
treec3f77b8f0a7ad2ce7ea6265656abdc3f72b0225b /src/include/util
parent64959fbc53fd5386a684928617353a9be4890439 (diff)
downloadlibmedia-thumbnail-318ec49c458b8f7acef0c192d046074250ebe231.tar.gz
libmedia-thumbnail-318ec49c458b8f7acef0c192d046074250ebe231.tar.bz2
libmedia-thumbnail-318ec49c458b8f7acef0c192d046074250ebe231.zip
Fix gdkpixbuf issue. replace some function. Change-Id: I3176594d491f9ae1ef08cf7de46a0b791e09e231 Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Diffstat (limited to 'src/include/util')
-rwxr-xr-xsrc/include/util/media-thumb-debug.h21
-rwxr-xr-xsrc/include/util/media-thumb-util.h20
2 files changed, 8 insertions, 33 deletions
diff --git a/src/include/util/media-thumb-debug.h b/src/include/util/media-thumb-debug.h
index f14ea11..3044fc4 100755
--- a/src/include/util/media-thumb-debug.h
+++ b/src/include/util/media-thumb-debug.h
@@ -36,11 +36,6 @@
#define LOG_TAG "MEDIA_THUMBNAIL"
-static pid_t gettid(void)
-{
- return syscall(__NR_gettid);
-}
-
#define FONT_COLOR_RESET "\033[0m"
#define FONT_COLOR_RED "\033[31m"
#define FONT_COLOR_GREEN "\033[32m"
@@ -51,31 +46,31 @@ static pid_t gettid(void)
#define FONT_COLOR_GRAY "\033[37m"
#define thumb_dbg(fmt, arg...) do{ \
- LOGD(FONT_COLOR_RESET"[%d] " fmt "\n", gettid(), ##arg); \
+ LOGD(FONT_COLOR_RESET fmt "\n", ##arg); \
} while(0)
#define thumb_warn(fmt, arg...) do{ \
- LOGW(FONT_COLOR_GREEN"[%d] " fmt "\n", gettid(), ##arg); \
+ LOGW(FONT_COLOR_GREEN fmt "\n", ##arg); \
} while(0)
#define thumb_err(fmt, arg...) do{ \
- LOGE(FONT_COLOR_RED"[%d] " fmt "\n", gettid(), ##arg); \
+ LOGE(FONT_COLOR_RED fmt "\n", ##arg); \
} while(0)
#define thumb_dbg_slog(fmt, arg...) do{ \
- SECURE_LOGD(FONT_COLOR_RESET"[%d] " fmt "\n", gettid(), ##arg); \
+ SECURE_LOGD(FONT_COLOR_RESET fmt "\n", ##arg); \
} while(0)
#define thumb_warn_slog(fmt, arg...) do{ \
- SECURE_LOGW(FONT_COLOR_GREEN"[%d] " fmt "\n", gettid(), ##arg); \
+ SECURE_LOGW(FONT_COLOR_GREEN fmt "\n", ##arg); \
} while(0)
#define ERR_BUF_LENGHT 256
#define thumb_stderror(fmt) do { \
- char buf[ERR_BUF_LENGHT] = {0,}; \
- strerror_r(errno, buf, ERR_BUF_LENGHT); \
- LOGE(FONT_COLOR_RED fmt" : standard error [%s]", buf); \
+ char thumb_stderror_buffer[ERR_BUF_LENGHT] = {0,}; \
+ strerror_r(errno, thumb_stderror_buffer, ERR_BUF_LENGHT); \
+ LOGE(FONT_COLOR_RED fmt" : standard error [%s]", thumb_stderror_buffer); \
} while (0)
#ifdef _USE_LOG_FILE_
diff --git a/src/include/util/media-thumb-util.h b/src/include/util/media-thumb-util.h
index cb93115..bee3b44 100755
--- a/src/include/util/media-thumb-util.h
+++ b/src/include/util/media-thumb-util.h
@@ -72,25 +72,5 @@ int _media_thumb_get_width(media_thumb_type thumb_type);
int _media_thumb_get_height(media_thumb_type thumb_type);
-int _thumbnail_get_data(const char *origin_path,
- media_thumb_type thumb_type,
- media_thumb_format format,
- unsigned char **data,
- int *size,
- int *width,
- int *height,
- int *origin_width,
- int *origin_height,
- int *alpha,
- uid_t uid);
-
-int _thumbnail_get_raw_data(const char *origin_path,
- media_thumb_format format,
- unsigned char **data,
- int *size,
- int *width,
- int *height,
- uid_t uid);
-
#endif /*_MEDIA_THUMB_UTIL_H_*/