89f6a3cfe7
Accept a parameter to limit the video size. For instance, with "-m 960", the great side of the video will be scaled down to 960 (if necessary), while the other side will be scaled down so that the aspect ratio is preserved. Both dimensions must be a multiple of 8, so black bands might be added, and the mouse positions must be computed accordingly.
21 lines
365 B
Java
21 lines
365 B
Java
package com.genymobile.scrcpy;
|
|
|
|
public final class DisplayInfo {
|
|
private final Size size;
|
|
private final int rotation;
|
|
|
|
public DisplayInfo(Size size, int rotation) {
|
|
this.size = size;
|
|
this.rotation = rotation;
|
|
}
|
|
|
|
public Size getSize() {
|
|
return size;
|
|
}
|
|
|
|
public int getRotation() {
|
|
return rotation;
|
|
}
|
|
}
|
|
|