mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-28 01:52:26 -06:00
20 lines
613 B
Java
20 lines
613 B
Java
package org.webrtc;
|
|
|
|
/* loaded from: classes3.dex */
|
|
class FramerateBitrateAdjuster extends BaseBitrateAdjuster {
|
|
private static final int INITIAL_FPS = 30;
|
|
|
|
@Override // org.webrtc.BaseBitrateAdjuster, org.webrtc.BitrateAdjuster
|
|
public int getCodecConfigFramerate() {
|
|
return 30;
|
|
}
|
|
|
|
@Override // org.webrtc.BaseBitrateAdjuster, org.webrtc.BitrateAdjuster
|
|
public void setTargets(int i, int i2) {
|
|
if (this.targetFps == 0) {
|
|
i2 = 30;
|
|
}
|
|
super.setTargets(i, i2);
|
|
this.targetBitrateBps = (this.targetBitrateBps * 30) / this.targetFps;
|
|
}
|
|
}
|