28 "Colon separated media device properties: "
29 "\"[type]:[key1]=[val1]:[key2]=[val2]\". "
31 " 'v4l2_emulated_camera_mplane': emulated media capture device "
33 " 'v4l2_emulated_camera_mplane_external': emulated media capture "
34 "device (multi-plane) for the reference external camera HAL\n"
35 " 'v4l2_proxy': proxy a host V4L2 device into the guest\n"
36 " 'v4l2_stream_proxy': stream video from a host named pipe into the "
38 "v4l2_proxy properties:\n"
39 " 'device_path': optional, path to host V4L2 device (defaults to "
41 "v4l2_stream_proxy properties:\n"
42 " 'input_path': path to the host named pipe\n"
43 " 'input_width': width of the video stream in pixels\n"
44 " 'input_height': height of the video stream in pixels\n"
45 " 'input_fps': frames per second (e.g., 30 or 30000/1001)\n\n"
47 " 'lens_facing': optional, supported values: 'FRONT', 'BACK', "
50 " --media=v4l2_emulated_camera_mplane:lens_facing=BACK\n"
51 " --media=v4l2_proxy:device_path=/dev/video0\n"
52 " --media=v4l2_stream_proxy:input_path=/tmp/fifo:"
53 "input_width=640:input_height=480:input_fps=30\n";
56 const std::string& flag);
Definition: alloc_driver.h:21
Result< std::optional< CuttlefishConfig::MediaConfig > > ParseMediaConfig(const std::string &flag)
Definition: media.cpp:43
constexpr const char kMediaHelp[]
Definition: media.h:27
constexpr const char kMediaFlag[]
Definition: media.h:25
Result< std::vector< std::vector< CuttlefishConfig::MediaConfig > > > ParseMediaConfigsFromArgs(std::vector< std::string > &args, int num_instances)
Definition: media.cpp:149
constexpr char kDefaultV4l2ProxyDevicePath[]
Definition: media.h:26
tl::expected< T, StackTraceError< E > > Result
Definition: result_type.h:30