27 "Colon separated media device properties: "
28 "\"[type]:[key1]=[val1]:[key2]=[val2]\". "
30 " 'v4l2_emulated_camera_splane': emulated media capture device "
32 " 'v4l2_emulated_camera_mplane': emulated media capture device "
34 " 'v4l2_proxy': proxy a host V4L2 device into the guest\n"
35 " 'v4l2_stream_proxy': stream video from a host named pipe into the "
37 "v4l2_stream_proxy properties:\n"
38 " 'input_path': path to the host named pipe\n"
39 " 'input_width': width of the video stream in pixels\n"
40 " 'input_height': height of the video stream in pixels\n"
41 " 'input_fps': frames per second (e.g., 30 or 30000/1001)\n\n"
43 " 'lens_facing': optional, supported values: 'FRONT', 'BACK', "
46 " --media=v4l2_emulated_camera_mplane:lens_facing=BACK\n"
47 " --media=v4l2_stream_proxy:input_path=/tmp/fifo:"
48 "input_width=640:input_height=480:input_fps=30\n";
51 const std::string& flag);
54 std::vector<std::string>& args);
Definition: alloc_driver.h:20
Result< std::optional< CuttlefishConfig::MediaConfig > > ParseMediaConfig(const std::string &flag)
Definition: media.cpp:43
Result< std::vector< CuttlefishConfig::MediaConfig > > ParseMediaConfigsFromArgs(std::vector< std::string > &args)
Definition: media.cpp:125
tl::expected< T, StackTraceError > Result
Definition: result_type.h:30
constexpr const char kMediaHelp[]
Definition: media.h:26
constexpr const char kMediaFlag[]
Definition: media.h:25