Remove timestamp 39/232539/4
authorMinje Ahn <minje.ahn@samsung.com>
Wed, 6 May 2020 07:24:07 +0000 (16:24 +0900)
committerMinje ahn <minje.ahn@samsung.com>
Thu, 7 May 2020 05:59:15 +0000 (05:59 +0000)
Change-Id: I3c98f7da11f5a460333f3403e96d0dbfc5f37b15
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
formats/ffmpeg/mm_file_format_ffmpeg.c
mm_file.c

index 3e92834fd2facaca98eb42e8459cdabdb95a6c6f..a063dbb9a4255bbd7139dd8c37e9c97d22b6d75c 100644 (file)
@@ -32,7 +32,6 @@
 #include "mm_file_formats.h"
 #include "mm_file_utils.h"
 #include "mm_file_format_ffmpeg.h"
-#include <sys/time.h>
 
 #define _SHORT_MEDIA_LIMIT             2000    /* under X seconds duration*/
 
@@ -933,13 +932,6 @@ static unsigned int _diff_memory(const void *s1, const void *s2, unsigned int n)
        return ret;
 }
 
-int64_t gettime(void)
-{
-       struct timeval tv;
-       gettimeofday(&tv, NULL);
-       return (int64_t)tv.tv_sec * 1000000 + tv.tv_usec;
-}
-
 
 #define IS_GOOD_OLD_METHOD
 #ifdef IS_GOOD_OLD_METHOD
@@ -1144,15 +1136,7 @@ static int _get_first_good_video_frame(AVFormatContext *pFormatCtx, AVCodecConte
 
                                                found++;
 
-#ifdef __MMFILE_TEST_MODE__
-                                               int64_t ti;
-                                               ti = gettime();
-#endif
                                                ret = _is_good_pgm(frame->data[0], frame->linesize[0], pCodecCtx->width, pCodecCtx->height);
-#ifdef __MMFILE_TEST_MODE__
-                                               ti = gettime() - ti;
-                                               debug_msg(RELEASE, "Elapsed time = %lld\n", ti);
-#endif
                                                if (ret != 0) {
                                                        debug_msg(RELEASE, "is good frame.\n");
                                                        break;
index 684ed7d8c9ad2a172da61f2a69789fd1742be2ea..f96993a52d81455c49e0e5673a7a5d87bf6d56b8 100644 (file)
--- a/mm_file.c
+++ b/mm_file.c
 #include "mm_file_format_frame.h"
 #include "mm_file_utils.h"
 
-
-#include <sys/time.h>
-
-/*#define CHECK_TIME */
-
-#ifdef CHECK_TIME
-int64_t gettime(void)
-{
-       struct timeval tv;
-       gettimeofday(&tv, NULL);
-       return (int64_t)tv.tv_sec * 1000000 + tv.tv_usec;
-}
-#endif
-
-
 /**
  * Defines.
  */
@@ -692,23 +677,12 @@ static int __create_content_attrs(MMHandleType *contents_attrs, const char *file
 #ifdef __MMFILE_DYN_LOADING__
        MMFILE_FUNC_HANDLE func_handle;
 
-#ifdef CHECK_TIME
-       int64_t ti;
-       ti = gettime();
-#endif
-
        ret = _load_dynamic_functions(&func_handle);
        if (ret != FILEINFO_ERROR_NONE) {
                debug_error(DEBUG, "load library error\n");
                return ret;
        }
-
-#ifdef CHECK_TIME
-       debug_msg(DEBUG, "_load_dynamic_functions() = %lld\n", gettime() - ti);
-#endif
-
 #endif
-
        /*set source file infomation*/
        MM_FILE_SET_MEDIA_FILE_SRC(src, filename);
 
@@ -734,17 +708,7 @@ static int __create_content_attrs(MMHandleType *contents_attrs, const char *file
 
 END:
 #ifdef __MMFILE_DYN_LOADING__
-
-#ifdef CHECK_TIME
-       ti = gettime();
-#endif
-
        _unload_dynamic_functions(&func_handle);
-
-#ifdef CHECK_TIME
-       debug_msg(DEBUG, "_unload_dynamic_functions() = %lld\n", gettime() - ti);
-#endif
-
 #endif
 
        debug_fleave(RELEASE);