diff options
author | Vladimir Chtchetkine <vchtchetkine@google.com> | 2011-09-17 11:15:47 -0700 |
---|---|---|
committer | Vladimir Chtchetkine <vchtchetkine@google.com> | 2011-09-20 09:43:13 -0700 |
commit | b8dcaffaf7dcb0c795d2776abf3bb75196f8527c (patch) | |
tree | 62b03c33eac338e02a9ff1630672072c676a70e4 /vl-android.c | |
parent | d6362e54b7b116a42d45a1ef499ff180548c7674 (diff) | |
download | external_qemu-b8dcaffaf7dcb0c795d2776abf3bb75196f8527c.zip external_qemu-b8dcaffaf7dcb0c795d2776abf3bb75196f8527c.tar.gz external_qemu-b8dcaffaf7dcb0c795d2776abf3bb75196f8527c.tar.bz2 |
Add -webcam commandline option to control webcam emulation
-webcam name=<name>[,dir=<direction>] options controls web cameras to use for emulation.
Change-Id: I961fd399c7e041541adda040dd24f194cc383cb9
Diffstat (limited to 'vl-android.c')
-rw-r--r-- | vl-android.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/vl-android.c b/vl-android.c index f657258..f0b2ae8 100644 --- a/vl-android.c +++ b/vl-android.c @@ -2619,7 +2619,6 @@ int main(int argc, char **argv, char **envp) boot_property_init_service(); android_hw_control_init(); android_net_pipes_init(); - android_camera_service_init(); #ifdef CONFIG_KVM /* By default, force auto-detection for kvm */ @@ -3468,6 +3467,11 @@ int main(int argc, char **argv, char **envp) case QEMU_OPTION_snapshot_no_time_update: android_snapshot_update_time = 0; break; + + case QEMU_OPTION_list_webcam: + android_list_web_cameras(); + exit(0); + default: os_parse_cmd_args(popt->index, optarg); } @@ -3741,6 +3745,9 @@ int main(int argc, char **argv, char **envp) boot_property_add("qemu.sf.fake_camera", "back"); } + /* Initialize camera emulation. */ + android_camera_service_init(); + if (android_op_cpu_delay) { char* end; long delay = strtol(android_op_cpu_delay, &end, 0); |