86 lines
2 KiB
Smali
86 lines
2 KiB
Smali
.class public final Lorg/webrtc/CameraEnumerationAndroid$2;
|
|
.super Lorg/webrtc/CameraEnumerationAndroid$ClosestComparator;
|
|
.source "CameraEnumerationAndroid.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lorg/webrtc/CameraEnumerationAndroid;->getClosestSupportedSize(Ljava/util/List;II)Lorg/webrtc/Size;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x9
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lorg/webrtc/CameraEnumerationAndroid$ClosestComparator<",
|
|
"Lorg/webrtc/Size;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic val$requestedHeight:I
|
|
|
|
.field public final synthetic val$requestedWidth:I
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(II)V
|
|
.locals 0
|
|
|
|
iput p1, p0, Lorg/webrtc/CameraEnumerationAndroid$2;->val$requestedWidth:I
|
|
|
|
iput p2, p0, Lorg/webrtc/CameraEnumerationAndroid$2;->val$requestedHeight:I
|
|
|
|
const/4 p1, 0x0
|
|
|
|
invoke-direct {p0, p1}, Lorg/webrtc/CameraEnumerationAndroid$ClosestComparator;-><init>(Lorg/webrtc/CameraEnumerationAndroid$1;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public bridge synthetic diff(Ljava/lang/Object;)I
|
|
.locals 0
|
|
|
|
check-cast p1, Lorg/webrtc/Size;
|
|
|
|
invoke-virtual {p0, p1}, Lorg/webrtc/CameraEnumerationAndroid$2;->diff(Lorg/webrtc/Size;)I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public diff(Lorg/webrtc/Size;)I
|
|
.locals 2
|
|
|
|
iget v0, p0, Lorg/webrtc/CameraEnumerationAndroid$2;->val$requestedWidth:I
|
|
|
|
iget v1, p1, Lorg/webrtc/Size;->width:I
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
invoke-static {v0}, Ljava/lang/Math;->abs(I)I
|
|
|
|
move-result v0
|
|
|
|
iget v1, p0, Lorg/webrtc/CameraEnumerationAndroid$2;->val$requestedHeight:I
|
|
|
|
iget p1, p1, Lorg/webrtc/Size;->height:I
|
|
|
|
sub-int/2addr v1, p1
|
|
|
|
invoke-static {v1}, Ljava/lang/Math;->abs(I)I
|
|
|
|
move-result p1
|
|
|
|
add-int/2addr p1, v0
|
|
|
|
return p1
|
|
.end method
|