New java ScalingSettings constructors.
Deprecate old constructors. Intended to make java api consistent with the changes in https://webrtc-review.googlesource.com/c/src/+/46622. Bug: webrtc:8830 Change-Id: Iadecb5d033b5de841873905af659d8d234b75c7d Reviewed-on: https://webrtc-review.googlesource.com/49062 Reviewed-by: Sami Kalliomäki <sakal@webrtc.org> Commit-Queue: Niels Moller <nisse@webrtc.org> Cr-Commit-Position: refs/heads/master@{#21956}
This commit is contained in:
@ -415,7 +415,18 @@ class HardwareVideoEncoder implements VideoEncoder {
|
||||
@Override
|
||||
public ScalingSettings getScalingSettings() {
|
||||
encodeThreadChecker.checkIsOnValidThread();
|
||||
return new ScalingSettings(automaticResizeOn);
|
||||
if (automaticResizeOn) {
|
||||
if (codecType == VideoCodecType.VP8) {
|
||||
final int kLowVp8QpThreshold = 29;
|
||||
final int kHighVp8QpThreshold = 95;
|
||||
return new ScalingSettings(kLowVp8QpThreshold, kHighVp8QpThreshold);
|
||||
} else if (codecType == VideoCodecType.H264) {
|
||||
final int kLowH264QpThreshold = 24;
|
||||
final int kHighH264QpThreshold = 37;
|
||||
return new ScalingSettings(kLowH264QpThreshold, kHighH264QpThreshold);
|
||||
}
|
||||
}
|
||||
return ScalingSettings.OFF;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user