From a3edc80c36b1c55a0c0ca4975050001a9f5823f0 Mon Sep 17 00:00:00 2001 From: Dimitar Borisov Date: Mon, 6 Aug 2012 17:16:11 +0300 Subject: 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 --- test/CameraHal/camera_test.h | 2 ++ test/CameraHal/camera_test_menu.cpp | 5 +++++ 2 files changed, 7 insertions(+) (limited to 'test') 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); + } } } -- cgit v1.1