mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-02 07:45:40 +00:00
Update moonlight-common-c to remove per-codec bitrate adjustments
This commit is contained in:
parent
5443cc014a
commit
a18aa26985
@ -474,8 +474,6 @@ public class Game extends Activity implements SurfaceHolder.Callback,
|
|||||||
.enableLocalAudioPlayback(prefConfig.playHostAudio)
|
.enableLocalAudioPlayback(prefConfig.playHostAudio)
|
||||||
.setMaxPacketSize(1392)
|
.setMaxPacketSize(1392)
|
||||||
.setRemoteConfiguration(StreamConfiguration.STREAM_CFG_AUTO) // NvConnection will perform LAN and VPN detection
|
.setRemoteConfiguration(StreamConfiguration.STREAM_CFG_AUTO) // NvConnection will perform LAN and VPN detection
|
||||||
.setHevcBitratePercentageMultiplier(75)
|
|
||||||
.setAv1BitratePercentageMultiplier(75)
|
|
||||||
.setSupportedVideoFormats(supportedVideoFormats)
|
.setSupportedVideoFormats(supportedVideoFormats)
|
||||||
.setAttachedGamepadMask(gamepadMask)
|
.setAttachedGamepadMask(gamepadMask)
|
||||||
.setClientRefreshRateX100((int)(displayRefreshRate * 100))
|
.setClientRefreshRateX100((int)(displayRefreshRate * 100))
|
||||||
|
@ -433,8 +433,6 @@ public class NvConnection {
|
|||||||
context.negotiatedPacketSize, context.negotiatedRemoteStreaming,
|
context.negotiatedPacketSize, context.negotiatedRemoteStreaming,
|
||||||
context.streamConfig.getAudioConfiguration().toInt(),
|
context.streamConfig.getAudioConfiguration().toInt(),
|
||||||
context.streamConfig.getSupportedVideoFormats(),
|
context.streamConfig.getSupportedVideoFormats(),
|
||||||
context.streamConfig.getHevcBitratePercentageMultiplier(),
|
|
||||||
context.streamConfig.getAv1BitratePercentageMultiplier(),
|
|
||||||
context.streamConfig.getClientRefreshRateX100(),
|
context.streamConfig.getClientRefreshRateX100(),
|
||||||
context.streamConfig.getEncryptionFlags(),
|
context.streamConfig.getEncryptionFlags(),
|
||||||
context.riKey.getEncoded(), ib.array(),
|
context.riKey.getEncoded(), ib.array(),
|
||||||
|
@ -23,8 +23,6 @@ public class StreamConfiguration {
|
|||||||
private int remote;
|
private int remote;
|
||||||
private MoonBridge.AudioConfiguration audioConfiguration;
|
private MoonBridge.AudioConfiguration audioConfiguration;
|
||||||
private int supportedVideoFormats;
|
private int supportedVideoFormats;
|
||||||
private int hevcBitratePercentageMultiplier;
|
|
||||||
private int av1BitratePercentageMultiplier;
|
|
||||||
private int attachedGamepadMask;
|
private int attachedGamepadMask;
|
||||||
private int encryptionFlags;
|
private int encryptionFlags;
|
||||||
private int colorRange;
|
private int colorRange;
|
||||||
@ -85,16 +83,6 @@ public class StreamConfiguration {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public StreamConfiguration.Builder setHevcBitratePercentageMultiplier(int multiplier) {
|
|
||||||
config.hevcBitratePercentageMultiplier = multiplier;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public StreamConfiguration.Builder setAv1BitratePercentageMultiplier(int multiplier) {
|
|
||||||
config.av1BitratePercentageMultiplier = multiplier;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public StreamConfiguration.Builder setAttachedGamepadMask(int attachedGamepadMask) {
|
public StreamConfiguration.Builder setAttachedGamepadMask(int attachedGamepadMask) {
|
||||||
config.attachedGamepadMask = attachedGamepadMask;
|
config.attachedGamepadMask = attachedGamepadMask;
|
||||||
return this;
|
return this;
|
||||||
@ -224,14 +212,6 @@ public class StreamConfiguration {
|
|||||||
return supportedVideoFormats;
|
return supportedVideoFormats;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getHevcBitratePercentageMultiplier() {
|
|
||||||
return hevcBitratePercentageMultiplier;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getAv1BitratePercentageMultiplier() {
|
|
||||||
return av1BitratePercentageMultiplier;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getAttachedGamepadMask() {
|
public int getAttachedGamepadMask() {
|
||||||
return attachedGamepadMask;
|
return attachedGamepadMask;
|
||||||
}
|
}
|
||||||
|
@ -347,8 +347,6 @@ public class MoonBridge {
|
|||||||
int width, int height, int fps,
|
int width, int height, int fps,
|
||||||
int bitrate, int packetSize, int streamingRemotely,
|
int bitrate, int packetSize, int streamingRemotely,
|
||||||
int audioConfiguration, int supportedVideoFormats,
|
int audioConfiguration, int supportedVideoFormats,
|
||||||
int hevcBitratePercentageMultiplier,
|
|
||||||
int av1BitratePercentageMultiplier,
|
|
||||||
int clientRefreshRateX100,
|
int clientRefreshRateX100,
|
||||||
int encryptionFlags,
|
int encryptionFlags,
|
||||||
byte[] riAesKey, byte[] riAesIv,
|
byte[] riAesKey, byte[] riAesIv,
|
||||||
|
@ -433,8 +433,6 @@ Java_com_limelight_nvstream_jni_MoonBridge_startConnection(JNIEnv *env, jclass c
|
|||||||
jint width, jint height, jint fps,
|
jint width, jint height, jint fps,
|
||||||
jint bitrate, jint packetSize, jint streamingRemotely,
|
jint bitrate, jint packetSize, jint streamingRemotely,
|
||||||
jint audioConfiguration, jint supportedVideoFormats,
|
jint audioConfiguration, jint supportedVideoFormats,
|
||||||
jint hevcBitratePercentageMultiplier,
|
|
||||||
jint av1BitratePercentageMultiplier,
|
|
||||||
jint clientRefreshRateX100,
|
jint clientRefreshRateX100,
|
||||||
jint encryptionFlags,
|
jint encryptionFlags,
|
||||||
jbyteArray riAesKey, jbyteArray riAesIv,
|
jbyteArray riAesKey, jbyteArray riAesIv,
|
||||||
@ -456,8 +454,6 @@ Java_com_limelight_nvstream_jni_MoonBridge_startConnection(JNIEnv *env, jclass c
|
|||||||
.streamingRemotely = streamingRemotely,
|
.streamingRemotely = streamingRemotely,
|
||||||
.audioConfiguration = audioConfiguration,
|
.audioConfiguration = audioConfiguration,
|
||||||
.supportedVideoFormats = supportedVideoFormats,
|
.supportedVideoFormats = supportedVideoFormats,
|
||||||
.hevcBitratePercentageMultiplier = hevcBitratePercentageMultiplier,
|
|
||||||
.av1BitratePercentageMultiplier = av1BitratePercentageMultiplier,
|
|
||||||
.clientRefreshRateX100 = clientRefreshRateX100,
|
.clientRefreshRateX100 = clientRefreshRateX100,
|
||||||
.encryptionFlags = encryptionFlags,
|
.encryptionFlags = encryptionFlags,
|
||||||
.colorSpace = colorSpace,
|
.colorSpace = colorSpace,
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 5de4a5b85a28d8d639482a1a105c3a06eb67a2fd
|
Subproject commit 3ed3ba62534ce06c1b97fec46722969e7710fee6
|
Loading…
x
Reference in New Issue
Block a user