summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeung-Woo Kim <sw0312.kim@samsung.com>2015-03-19 14:06:43 +0900
committerSeung-Woo Kim <sw0312.kim@samsung.com>2015-03-19 14:06:45 +0900
commit5a4f6d17adf94f90d0c53cdaea84092c01750a8e (patch)
treeac2927df3386bc24a1e84fb19248e7671aced8ec
parent4a9274d5eff61a9632fa59b360f0aee7643405e6 (diff)
downloadlibdrm-accepted/tizen/tv/20150422.102137.tar.gz
libdrm-accepted/tizen/tv/20150422.102137.tar.bz2
libdrm-accepted/tizen/tv/20150422.102137.zip
This patch changes the directory where the result files are stored as /tmp instead of /opt/media. Change-Id: Ie66c7140f4ffa27d28df22f4c1888a8e0a2ee779 Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
-rw-r--r--tests/ipptest/fimc.c8
-rw-r--r--tests/ipptest/fimctest.c2
-rw-r--r--tests/ipptest/fimctest.h2
-rw-r--r--tests/rottest/rotator.c10
-rw-r--r--tests/rottest/rottest.c2
-rw-r--r--tests/rottest/rottest.h2
6 files changed, 15 insertions, 11 deletions
diff --git a/tests/ipptest/fimc.c b/tests/ipptest/fimc.c
index df5d04d4..a511e744 100644
--- a/tests/ipptest/fimc.c
+++ b/tests/ipptest/fimc.c
@@ -205,7 +205,7 @@ int fimc_event_handler(struct drm_exynos_ipp_queue_buf *src_qbuf, struct drm_exy
printf("%s:src_buf_id[%d]dst_buf_id[%d]bmp_idx[%d]\n", __func__, src_buf_id, dst_buf_id, bmp_idx++);
if (cmd == IPP_CMD_M2M) {
- sprintf(filename, "/opt/media/fimc_m2m_dst%d.bmp", bmp_idx);
+ sprintf(filename, RESULT_PATH "fimc_m2m_dst%d.bmp", bmp_idx);
util_write_bmp(filename, usr_addr[dst_buf_id], width, height);
@@ -227,7 +227,7 @@ int fimc_event_handler(struct drm_exynos_ipp_queue_buf *src_qbuf, struct drm_exy
goto err_ipp_ctrl_close;
}
} else if (cmd == IPP_CMD_WB) {
- sprintf(filename, "/opt/media/fimc_wb_%d.bmp", bmp_idx);
+ sprintf(filename, RESULT_PATH "fimc_wb_%d.bmp", bmp_idx);
util_write_bmp(filename, usr_addr[dst_buf_id], width, height);
@@ -311,7 +311,7 @@ void fimc_m2m_set_mode(struct connector *c, int count, int page_flip,
}
util_draw_buffer(usr_addr1[i], 1, width, height, stride, 0);
- sprintf(filename, "/opt/media/fimc_m2m_org_src%d.bmp", j);
+ sprintf(filename, RESULT_PATH "fimc_m2m_org_src%d.bmp", j);
util_write_bmp(filename, usr_addr1[i], width, height);
}
@@ -337,7 +337,7 @@ void fimc_m2m_set_mode(struct connector *c, int count, int page_flip,
}
util_draw_buffer(usr_addr2[i], 0, 0, 0, 0, mmap2[i].size);
- sprintf(filename, "/opt/media/fimc_m2m_org_dst%d.bmp", j);
+ sprintf(filename, RESULT_PATH "fimc_m2m_org_dst%d.bmp", j);
util_write_bmp(filename, usr_addr2[i], height, width);
}
diff --git a/tests/ipptest/fimctest.c b/tests/ipptest/fimctest.c
index f56e9999..8fec6412 100644
--- a/tests/ipptest/fimctest.c
+++ b/tests/ipptest/fimctest.c
@@ -466,7 +466,7 @@ int main(int argc, char **argv)
printf("[%d] : %d\n", i + 1, usec[i]);
sum += usec[i];
}
- printf("fimc : cma\n");
+ printf("fimc : result files are in %s\n", RESULT_PATH);
printf("avg : [%d]\n", sum / MAX_LOOP);
getchar();
}
diff --git a/tests/ipptest/fimctest.h b/tests/ipptest/fimctest.h
index 2dd31fa5..dd0afa83 100644
--- a/tests/ipptest/fimctest.h
+++ b/tests/ipptest/fimctest.h
@@ -8,6 +8,8 @@
#define HALF_LOOP 10
#define MAX_BUF 3
+#define RESULT_PATH "/tmp/"
+
struct connector {
uint32_t id;
char mode_str[64];
diff --git a/tests/rottest/rotator.c b/tests/rottest/rotator.c
index bd2586b5..83cf892f 100644
--- a/tests/rottest/rotator.c
+++ b/tests/rottest/rotator.c
@@ -191,7 +191,7 @@ static int rotator_event_handler(int fd, int idx, int prop_id,
src_buf_id = ipp_event->buf_id[EXYNOS_DRM_OPS_SRC];
dst_buf_id = ipp_event->buf_id[EXYNOS_DRM_OPS_DST];
- sprintf(filename, "/opt/media/rot_%d_%d.bmp", idx,
+ sprintf(filename, RESULT_PATH "rot_%d_%d.bmp", idx,
dst_buf_id);
util_write_bmp(filename, usr_addr[dst_buf_id], width,
height);
@@ -256,7 +256,7 @@ void rotator_1_N_set_mode(struct connector *c, int count, int page_flip,
}
usr_addr1 = mmap1.addr;
util_draw_buffer(usr_addr1, 1, width, height, stride, 0);
- sprintf(filename, "/opt/media/rot_src.bmp");
+ sprintf(filename, RESULT_PATH "rot_src.bmp");
util_write_bmp(filename, usr_addr1, width, height);
/* For destination buffer */
@@ -270,7 +270,7 @@ void rotator_1_N_set_mode(struct connector *c, int count, int page_flip,
}
usr_addr2[i] = mmap2[i].addr;
util_draw_buffer(usr_addr2[i], 0, 0, 0, 0, stride * height);
- sprintf(filename, "/opt/media/rot_dst%d.bmp", i);
+ sprintf(filename, RESULT_PATH "rot_dst%d.bmp", i);
util_write_bmp(filename, usr_addr2[i], height, width);
}
@@ -448,7 +448,7 @@ void rotator_N_N_set_mode(struct connector *c, int count, int page_flip,
}
usr_addr1[i] = mmap1[i].addr;
util_draw_buffer(usr_addr1[i], 1, width, height, stride, 0);
- sprintf(filename, "/opt/media/rot_src%d.bmp", i);
+ sprintf(filename, RESULT_PATH "rot_src%d.bmp", i);
util_write_bmp(filename, usr_addr1[i], width, height);
/* For destination buffer */
@@ -461,7 +461,7 @@ void rotator_N_N_set_mode(struct connector *c, int count, int page_flip,
}
usr_addr2[i] = mmap2[i].addr;
util_draw_buffer(usr_addr2[i], 0, 0, 0, 0, stride * height);
- sprintf(filename, "/opt/media/rot_dst%d.bmp", i);
+ sprintf(filename, RESULT_PATH "rot_dst%d.bmp", i);
util_write_bmp(filename, usr_addr2[i], height, width);
}
diff --git a/tests/rottest/rottest.c b/tests/rottest/rottest.c
index 1f69091c..fdb2e7ac 100644
--- a/tests/rottest/rottest.c
+++ b/tests/rottest/rottest.c
@@ -453,7 +453,7 @@ int main(int argc, char **argv)
printf("[%d] : %d\n", i + 1, usec[i]);
sum += usec[i];
}
- printf("rotator : cma\n");
+ printf("rotator : result files are in %s\n", RESULT_PATH);
printf("avg : [%d]\n", sum / MAX_LOOP);
getchar();
}
diff --git a/tests/rottest/rottest.h b/tests/rottest/rottest.h
index f86d46b2..107e0d73 100644
--- a/tests/rottest/rottest.h
+++ b/tests/rottest/rottest.h
@@ -7,6 +7,8 @@
#define MAX_LOOP 5
#define MAX_BUF 3
+#define RESULT_PATH "/tmp/"
+
struct connector {
uint32_t id;
char mode_str[64];