4c47598865
On the server, the option was named lockedVideoOrientation.
153 lines
3.4 KiB
Java
153 lines
3.4 KiB
Java
package com.genymobile.scrcpy;
|
|
|
|
import android.graphics.Rect;
|
|
|
|
import java.util.List;
|
|
|
|
public class Options {
|
|
private Ln.Level logLevel = Ln.Level.DEBUG;
|
|
private int maxSize;
|
|
private int bitRate = 8000000;
|
|
private int maxFps;
|
|
private int lockVideoOrientation = -1;
|
|
private boolean tunnelForward;
|
|
private Rect crop;
|
|
private boolean sendFrameMeta = true; // send PTS so that the client may record properly
|
|
private boolean control = true;
|
|
private int displayId;
|
|
private boolean showTouches;
|
|
private boolean stayAwake;
|
|
private List<CodecOption> codecOptions;
|
|
private String encoderName;
|
|
private boolean powerOffScreenOnClose;
|
|
private boolean clipboardAutosync = true;
|
|
|
|
public Ln.Level getLogLevel() {
|
|
return logLevel;
|
|
}
|
|
|
|
public void setLogLevel(Ln.Level logLevel) {
|
|
this.logLevel = logLevel;
|
|
}
|
|
|
|
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 getLockVideoOrientation() {
|
|
return lockVideoOrientation;
|
|
}
|
|
|
|
public void setLockVideoOrientation(int lockVideoOrientation) {
|
|
this.lockVideoOrientation = lockVideoOrientation;
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
public boolean getShowTouches() {
|
|
return showTouches;
|
|
}
|
|
|
|
public void setShowTouches(boolean showTouches) {
|
|
this.showTouches = showTouches;
|
|
}
|
|
|
|
public boolean getStayAwake() {
|
|
return stayAwake;
|
|
}
|
|
|
|
public void setStayAwake(boolean stayAwake) {
|
|
this.stayAwake = stayAwake;
|
|
}
|
|
|
|
public List<CodecOption> getCodecOptions() {
|
|
return codecOptions;
|
|
}
|
|
|
|
public void setCodecOptions(List<CodecOption> codecOptions) {
|
|
this.codecOptions = codecOptions;
|
|
}
|
|
|
|
public String getEncoderName() {
|
|
return encoderName;
|
|
}
|
|
|
|
public void setEncoderName(String encoderName) {
|
|
this.encoderName = encoderName;
|
|
}
|
|
|
|
public void setPowerOffScreenOnClose(boolean powerOffScreenOnClose) {
|
|
this.powerOffScreenOnClose = powerOffScreenOnClose;
|
|
}
|
|
|
|
public boolean getPowerOffScreenOnClose() {
|
|
return this.powerOffScreenOnClose;
|
|
}
|
|
|
|
public boolean getClipboardAutosync() {
|
|
return clipboardAutosync;
|
|
}
|
|
|
|
public void setClipboardAutosync(boolean clipboardAutosync) {
|
|
this.clipboardAutosync = clipboardAutosync;
|
|
}
|
|
}
|