Rename ..BitrateThresholds to ..BitrateLimits.
Bug: webrtc:10798 Change-Id: I1975206323a520b557652760d1d54c01c26a7405 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/144540 Reviewed-by: Magnus Jedvert <magjed@webrtc.org> Commit-Queue: Sergey Silkin <ssilkin@webrtc.org> Cr-Commit-Position: refs/heads/master@{#28473}
This commit is contained in:
committed by
Commit Bot
parent
cecee9903f
commit
3d642f8442
@ -184,11 +184,11 @@ public interface VideoEncoder {
|
||||
}
|
||||
|
||||
/**
|
||||
* Bitrate thresholds for resolution.
|
||||
* Bitrate limits for resolution.
|
||||
*/
|
||||
public class ResolutionBitrateThresholds {
|
||||
public class ResolutionBitrateLimits {
|
||||
/**
|
||||
* Maximum size of video frame, in pixels, the bitrate thresholds are intended for.
|
||||
* Maximum size of video frame, in pixels, the bitrate limits are intended for.
|
||||
*/
|
||||
public final int frameSizePixels;
|
||||
|
||||
@ -207,7 +207,7 @@ public interface VideoEncoder {
|
||||
*/
|
||||
public final int maxBitrateBps;
|
||||
|
||||
public ResolutionBitrateThresholds(
|
||||
public ResolutionBitrateLimits(
|
||||
int frameSizePixels, int minStartBitrateBps, int minBitrateBps, int maxBitrateBps) {
|
||||
this.frameSizePixels = frameSizePixels;
|
||||
this.minStartBitrateBps = minStartBitrateBps;
|
||||
@ -215,22 +215,22 @@ public interface VideoEncoder {
|
||||
this.maxBitrateBps = maxBitrateBps;
|
||||
}
|
||||
|
||||
@CalledByNative("ResolutionBitrateThresholds")
|
||||
@CalledByNative("ResolutionBitrateLimits")
|
||||
public int getFrameSizePixels() {
|
||||
return frameSizePixels;
|
||||
}
|
||||
|
||||
@CalledByNative("ResolutionBitrateThresholds")
|
||||
@CalledByNative("ResolutionBitrateLimits")
|
||||
public int getMinStartBitrateBps() {
|
||||
return minStartBitrateBps;
|
||||
}
|
||||
|
||||
@CalledByNative("ResolutionBitrateThresholds")
|
||||
@CalledByNative("ResolutionBitrateLimits")
|
||||
public int getMinBitrateBps() {
|
||||
return minBitrateBps;
|
||||
}
|
||||
|
||||
@CalledByNative("ResolutionBitrateThresholds")
|
||||
@CalledByNative("ResolutionBitrateLimits")
|
||||
public int getMaxBitrateBps() {
|
||||
return maxBitrateBps;
|
||||
}
|
||||
@ -295,12 +295,12 @@ public interface VideoEncoder {
|
||||
/** Any encoder that wants to use WebRTC provided quality scaler must implement this method. */
|
||||
@CalledByNative ScalingSettings getScalingSettings();
|
||||
|
||||
/** Returns the list of resolution bitrate thresholds. */
|
||||
/** Returns the list of bitrate limits. */
|
||||
@CalledByNative
|
||||
default ResolutionBitrateThresholds[] getResolutionBitrateThresholds() {
|
||||
default ResolutionBitrateLimits[] getResolutionBitrateLimits() {
|
||||
// TODO(ssilkin): Update downstream projects and remove default implementation.
|
||||
ResolutionBitrateThresholds thresholds[] = {};
|
||||
return thresholds;
|
||||
ResolutionBitrateLimits bitrate_limits[] = {};
|
||||
return bitrate_limits;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user