Add --list-camera-sizes

Add an option to list the device camera declared sizes.

PR #4213 <https://github.com/Genymobile/scrcpy/pull/4213>
This commit is contained in:
Romain Vimont 2023-10-24 23:46:56 +02:00
parent eff110897b
commit f63a3caee9
9 changed files with 40 additions and 4 deletions

View file

@ -320,6 +320,9 @@ execute_server(struct sc_server *server,
if (params->list & SC_OPTION_LIST_CAMERAS) {
ADD_PARAM("list_cameras=true");
}
if (params->list & SC_OPTION_LIST_CAMERA_SIZES) {
ADD_PARAM("list_camera_sizes=true");
}
#undef ADD_PARAM