mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
307 lines
6.6 KiB
Smali
307 lines
6.6 KiB
Smali
.class public Lorg/webrtc/EglBase$ConfigBuilder;
|
|
.super Ljava/lang/Object;
|
|
.source "EglBase.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lorg/webrtc/EglBase;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x9
|
|
name = "ConfigBuilder"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private hasAlphaChannel:Z
|
|
|
|
.field private isRecordable:Z
|
|
|
|
.field private openGlesVersion:I
|
|
|
|
.field private supportsPixelBuffer:Z
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 56
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const/4 v0, 0x2
|
|
|
|
iput v0, p0, Lorg/webrtc/EglBase$ConfigBuilder;->openGlesVersion:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public createConfigAttributes()[I
|
|
.locals 4
|
|
|
|
.line 86
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
const/16 v1, 0x3024
|
|
|
|
.line 87
|
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
const/16 v1, 0x8
|
|
|
|
.line 88
|
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
const/16 v2, 0x3023
|
|
|
|
.line 89
|
|
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v0, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
.line 90
|
|
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
const/16 v2, 0x3022
|
|
|
|
.line 91
|
|
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v0, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
.line 92
|
|
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
iget-boolean v2, p0, Lorg/webrtc/EglBase$ConfigBuilder;->hasAlphaChannel:Z
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
const/16 v2, 0x3021
|
|
|
|
.line 94
|
|
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v0, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
.line 95
|
|
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
:cond_0
|
|
iget v1, p0, Lorg/webrtc/EglBase$ConfigBuilder;->openGlesVersion:I
|
|
|
|
const/4 v2, 0x2
|
|
|
|
const/4 v3, 0x3
|
|
|
|
if-eq v1, v2, :cond_1
|
|
|
|
if-ne v1, v3, :cond_3
|
|
|
|
:cond_1
|
|
const/16 v1, 0x3040
|
|
|
|
.line 98
|
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
iget v1, p0, Lorg/webrtc/EglBase$ConfigBuilder;->openGlesVersion:I
|
|
|
|
if-ne v1, v3, :cond_2
|
|
|
|
const/16 v1, 0x40
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
const/4 v1, 0x4
|
|
|
|
.line 99
|
|
:goto_0
|
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
:cond_3
|
|
iget-boolean v1, p0, Lorg/webrtc/EglBase$ConfigBuilder;->supportsPixelBuffer:Z
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
const/16 v1, 0x3033
|
|
|
|
.line 102
|
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
.line 103
|
|
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
:cond_4
|
|
iget-boolean p0, p0, Lorg/webrtc/EglBase$ConfigBuilder;->isRecordable:Z
|
|
|
|
if-eqz p0, :cond_5
|
|
|
|
const/16 p0, 0x3142
|
|
|
|
.line 106
|
|
invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {v0, p0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
.line 107
|
|
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {v0, p0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
:cond_5
|
|
const/16 p0, 0x3038
|
|
|
|
.line 109
|
|
invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {v0, p0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
.line 111
|
|
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
|
|
|
|
move-result p0
|
|
|
|
new-array p0, p0, [I
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 112
|
|
:goto_1
|
|
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
|
|
|
|
move-result v2
|
|
|
|
if-ge v1, v2, :cond_6
|
|
|
|
.line 113
|
|
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Ljava/lang/Integer;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result v2
|
|
|
|
aput v2, p0, v1
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_6
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public setHasAlphaChannel(Z)Lorg/webrtc/EglBase$ConfigBuilder;
|
|
.locals 0
|
|
|
|
iput-boolean p1, p0, Lorg/webrtc/EglBase$ConfigBuilder;->hasAlphaChannel:Z
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public setIsRecordable(Z)Lorg/webrtc/EglBase$ConfigBuilder;
|
|
.locals 0
|
|
|
|
iput-boolean p1, p0, Lorg/webrtc/EglBase$ConfigBuilder;->isRecordable:Z
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public setOpenGlesVersion(I)Lorg/webrtc/EglBase$ConfigBuilder;
|
|
.locals 2
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-lt p1, v0, :cond_0
|
|
|
|
const/4 v0, 0x3
|
|
|
|
if-gt p1, v0, :cond_0
|
|
|
|
iput p1, p0, Lorg/webrtc/EglBase$ConfigBuilder;->openGlesVersion:I
|
|
|
|
return-object p0
|
|
|
|
.line 64
|
|
:cond_0
|
|
new-instance p0, Ljava/lang/IllegalArgumentException;
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, "OpenGL ES version "
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v0, " not supported"
|
|
|
|
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public setSupportsPixelBuffer(Z)Lorg/webrtc/EglBase$ConfigBuilder;
|
|
.locals 0
|
|
|
|
iput-boolean p1, p0, Lorg/webrtc/EglBase$ConfigBuilder;->supportsPixelBuffer:Z
|
|
|
|
return-object p0
|
|
.end method
|