Display and control your Android device
Document filter order
Romain Vimontf95a5f97b194
diff --git a/app/scrcpy.1 b/app/scrcpy.1index 543801bc..bb77d25e 100644--- a/app/scrcpy.1+++ b/app/scrcpy.1@@ -141,9 +141,7 @@ Default is 0..BI "\-\-crop " width\fR:\fIheight\fR:\fIx\fR:\fIyCrop the device screen on the server.-The values are expressed in the device natural orientation (typically, portrait for a phone, landscape for a tablet). Any-.B \-\-max\-size-value is computed on the cropped size.+The values are expressed in the device natural orientation (typically, portrait for a phone, landscape for a tablet)..TP.B \-d, \-\-select\-usbdiff --git a/app/src/cli.c b/app/src/cli.cindex 95dad3d7..08f1db2b 100644--- a/app/src/cli.c+++ b/app/src/cli.c@@ -311,8 +311,7 @@ static const struct sc_option options[] = {.argdesc = "width:height:x:y",.text = "Crop the device screen on the server.\n""The values are expressed in the device natural orientation "- "(typically, portrait for a phone, landscape for a tablet). "- "Any --max-size value is computed on the cropped size.",+ "(typically, portrait for a phone, landscape for a tablet).",},{.shortopt = 'd',diff --git a/doc/video.md b/doc/video.mdindex 9e57e1af..5f3a42cb 100644--- a/doc/video.md+++ b/doc/video.md@@ -27,6 +27,9 @@ preserved. That way, a device in 1920×1080 will be mirrored at 1024×576.If encoding fails, scrcpy automatically tries again with a lower definition(unless `--no-downsize-on-error` is enabled).+For camera mirroring, the `--max-size` value is used to select the camera source+size instead (among the available resolutions).+## Bit rate@@ -138,7 +141,10 @@ scrcpy --capture-orientation=@flip180 # locked to hflip + 180°scrcpy --capture-orientation=@flip270 # locked to hflip + 270° clockwise```-To orient the video (on the rendering side):+The capture orientation transform is applied after `--crop`, but before+`--angle`.++To orient the video (on the client side):```bashscrcpy --orientation=0@@ -167,7 +173,9 @@ To rotate the video content by a custom angle (in degrees, clockwise):scrcpy --angle=23```-The center of rotation is the center of the visible area (after cropping).+The center of rotation is the center of the visible area.++This transformation is applied after `--crop` and `--capture-orientation`.## Crop@@ -183,7 +191,11 @@ scrcpy --crop=1224:1440:0:0 # 1224x1440 at offset (0,0)The values are expressed in the device natural orientation (portrait for aphone, landscape for a tablet).-If `--max-size` is also specified, resizing is applied after cropping.+Cropping is performed before `--capture-orientation` and `--angle`.++For screen mirroring, `--max-size` is applied after cropping. For camera and+virtual display mirroring, `--max-size` is applied first (because it selects the+source size rather than resizing it).## Display