Add --display command line parameter to specify a display id. PR #1238 <https://github.com/Genymobile/scrcpy/pull/1238> Signed-off-by: Romain Vimont <rom@rom1v.com>
88 lines
1.8 KiB
Java
88 lines
1.8 KiB
Java
package com.genymobile.scrcpy;
|
|
|
|
import android.graphics.Rect;
|
|
|
|
public class Options {
|
|
private int maxSize;
|
|
private int bitRate;
|
|
private int maxFps;
|
|
private int lockedVideoOrientation;
|
|
private boolean tunnelForward;
|
|
private Rect crop;
|
|
private boolean sendFrameMeta; // send PTS so that the client may record properly
|
|
private boolean control;
|
|
private int displayId;
|
|
|
|
public int getMaxSize() {
|
|
return maxSize;
|
|
}
|
|
|
|
public void setMaxSize(int maxSize) {
|
|
this.maxSize = maxSize;
|
|
}
|
|
|
|
public int getBitRate() {
|
|
return bitRate;
|
|
}
|
|
|
|
public void setBitRate(int bitRate) {
|
|
this.bitRate = bitRate;
|
|
}
|
|
|
|
public int getMaxFps() {
|
|
return maxFps;
|
|
}
|
|
|
|
public void setMaxFps(int maxFps) {
|
|
this.maxFps = maxFps;
|
|
}
|
|
|
|
public int getLockedVideoOrientation() {
|
|
return lockedVideoOrientation;
|
|
}
|
|
|
|
public void setLockedVideoOrientation(int lockedVideoOrientation) {
|
|
this.lockedVideoOrientation = lockedVideoOrientation;
|
|
}
|
|
|
|
public boolean isTunnelForward() {
|
|
return tunnelForward;
|
|
}
|
|
|
|
public void setTunnelForward(boolean tunnelForward) {
|
|
this.tunnelForward = tunnelForward;
|
|
}
|
|
|
|
public Rect getCrop() {
|
|
return crop;
|
|
}
|
|
|
|
public void setCrop(Rect crop) {
|
|
this.crop = crop;
|
|
}
|
|
|
|
public boolean getSendFrameMeta() {
|
|
return sendFrameMeta;
|
|
}
|
|
|
|
public void setSendFrameMeta(boolean sendFrameMeta) {
|
|
this.sendFrameMeta = sendFrameMeta;
|
|
}
|
|
|
|
public boolean getControl() {
|
|
return control;
|
|
}
|
|
|
|
public void setControl(boolean control) {
|
|
this.control = control;
|
|
}
|
|
|
|
public int getDisplayId() {
|
|
return displayId;
|
|
}
|
|
|
|
public void setDisplayId(int displayId) {
|
|
this.displayId = displayId;
|
|
}
|
|
}
|