Add scaleResolutionDownBy to RtpParameters.Encoding in Android SDK.

Bug: webrtc:10069
Change-Id: I8130836c495d5584ca3e11e9e3155916b871ab21
Reviewed-on: https://webrtc-review.googlesource.com/c/120926
Reviewed-by: Sami Kalliomäki <sakal@webrtc.org>
Reviewed-by: Rasmus Brandt <brandtr@webrtc.org>
Commit-Queue: Mirta Dvornicic <mirtad@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#26535}
This commit is contained in:
Mirta Dvornicic
2019-02-04 16:38:46 +01:00
committed by Commit Bot
parent bfa5d5d9aa
commit d8b980464c
5 changed files with 49 additions and 4 deletions

View File

@ -11,6 +11,7 @@
package org.webrtc;
import android.support.annotation.Nullable;
import java.lang.Double;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
@ -40,18 +41,22 @@ public class RtpParameters {
@Nullable public Integer maxFramerate;
// The number of temporal layers for video.
@Nullable public Integer numTemporalLayers;
// If non-null, scale the width and height down by this factor for video. If null,
// implementation default scaling factor will be used.
@Nullable public Double scaleResolutionDownBy;
// SSRC to be used by this encoding.
// Can't be changed between getParameters/setParameters.
public Long ssrc;
@CalledByNative("Encoding")
Encoding(boolean active, Integer maxBitrateBps, Integer minBitrateBps, Integer maxFramerate,
Integer numTemporalLayers, Long ssrc) {
Integer numTemporalLayers, Double scaleResolutionDownBy, Long ssrc) {
this.active = active;
this.maxBitrateBps = maxBitrateBps;
this.minBitrateBps = minBitrateBps;
this.maxFramerate = maxFramerate;
this.numTemporalLayers = numTemporalLayers;
this.scaleResolutionDownBy = scaleResolutionDownBy;
this.ssrc = ssrc;
}
@ -84,6 +89,12 @@ public class RtpParameters {
return numTemporalLayers;
}
@Nullable
@CalledByNative("Encoding")
Double getScaleResolutionDownBy() {
return scaleResolutionDownBy;
}
@CalledByNative("Encoding")
Long getSsrc() {
return ssrc;