Files
vtosters/smali/smali_classes4/org/webrtc/videoengine/GLTextureView$BaseConfigChooser.smali
T
2022-03-24 19:37:43 +03:00

205 lines
4.9 KiB
Smali

.class abstract Lorg/webrtc/videoengine/GLTextureView$BaseConfigChooser;
.super Ljava/lang/Object;
.source "GLTextureView.java"
# interfaces
.implements Lorg/webrtc/videoengine/GLTextureView$EGLConfigChooser;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lorg/webrtc/videoengine/GLTextureView;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x402
name = "BaseConfigChooser"
.end annotation
# instance fields
.field protected mConfigSpec:[I
.field final synthetic this$0:Lorg/webrtc/videoengine/GLTextureView;
# direct methods
.method public constructor <init>(Lorg/webrtc/videoengine/GLTextureView;[I)V
.locals 0
.line 622
iput-object p1, p0, Lorg/webrtc/videoengine/GLTextureView$BaseConfigChooser;->this$0:Lorg/webrtc/videoengine/GLTextureView;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 623
invoke-direct {p0, p2}, Lorg/webrtc/videoengine/GLTextureView$BaseConfigChooser;->filterConfigSpec([I)[I
move-result-object p1
iput-object p1, p0, Lorg/webrtc/videoengine/GLTextureView$BaseConfigChooser;->mConfigSpec:[I
return-void
.end method
.method private filterConfigSpec([I)[I
.locals 4
.line 654
iget-object v0, p0, Lorg/webrtc/videoengine/GLTextureView$BaseConfigChooser;->this$0:Lorg/webrtc/videoengine/GLTextureView;
invoke-static {v0}, Lorg/webrtc/videoengine/GLTextureView;->access$200(Lorg/webrtc/videoengine/GLTextureView;)I
move-result v0
const/4 v1, 0x2
if-eq v0, v1, :cond_0
return-object p1
.line 660
:cond_0
array-length v0, p1
add-int/lit8 v1, v0, 0x2
.line 661
new-array v1, v1, [I
add-int/lit8 v2, v0, -0x1
const/4 v3, 0x0
.line 662
invoke-static {p1, v3, v1, v3, v2}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
const/16 p1, 0x3040
.line 663
aput p1, v1, v2
const/4 p1, 0x4
.line 664
aput p1, v1, v0
add-int/lit8 v0, v0, 0x1
const/16 p1, 0x3038
.line 665
aput p1, v1, v0
return-object v1
.end method
# virtual methods
.method public chooseConfig(Ljavax/microedition/khronos/egl/EGL10;Ljavax/microedition/khronos/egl/EGLDisplay;)Ljavax/microedition/khronos/egl/EGLConfig;
.locals 8
const/4 v0, 0x1
.line 627
new-array v0, v0, [I
.line 628
iget-object v3, p0, Lorg/webrtc/videoengine/GLTextureView$BaseConfigChooser;->mConfigSpec:[I
const/4 v4, 0x0
const/4 v5, 0x0
move-object v1, p1
move-object v2, p2
move-object v6, v0
invoke-interface/range {v1 .. v6}, Ljavax/microedition/khronos/egl/EGL10;->eglChooseConfig(Ljavax/microedition/khronos/egl/EGLDisplay;[I[Ljavax/microedition/khronos/egl/EGLConfig;I[I)Z
move-result v1
if-nez v1, :cond_0
.line 629
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string p2, "eglChooseConfig failed"
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
:cond_0
const/4 v1, 0x0
.line 632
aget v5, v0, v1
if-gtz v5, :cond_1
.line 635
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string p2, "No configs match configSpec"
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
.line 638
:cond_1
new-array v7, v5, [Ljavax/microedition/khronos/egl/EGLConfig;
.line 639
iget-object v3, p0, Lorg/webrtc/videoengine/GLTextureView$BaseConfigChooser;->mConfigSpec:[I
move-object v1, p1
move-object v2, p2
move-object v4, v7
move-object v6, v0
invoke-interface/range {v1 .. v6}, Ljavax/microedition/khronos/egl/EGL10;->eglChooseConfig(Ljavax/microedition/khronos/egl/EGLDisplay;[I[Ljavax/microedition/khronos/egl/EGLConfig;I[I)Z
move-result v0
if-nez v0, :cond_2
.line 640
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string p2, "eglChooseConfig#2 failed"
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
.line 642
:cond_2
invoke-virtual {p0, p1, p2, v7}, Lorg/webrtc/videoengine/GLTextureView$BaseConfigChooser;->chooseConfig(Ljavax/microedition/khronos/egl/EGL10;Ljavax/microedition/khronos/egl/EGLDisplay;[Ljavax/microedition/khronos/egl/EGLConfig;)Ljavax/microedition/khronos/egl/EGLConfig;
move-result-object p1
if-nez p1, :cond_3
.line 644
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string p2, "No config chosen"
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
:cond_3
return-object p1
.end method
.method abstract chooseConfig(Ljavax/microedition/khronos/egl/EGL10;Ljavax/microedition/khronos/egl/EGLDisplay;[Ljavax/microedition/khronos/egl/EGLConfig;)Ljavax/microedition/khronos/egl/EGLConfig;
.end method