diff options
author | Sylwester Nawrocki <s.nawrocki@samsung.com> | 2018-01-11 11:00:31 +0100 |
---|---|---|
committer | Sylwester Nawrocki <s.nawrocki@samsung.com> | 2018-01-11 12:57:33 +0100 |
commit | a9e7e8530dc40824d21e6cfb49813fc73c15eda2 (patch) | |
tree | fde317e1d0c50ef2513e31f417f07e2249b93f89 | |
parent | 6be2a3978d01420035dbd23ccd5ac196d374561d (diff) | |
download | gst-plugins-camera-n4-a9e7e8530dc40824d21e6cfb49813fc73c15eda2.tar.gz gst-plugins-camera-n4-a9e7e8530dc40824d21e6cfb49813fc73c15eda2.tar.bz2 gst-plugins-camera-n4-a9e7e8530dc40824d21e6cfb49813fc73c15eda2.zip |
Remove unused debug code (__print_timestamp())
This time measurement code has been added for debugging, is now not used
so can be removed.
Change-Id: Id0883370873c72653b9955c8fcf984e439bbde51
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
-rw-r--r-- | camerasrc/src/camerasrc.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/camerasrc/src/camerasrc.c b/camerasrc/src/camerasrc.c index be7c6da..f2b4de0 100644 --- a/camerasrc/src/camerasrc.c +++ b/camerasrc/src/camerasrc.c @@ -182,33 +182,6 @@ static int _camerasrc_get_device_type_string(camerasrc_handle_t *p, int fd, int #define CAMERASRC_SET_CMD(cmd, value) _camerasrc_set_cmd(handle, cmd, (void*)value); #define CAMERASRC_GET_CMD(cmd, value) _camerasrc_get_cmd(handle, cmd, (void*)value); - -void __print_time(const char *str, struct timeval *last_tv) -{ - static int id; - struct timeval tv; - - gettimeofday(&tv, NULL); - - unsigned long t1, t2; - t1 = (tv.tv_sec * 1000) + tv.tv_usec/1000; - t2 = (last_tv->tv_sec * 1000) + last_tv->tv_usec/1000; - - printf("%s[%d] time: %lu. diff: %lu ms\n", - str, id++, t1, t1 - t2); - - *last_tv = tv; -} - - -void __print_timestamp(const char *label, int line, struct timeval *last_tv) -{ - char str[100]; - - snprintf(str, sizeof(str), "%s:%d ", label, line); - __print_time(str, last_tv); -} - static int buf_4k_align(unsigned int buf_size) { unsigned int ret; @@ -1370,8 +1343,6 @@ static void *_camerasrc_front_isp_thread_func(void *arg) int buf_index_3aa_out = 0; int buf_index_isp = 0; - /* __print_timestamp(__func__, __LINE__, &last_tv); */ - while (!p->isp_thread_cancel) { /* SENSOR - DQBUF */ ret = _camerasrc_ioctl_dqbuf(p, p->fd_sensor, @@ -1537,8 +1508,6 @@ void *_camerasrc_rear_isp_thread_func(void *arg) int sensor_buf_count = 0; int ret; - /* __print_timestamp(__func__, __LINE__, &last_tv); */ - while (!p->isp_thread_cancel) { ret = _camerasrc_ioctl_dqbuf(p, p->fd_sensor, |