Rabbit-R1/original r1/java/sources/org/webrtc/FramerateBitrateAdjuster.java
2024-05-21 17:08:36 -04:00

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;
}
}