SET(MEDIAHASH-LIB "media-hash")
SET(SRCS
src/media-thumbnail.c
- src/util/media-thumb-debug.c
src/util/media-thumb-util.c
src/ipc/media-thumb-ipc.c
src/codec/IfegDecodeAGIF.c
ADD_DEFINITIONS("-DPACKAGE_NAME=\"${PKGNAME}\"")
ADD_DEFINITIONS("-DPREFIX=\"${PREFIX}\"")
ADD_DEFINITIONS("-D_GNU_SOURCE")
-#ADD_DEFINITIONS("-D_PERFORMANCE_CHECK_")
SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--hash-style=both")
CONFIGURE_FILE(media-thumbnail.pc.in media-thumbnail.pc @ONLY)
+++ /dev/null
-/*
- * libmedia-thumbnail
- *
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Hyunjun Ko <zzoon.ko@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.
- *
- */
-
-#include <unistd.h>
-#include <asm/unistd.h>
-#include <time.h>
-#include <sys/time.h>
-#include "media-thumb-debug.h"
-
-#ifdef _PERFORMANCE_CHECK_
-static long g_time_usec = 0L;
-
-long thumb_get_debug_time(void)
-{
-#ifdef _PERFORMANCE_CHECK_
- struct timeval time;
- gettimeofday(&time, NULL);
- return time.tv_sec * 1000000 + time.tv_usec;
-#else
- return 0L;
-#endif
-}
-
-void thumb_reset_debug_time(void)
-{
-#ifdef _PERFORMANCE_CHECK_
- struct timeval time;
- gettimeofday(&time, NULL);
- g_time_usec = time.tv_sec * 1000000 + time.tv_usec;
-#endif
-}
-
-void thumb_print_debug_time(char *time_string)
-{
-#ifdef _PERFORMANCE_CHECK_
- struct timeval time;
- double totaltime = 0.0;
-
- gettimeofday(&time, NULL);
- totaltime = (double)(time.tv_sec * 1000000 + time.tv_usec - g_time_usec) / CLOCKS_PER_SEC;
-
- thumb_dbg("time [%s] : %f", time_string, totaltime);
-#endif
-}
-
-void
-thumb_print_debug_time_ex(long start, long end, const char *func_name, char *time_string)
-{
-#ifdef _PERFORMANCE_CHECK_
- double totaltime = 0.0;
-
- totaltime = (double)(end - start) / CLOCKS_PER_SEC;
-
- thumb_dbg("time [%s: %s] : %f", func_name, time_string, totaltime);
-#endif
-}
-#endif