summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorMinje Ahn <minje.ahn@samsung.com>2015-06-23 08:30:45 (GMT)
committerMinje Ahn <minje.ahn@samsung.com>2015-07-02 10:13:49 (GMT)
commit51e31533b89929b6aed1a1727c0500cb01ce2d9f (patch)
treed95641ae327e40d334e56dcfb285ae0467baed23 /src/include
parentf608c86507c0899ee874217f3a223e40c643aff8 (diff)
downloadlibmedia-thumbnail-51e31533b89929b6aed1a1727c0500cb01ce2d9f.zip
libmedia-thumbnail-51e31533b89929b6aed1a1727c0500cb01ce2d9f.tar.gz
libmedia-thumbnail-51e31533b89929b6aed1a1727c0500cb01ce2d9f.tar.bz2
Change-Id: Ia54e4466ca6665b27cca316f9553ad15cef764be Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Diffstat (limited to 'src/include')
-rwxr-xr-xsrc/include/util/media-thumb-db.h9
-rwxr-xr-xsrc/include/util/media-thumb-debug.h4
-rwxr-xr-xsrc/include/util/media-thumb-util.h6
3 files changed, 0 insertions, 19 deletions
diff --git a/src/include/util/media-thumb-db.h b/src/include/util/media-thumb-db.h
index 5302fa6..fcd284f 100755
--- a/src/include/util/media-thumb-db.h
+++ b/src/include/util/media-thumb-db.h
@@ -29,14 +29,6 @@
#define MEDIA_DATABASE_NAME MEDIA_DB_NAME /* defined in media-util.h */
-#ifndef _USE_NEW_MEDIA_DB_
-#define SELECT_PATH_FROM_UNEXTRACTED_THUMB_MEDIA "SELECT path from visual_media where thumbnail_path='' and valid=1;"
-#define SELECT_MEDIA_BY_PATH "SELECT thumbnail_path FROM visual_media WHERE path='%q';"
-#define SELECT_TYPE_BY_PATH "SELECT content_type FROM visual_media WHERE path='%q';"
-#define UPDATE_THUMB_BY_PATH "UPDATE visual_media SET thumbnail_path = '%q' WHERE path='%q';"
-#define UPDATE_WH_BY_PATH "UPDATE image_meta SET width=%d,height=%d WHERE visual_uuid=(SELECT visual_uuid FROM visual_media WHERE path='%q');"
-
-#else
#define SELECT_PATH_FROM_UNEXTRACTED_THUMB_MEDIA "SELECT path from media where thumbnail_path is null and validity=1 and (media_type=0 or media_type=1);"
#define SELECT_PATH_FROM_UNEXTRACTED_THUMB_INTERNAL_MEDIA "SELECT path from media where thumbnail_path is null and validity=1 and (media_type=0 or media_type=1) and storage_type=0;"
#define SELECT_MEDIA_BY_PATH "SELECT thumbnail_path FROM media WHERE path='%q';"
@@ -45,7 +37,6 @@
#define UPDATE_THUMB_BY_PATH "UPDATE media SET thumbnail_path = '%q' WHERE path='%q';"
#define UPDATE_WH_BY_PATH "UPDATE media SET width=%d,height=%d WHERE path='%q';"
#define UPDATE_THUMB_WH_BY_PATH "UPDATE media SET thumbnail_path = '%q', width=%d,height=%d WHERE path='%q';"
-#endif
sqlite3 *_media_thumb_db_get_handle();
diff --git a/src/include/util/media-thumb-debug.h b/src/include/util/media-thumb-debug.h
index 3c0c21b..f14ea11 100755
--- a/src/include/util/media-thumb-debug.h
+++ b/src/include/util/media-thumb-debug.h
@@ -34,10 +34,6 @@
#undef LOG_TAG
#endif
-
-#define _PERFORMANCE_CHECK_
-
-
#define LOG_TAG "MEDIA_THUMBNAIL"
static pid_t gettid(void)
diff --git a/src/include/util/media-thumb-util.h b/src/include/util/media-thumb-util.h
index fdda9ee..cb93115 100755
--- a/src/include/util/media-thumb-util.h
+++ b/src/include/util/media-thumb-util.h
@@ -30,15 +30,9 @@
#define SAFE_FREE(src) { if(src) {free(src); src = NULL;}}
-#ifndef _USE_NEW_MEDIA_DB_
-#define THUMB_NONE_TYPE 0x00000000 /* None */
-#define THUMB_IMAGE_TYPE 0x00000001 /* Image */
-#define THUMB_VIDEO_TYPE 0x00000002 /* Video */
-#else
#define THUMB_NONE_TYPE -1 /* None */
#define THUMB_IMAGE_TYPE 0 /* Image */
#define THUMB_VIDEO_TYPE 1 /* Video */
-#endif
#define THUMB_PATH_PHONE MEDIA_ROOT_PATH_INTERNAL /**< File path prefix of files stored in phone */
#define THUMB_PATH_MMC MEDIA_ROOT_PATH_SDCARD /**< File path prefix of files stored in mmc card */