mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
134 lines
3.1 KiB
Smali
134 lines
3.1 KiB
Smali
.class Lorg/webrtc/CameraEnumerationAndroid$1;
|
|
.super Lorg/webrtc/CameraEnumerationAndroid$ClosestComparator;
|
|
.source "CameraEnumerationAndroid.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lorg/webrtc/CameraEnumerationAndroid;->getClosestSupportedFramerateRange(Ljava/util/List;I)Lorg/webrtc/CameraEnumerationAndroid$CaptureFormat$FramerateRange;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x0
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lorg/webrtc/CameraEnumerationAndroid$ClosestComparator<",
|
|
"Lorg/webrtc/CameraEnumerationAndroid$CaptureFormat$FramerateRange;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static final MAX_FPS_DIFF_THRESHOLD:I = 0x1388
|
|
|
|
.field private static final MAX_FPS_HIGH_DIFF_WEIGHT:I = 0x3
|
|
|
|
.field private static final MAX_FPS_LOW_DIFF_WEIGHT:I = 0x1
|
|
|
|
.field private static final MIN_FPS_HIGH_VALUE_WEIGHT:I = 0x4
|
|
|
|
.field private static final MIN_FPS_LOW_VALUE_WEIGHT:I = 0x1
|
|
|
|
.field private static final MIN_FPS_THRESHOLD:I = 0x1f40
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic val$requestedFps:I
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(I)V
|
|
.locals 0
|
|
|
|
iput p1, p0, Lorg/webrtc/CameraEnumerationAndroid$1;->val$requestedFps:I
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 160
|
|
invoke-direct {p0, p1}, Lorg/webrtc/CameraEnumerationAndroid$ClosestComparator;-><init>(Lorg/webrtc/CameraEnumerationAndroid$1;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private progressivePenalty(IIII)I
|
|
.locals 0
|
|
|
|
if-ge p1, p2, :cond_0
|
|
|
|
mul-int/2addr p1, p3
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
mul-int/2addr p3, p2
|
|
|
|
sub-int/2addr p1, p2
|
|
|
|
mul-int/2addr p1, p4
|
|
|
|
add-int/2addr p1, p3
|
|
|
|
:goto_0
|
|
return p1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method bridge synthetic diff(Ljava/lang/Object;)I
|
|
.locals 0
|
|
|
|
.line 160
|
|
check-cast p1, Lorg/webrtc/CameraEnumerationAndroid$CaptureFormat$FramerateRange;
|
|
|
|
invoke-virtual {p0, p1}, Lorg/webrtc/CameraEnumerationAndroid$1;->diff(Lorg/webrtc/CameraEnumerationAndroid$CaptureFormat$FramerateRange;)I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method diff(Lorg/webrtc/CameraEnumerationAndroid$CaptureFormat$FramerateRange;)I
|
|
.locals 4
|
|
|
|
.line 180
|
|
iget v0, p1, Lorg/webrtc/CameraEnumerationAndroid$CaptureFormat$FramerateRange;->min:I
|
|
|
|
const/4 v1, 0x4
|
|
|
|
const/16 v2, 0x1f40
|
|
|
|
const/4 v3, 0x1
|
|
|
|
invoke-direct {p0, v0, v2, v3, v1}, Lorg/webrtc/CameraEnumerationAndroid$1;->progressivePenalty(IIII)I
|
|
|
|
move-result v0
|
|
|
|
iget v1, p0, Lorg/webrtc/CameraEnumerationAndroid$1;->val$requestedFps:I
|
|
|
|
mul-int/lit16 v1, v1, 0x3e8
|
|
|
|
.line 182
|
|
iget p1, p1, Lorg/webrtc/CameraEnumerationAndroid$CaptureFormat$FramerateRange;->max:I
|
|
|
|
sub-int/2addr v1, p1
|
|
|
|
invoke-static {v1}, Ljava/lang/Math;->abs(I)I
|
|
|
|
move-result p1
|
|
|
|
const/16 v1, 0x1388
|
|
|
|
const/4 v2, 0x3
|
|
|
|
invoke-direct {p0, p1, v1, v3, v2}, Lorg/webrtc/CameraEnumerationAndroid$1;->progressivePenalty(IIII)I
|
|
|
|
move-result p0
|
|
|
|
add-int/2addr v0, p0
|
|
|
|
return v0
|
|
.end method
|