You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
285 lines
6.3 KiB
285 lines
6.3 KiB
.class public final enum Lcom/via/gpuimage/Rotation; |
|
.super Ljava/lang/Enum; |
|
.source "Rotation.java" |
|
|
|
|
|
# annotations |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"Ljava/lang/Enum", |
|
"<", |
|
"Lcom/via/gpuimage/Rotation;", |
|
">;" |
|
} |
|
.end annotation |
|
|
|
|
|
# static fields |
|
.field private static final synthetic $VALUES:[Lcom/via/gpuimage/Rotation; |
|
|
|
.field public static final enum NORMAL:Lcom/via/gpuimage/Rotation; |
|
|
|
.field public static final enum ROTATION_180:Lcom/via/gpuimage/Rotation; |
|
|
|
.field public static final enum ROTATION_270:Lcom/via/gpuimage/Rotation; |
|
|
|
.field public static final enum ROTATION_90:Lcom/via/gpuimage/Rotation; |
|
|
|
|
|
# direct methods |
|
.method static constructor <clinit>()V |
|
.locals 6 |
|
|
|
.prologue |
|
const/4 v5, 0x3 |
|
|
|
const/4 v4, 0x2 |
|
|
|
const/4 v3, 0x1 |
|
|
|
const/4 v2, 0x0 |
|
|
|
.line 4 |
|
new-instance v0, Lcom/via/gpuimage/Rotation; |
|
|
|
const-string v1, "NORMAL" |
|
|
|
invoke-direct {v0, v1, v2}, Lcom/via/gpuimage/Rotation;-><init>(Ljava/lang/String;I)V |
|
|
|
sput-object v0, Lcom/via/gpuimage/Rotation;->NORMAL:Lcom/via/gpuimage/Rotation; |
|
|
|
new-instance v0, Lcom/via/gpuimage/Rotation; |
|
|
|
const-string v1, "ROTATION_90" |
|
|
|
invoke-direct {v0, v1, v3}, Lcom/via/gpuimage/Rotation;-><init>(Ljava/lang/String;I)V |
|
|
|
sput-object v0, Lcom/via/gpuimage/Rotation;->ROTATION_90:Lcom/via/gpuimage/Rotation; |
|
|
|
new-instance v0, Lcom/via/gpuimage/Rotation; |
|
|
|
const-string v1, "ROTATION_180" |
|
|
|
invoke-direct {v0, v1, v4}, Lcom/via/gpuimage/Rotation;-><init>(Ljava/lang/String;I)V |
|
|
|
sput-object v0, Lcom/via/gpuimage/Rotation;->ROTATION_180:Lcom/via/gpuimage/Rotation; |
|
|
|
new-instance v0, Lcom/via/gpuimage/Rotation; |
|
|
|
const-string v1, "ROTATION_270" |
|
|
|
invoke-direct {v0, v1, v5}, Lcom/via/gpuimage/Rotation;-><init>(Ljava/lang/String;I)V |
|
|
|
sput-object v0, Lcom/via/gpuimage/Rotation;->ROTATION_270:Lcom/via/gpuimage/Rotation; |
|
|
|
.line 3 |
|
const/4 v0, 0x4 |
|
|
|
new-array v0, v0, [Lcom/via/gpuimage/Rotation; |
|
|
|
sget-object v1, Lcom/via/gpuimage/Rotation;->NORMAL:Lcom/via/gpuimage/Rotation; |
|
|
|
aput-object v1, v0, v2 |
|
|
|
sget-object v1, Lcom/via/gpuimage/Rotation;->ROTATION_90:Lcom/via/gpuimage/Rotation; |
|
|
|
aput-object v1, v0, v3 |
|
|
|
sget-object v1, Lcom/via/gpuimage/Rotation;->ROTATION_180:Lcom/via/gpuimage/Rotation; |
|
|
|
aput-object v1, v0, v4 |
|
|
|
sget-object v1, Lcom/via/gpuimage/Rotation;->ROTATION_270:Lcom/via/gpuimage/Rotation; |
|
|
|
aput-object v1, v0, v5 |
|
|
|
sput-object v0, Lcom/via/gpuimage/Rotation;->$VALUES:[Lcom/via/gpuimage/Rotation; |
|
|
|
return-void |
|
.end method |
|
|
|
.method private constructor <init>(Ljava/lang/String;I)V |
|
.locals 0 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"()V" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 3 |
|
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V |
|
|
|
return-void |
|
.end method |
|
|
|
.method public static fromInt(I)Lcom/via/gpuimage/Rotation; |
|
.locals 3 |
|
|
|
.prologue |
|
.line 28 |
|
sparse-switch p0, :sswitch_data_0 |
|
|
|
.line 34 |
|
new-instance v0, Ljava/lang/IllegalStateException; |
|
|
|
new-instance v1, Ljava/lang/StringBuilder; |
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V |
|
|
|
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v1 |
|
|
|
const-string v2, " is an unknown rotation. Needs to be either 0, 90, 180 or 270!" |
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
|
|
|
move-result-object v1 |
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V |
|
|
|
throw v0 |
|
|
|
.line 29 |
|
:sswitch_0 |
|
sget-object v0, Lcom/via/gpuimage/Rotation;->NORMAL:Lcom/via/gpuimage/Rotation; |
|
|
|
.line 33 |
|
:goto_0 |
|
return-object v0 |
|
|
|
.line 30 |
|
:sswitch_1 |
|
sget-object v0, Lcom/via/gpuimage/Rotation;->ROTATION_90:Lcom/via/gpuimage/Rotation; |
|
|
|
goto :goto_0 |
|
|
|
.line 31 |
|
:sswitch_2 |
|
sget-object v0, Lcom/via/gpuimage/Rotation;->ROTATION_180:Lcom/via/gpuimage/Rotation; |
|
|
|
goto :goto_0 |
|
|
|
.line 32 |
|
:sswitch_3 |
|
sget-object v0, Lcom/via/gpuimage/Rotation;->ROTATION_270:Lcom/via/gpuimage/Rotation; |
|
|
|
goto :goto_0 |
|
|
|
.line 33 |
|
:sswitch_4 |
|
sget-object v0, Lcom/via/gpuimage/Rotation;->NORMAL:Lcom/via/gpuimage/Rotation; |
|
|
|
goto :goto_0 |
|
|
|
.line 28 |
|
nop |
|
|
|
:sswitch_data_0 |
|
.sparse-switch |
|
0x0 -> :sswitch_0 |
|
0x5a -> :sswitch_1 |
|
0xb4 -> :sswitch_2 |
|
0x10e -> :sswitch_3 |
|
0x168 -> :sswitch_4 |
|
.end sparse-switch |
|
.end method |
|
|
|
.method public static valueOf(Ljava/lang/String;)Lcom/via/gpuimage/Rotation; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 3 |
|
const-class v0, Lcom/via/gpuimage/Rotation; |
|
|
|
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Lcom/via/gpuimage/Rotation; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public static values()[Lcom/via/gpuimage/Rotation; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 3 |
|
sget-object v0, Lcom/via/gpuimage/Rotation;->$VALUES:[Lcom/via/gpuimage/Rotation; |
|
|
|
invoke-virtual {v0}, [Lcom/via/gpuimage/Rotation;->clone()Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, [Lcom/via/gpuimage/Rotation; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
|
|
# virtual methods |
|
.method public asInt()I |
|
.locals 2 |
|
|
|
.prologue |
|
.line 12 |
|
sget-object v0, Lcom/via/gpuimage/Rotation$1;->$SwitchMap$com$via$gpuimage$Rotation:[I |
|
|
|
invoke-virtual {p0}, Lcom/via/gpuimage/Rotation;->ordinal()I |
|
|
|
move-result v1 |
|
|
|
aget v0, v0, v1 |
|
|
|
packed-switch v0, :pswitch_data_0 |
|
|
|
.line 17 |
|
new-instance v0, Ljava/lang/IllegalStateException; |
|
|
|
const-string v1, "Unknown Rotation!" |
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V |
|
|
|
throw v0 |
|
|
|
.line 13 |
|
:pswitch_0 |
|
const/4 v0, 0x0 |
|
|
|
.line 16 |
|
:goto_0 |
|
return v0 |
|
|
|
.line 14 |
|
:pswitch_1 |
|
const/16 v0, 0x5a |
|
|
|
goto :goto_0 |
|
|
|
.line 15 |
|
:pswitch_2 |
|
const/16 v0, 0xb4 |
|
|
|
goto :goto_0 |
|
|
|
.line 16 |
|
:pswitch_3 |
|
const/16 v0, 0x10e |
|
|
|
goto :goto_0 |
|
|
|
.line 12 |
|
:pswitch_data_0 |
|
.packed-switch 0x1 |
|
:pswitch_0 |
|
:pswitch_1 |
|
:pswitch_2 |
|
:pswitch_3 |
|
.end packed-switch |
|
.end method
|
|
|