diff options
author | haesu.gwon <haesu.gwon@samsung.com> | 2016-01-15 17:14:27 +0900 |
---|---|---|
committer | haesu.gwon <haesu.gwon@samsung.com> | 2016-01-29 13:54:39 +0900 |
commit | 69905b6ff7e178fedc56718ad1872746293b031b (patch) | |
tree | f10b1639e75c115f7f2d1d448f0dd46aea1746a0 /test | |
parent | 3f697f3385e9b14cb129c78ee5ee5b6737f8582d (diff) | |
download | camera-69905b6ff7e178fedc56718ad1872746293b031b.tar.gz camera-69905b6ff7e178fedc56718ad1872746293b031b.tar.bz2 camera-69905b6ff7e178fedc56718ad1872746293b031b.zip |
[Release version 0.2.42] Add New APIs
1. camera_attr_get_flash_state
2. camera_attr_get_encoded_preview_bitrate
3. camera_attr_set_encoded_preview_bitrate
4. camera_attr_get_encoded_preview_gop_interval
5. camera_attr_set_encoded_preview_gop_interval
Change-Id: Ifc277a63fff0f6956c6a40c9fed8f2a75f81be37
Signed-off-by: haesu.gwon <haesu.gwon@samsung.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/multimedia_camera_test.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/multimedia_camera_test.c b/test/multimedia_camera_test.c index 0ca7933..b14a1b1 100644 --- a/test/multimedia_camera_test.c +++ b/test/multimedia_camera_test.c @@ -689,6 +689,7 @@ static void print_menu() g_print("\t 'e' EV program mode \n"); g_print("\t >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [etc.]\n"); g_print("\t 'z' Strobe (Flash) \n"); + g_print("\t 'S' Strobe (Flash) state\n"); g_print("\t 'x' Capture mode (Still/Multishot/HDR)\n"); g_print("\t 'l' Face detection \n"); g_print("\t 'k' Anti-handshake \n"); @@ -956,7 +957,6 @@ static void setting_menu(gchar buf) else g_print("* Error : %d\n", err); break; - /* Display / Filter setting */ case 'v': /* Display visible */ g_print("* Display visible setting !\n"); @@ -1053,6 +1053,14 @@ static void setting_menu(gchar buf) err = scanf("%d", &idx); bret = camera_attr_set_flash_mode(hcamcorder->camera, idx); break; + case 'S' : // Setting > flash state + g_print("*flash state\n"); + err = camera_get_flash_state(cam_info, &idx); + if (CAMERA_ERROR_NONE == err) + g_print("Current flash state = %s\n", idx?"ON":"OFF"); + else + g_print("* Error : %d\n", err); + break; case 'x': /* Setting > Capture mode ,Muitishot? */ g_print("*Select Capture mode!\n"); flush_stdin(); |