mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
58 lines
1.1 KiB
Smali
58 lines
1.1 KiB
Smali
.class Lorg/webrtc/FramerateBitrateAdjuster;
|
|
.super Lorg/webrtc/BaseBitrateAdjuster;
|
|
.source "FramerateBitrateAdjuster.java"
|
|
|
|
|
|
# static fields
|
|
.field private static final INITIAL_FPS:I = 0x1e
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 17
|
|
invoke-direct {p0}, Lorg/webrtc/BaseBitrateAdjuster;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public getCodecConfigFramerate()I
|
|
.locals 0
|
|
|
|
const/16 p0, 0x1e
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public setTargets(II)V
|
|
.locals 2
|
|
|
|
.line 22
|
|
iget v0, p0, Lorg/webrtc/FramerateBitrateAdjuster;->targetFps:I
|
|
|
|
const/16 v1, 0x1e
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
move p2, v1
|
|
|
|
.line 26
|
|
:cond_0
|
|
invoke-super {p0, p1, p2}, Lorg/webrtc/BaseBitrateAdjuster;->setTargets(II)V
|
|
|
|
.line 28
|
|
iget p1, p0, Lorg/webrtc/FramerateBitrateAdjuster;->targetBitrateBps:I
|
|
|
|
mul-int/2addr p1, v1
|
|
|
|
iget p2, p0, Lorg/webrtc/FramerateBitrateAdjuster;->targetFps:I
|
|
|
|
div-int/2addr p1, p2
|
|
|
|
iput p1, p0, Lorg/webrtc/FramerateBitrateAdjuster;->targetBitrateBps:I
|
|
|
|
return-void
|
|
.end method
|