diff options
author | Vladimir Chtchetkine <vchtchetkine@google.com> | 2012-03-19 11:35:29 -0700 |
---|---|---|
committer | Vladimir Chtchetkine <vchtchetkine@google.com> | 2012-03-19 14:22:59 -0700 |
commit | 7485c2989d727a1d0c14a66fb75e140f885a1583 (patch) | |
tree | d4e44279f3f7c2c12a58e3ed23eca8fe376ab207 /android/help.c | |
parent | 863d1010d9c8fa4342b1b0ea860bcfb096806acc (diff) | |
download | external_qemu-7485c2989d727a1d0c14a66fb75e140f885a1583.zip external_qemu-7485c2989d727a1d0c14a66fb75e140f885a1583.tar.gz external_qemu-7485c2989d727a1d0c14a66fb75e140f885a1583.tar.bz2 |
Refactor HW config to use hw.camera_back, and hw.camera_front properties.
This is a continuation of an effort to simplify HW config, and make the UI for it clearer.
This CL gets rid of multiple camera emulation properties, combining everything into just
two properties:
- hw.camera_back that controls emulation of a camera facing back, and
- hw.camera_front that controls emulation of a camera facing front.
Change-Id: Ia114ae4caf2053685cbff00f39088e5b5be2952c
Diffstat (limited to 'android/help.c')
-rw-r--r-- | android/help.c | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/android/help.c b/android/help.c index db630e0..54d2f10 100644 --- a/android/help.c +++ b/android/help.c @@ -1457,34 +1457,36 @@ help_gpu(stralloc_t* out) } static void -help_fake_camera(stralloc_t* out) +help_camera_back(stralloc_t* out) { PRINTF( - " Use -fake-camera <mode> to control fake camera emulation.\n" + " Use -camera-back <mode> to control emulation of a camera facing back.\n" " Valid values for <mode> are:\n\n" - " off -> disable fake camera emulation\n" - " back -> fake camera is facing back\n" - " front -> fake camera is facing front\n\n" + " emulated -> camera will be emulated using software ('fake') camera emulation\n" + " webcam<N> -> camera will be emulated using a webcamera connected to the host\n" + " none -> camera emulation will be disabled\n\n" ); } static void -help_webcam(stralloc_t* out) +help_camera_front(stralloc_t* out) { PRINTF( - " Use -webcam off to disable web camera emulation.\n" - " Use -webcam list to list web cameras available for emulation.\n" - " Use -webcam name=<name>[,dir=<direction>] to setup parameters for web camera emulation.\n" - - " <name> platform-independent name identifying emulated camera device.\n" - " use '-webcam list' to obtain the list of emulated camera devices.\n" - " <direction> defines direction the camera is facing. Valid values are:\n\n" + " Use -camera-front <mode> to control emulation of a camera facing front.\n" + " Valid values for <mode> are:\n\n" - " front -> emulate camera as facing front\n" - " back -> emulate camera as facing back\n\n" + " emulated -> camera will be emulated using software ('fake') camera emulation\n" + " webcam<N> -> camera will be emulated using a webcamera connected to the host\n" + " none -> camera emulation will be disabled\n\n" + ); +} - " Default direction value for emulated web camera is 'front'\n\n" +static void +help_webcam_list(stralloc_t* out) +{ + PRINTF( + " Use -webcam-list to list web cameras available for emulation.\n\n" ); } |