summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDimitar Borisov <x0152684@ti.com>2012-08-06 17:16:11 +0300
committerDaniel Levin <dendy@ti.com>2012-11-26 18:22:45 +0200
commita3edc80c36b1c55a0c0ca4975050001a9f5823f0 (patch)
tree561183a91d154609434af1c372b16a1323e723a7 /test
parentc4c21e23bb97aec92148c33c5de21ee0365312a3 (diff)
downloadhardware_ti_omap4-a3edc80c36b1c55a0c0ca4975050001a9f5823f0.zip
hardware_ti_omap4-a3edc80c36b1c55a0c0ca4975050001a9f5823f0.tar.gz
hardware_ti_omap4-a3edc80c36b1c55a0c0ca4975050001a9f5823f0.tar.bz2
camera_test: Different folder names for different sensors
When executing scripts with secondary and S3D sensor at the end of the folders are added _SEC and _S3D. Created folder for primary, secondary and S3D sensor after executing script L_CAMERAHAL_0001 will be: L_CAMERAHAL_0001, L_CAMERAHAL_0001_SEC, L_CAMERAHAL_0001_S3D Change-Id: If4b3871eea9810e3455f5b2b47f9c20adae5a432 Signed-off-by: Dimitar Borisov <x0152684@ti.com>
Diffstat (limited to 'test')
-rw-r--r--test/CameraHal/camera_test.h2
-rw-r--r--test/CameraHal/camera_test_menu.cpp5
2 files changed, 7 insertions, 0 deletions
diff --git a/test/CameraHal/camera_test.h b/test/CameraHal/camera_test.h
index e0f73f3..3d34056 100644
--- a/test/CameraHal/camera_test.h
+++ b/test/CameraHal/camera_test.h
@@ -80,6 +80,8 @@
#define BRACKETING_STREAM_BUFFERS 9
#define SDCARD_PATH "/sdcard/"
+#define SECONDARY_SENSOR "_SEC"
+#define S3D_SENSOR "_S3D"
#define MAX_BURST 15
#define BURST_INC 5
diff --git a/test/CameraHal/camera_test_menu.cpp b/test/CameraHal/camera_test_menu.cpp
index ff6ca39..c0d9912 100644
--- a/test/CameraHal/camera_test_menu.cpp
+++ b/test/CameraHal/camera_test_menu.cpp
@@ -3972,6 +3972,11 @@ int setOutputDirPath(cmd_args_t *cmd_args, int restart_count) {
dir_name[count] = NULL;
strcat(output_dir_path, dir_name);
+ if (camera_index == 1) {
+ strcat(output_dir_path, SECONDARY_SENSOR);
+ }else if (camera_index == 2) {
+ strcat(output_dir_path, S3D_SENSOR);
+ }
}
}