diff options
author | Haesu Gwon <haesu.gwon@samsung.com> | 2015-12-15 11:29:39 +0900 |
---|---|---|
committer | Haesu Gwon <haesu.gwon@samsung.com> | 2015-12-21 18:04:18 +0900 |
commit | 975ab60325bd4f1da2ce40a7b23466b3cbfd039f (patch) | |
tree | 823b87b627320af309005f400ad7295b80be8a97 /test | |
parent | 890cf39b1daf219207db80243c98a2125b35c613 (diff) | |
download | camera-975ab60325bd4f1da2ce40a7b23466b3cbfd039f.tar.gz camera-975ab60325bd4f1da2ce40a7b23466b3cbfd039f.tar.bz2 camera-975ab60325bd4f1da2ce40a7b23466b3cbfd039f.zip |
[Camera] Add new API - get facing directionsubmit/tizen/20151222.052554accepted/tizen/wearable/20151222.090436accepted/tizen/tv/20151222.090412accepted/tizen/mobile/20151222.090349
Change-Id: I998001a9a1e6a94eec2dea8faaab2f94bab5683a
Diffstat (limited to 'test')
-rwxr-xr-x[-rw-r--r--] | test/multimedia_camera_test.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/multimedia_camera_test.c b/test/multimedia_camera_test.c index fc956cd..cd47f9c 100644..100755 --- a/test/multimedia_camera_test.c +++ b/test/multimedia_camera_test.c @@ -420,6 +420,11 @@ const char *visible_mode[] = { "Display ON", }; +const char *facing_direction[] = { + "REAR", + "FRONT", +}; + /*--------------------------------------------------------------------------- | LOCAL FUNCTION PROTOTYPES: | @@ -677,6 +682,7 @@ static void print_menu() g_print("\t 'j' Jpeg quality \n"); g_print("\t 'p' Picture format \n"); g_print("\t 'E' EXIF orientation \n"); + g_print("\t 'F' Get facing direction of camera module\n"); g_print("\t >>>>>>>>>>>>>>>>>>>> [Display/Filter]\n"); g_print("\t 'v' Visible \n"); g_print("\t 'o' Output mode \n"); @@ -998,6 +1004,17 @@ static void setting_menu(gchar buf) break; + case 'F' : // Getting > Get Facing direction + g_print("* Get facing direction of camera module\n"); + err = camera_get_facing_direction(hcamcorder->camera,&idx); + if (CAMERA_ERROR_NONE == err) { + g_print("* Facing direction : %s(%d)\n", facing_direction[idx], idx); + } else { + g_print("* Error : %d\n", err); + } + + break; + /* Display / Filter setting */ case 'v' : // Display visible g_print("* Display visible setting !\n"); |