Changes of com.discord v1144
This commit is contained in:
parent
4746542b20
commit
f52990c3c2
25752 changed files with 4382359 additions and 77 deletions
|
@ -0,0 +1,13 @@
|
|||
.class public final Lcom/facebook/animated/drawable/R;
|
||||
.super Ljava/lang/Object;
|
||||
.source "R.java"
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
|
@ -0,0 +1,158 @@
|
|||
.class public Lcom/facebook/animated/gif/GifFrame;
|
||||
.super Ljava/lang/Object;
|
||||
.source "GifFrame.java"
|
||||
|
||||
# interfaces
|
||||
.implements Lf/j/j/a/a/d;
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public mNativeContext:J
|
||||
.annotation build Lf/j/d/d/c;
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(J)V
|
||||
.locals 0
|
||||
.annotation build Lf/j/d/d/c;
|
||||
.end annotation
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
iput-wide p1, p0, Lcom/facebook/animated/gif/GifFrame;->mNativeContext:J
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method private native nativeDispose()V
|
||||
.annotation build Lf/j/d/d/c;
|
||||
.end annotation
|
||||
.end method
|
||||
|
||||
.method private native nativeFinalize()V
|
||||
.annotation build Lf/j/d/d/c;
|
||||
.end annotation
|
||||
.end method
|
||||
|
||||
.method private native nativeGetDisposalMode()I
|
||||
.annotation build Lf/j/d/d/c;
|
||||
.end annotation
|
||||
.end method
|
||||
|
||||
.method private native nativeGetDurationMs()I
|
||||
.annotation build Lf/j/d/d/c;
|
||||
.end annotation
|
||||
.end method
|
||||
|
||||
.method private native nativeGetHeight()I
|
||||
.annotation build Lf/j/d/d/c;
|
||||
.end annotation
|
||||
.end method
|
||||
|
||||
.method private native nativeGetTransparentPixelColor()I
|
||||
.annotation build Lf/j/d/d/c;
|
||||
.end annotation
|
||||
.end method
|
||||
|
||||
.method private native nativeGetWidth()I
|
||||
.annotation build Lf/j/d/d/c;
|
||||
.end annotation
|
||||
.end method
|
||||
|
||||
.method private native nativeGetXOffset()I
|
||||
.annotation build Lf/j/d/d/c;
|
||||
.end annotation
|
||||
.end method
|
||||
|
||||
.method private native nativeGetYOffset()I
|
||||
.annotation build Lf/j/d/d/c;
|
||||
.end annotation
|
||||
.end method
|
||||
|
||||
.method private native nativeHasTransparency()Z
|
||||
.annotation build Lf/j/d/d/c;
|
||||
.end annotation
|
||||
.end method
|
||||
|
||||
.method private native nativeRenderFrame(IILandroid/graphics/Bitmap;)V
|
||||
.annotation build Lf/j/d/d/c;
|
||||
.end annotation
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public a()I
|
||||
.locals 1
|
||||
|
||||
invoke-direct {p0}, Lcom/facebook/animated/gif/GifFrame;->nativeGetXOffset()I
|
||||
|
||||
move-result v0
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public a(IILandroid/graphics/Bitmap;)V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0, p1, p2, p3}, Lcom/facebook/animated/gif/GifFrame;->nativeRenderFrame(IILandroid/graphics/Bitmap;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public b()I
|
||||
.locals 1
|
||||
|
||||
invoke-direct {p0}, Lcom/facebook/animated/gif/GifFrame;->nativeGetYOffset()I
|
||||
|
||||
move-result v0
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public c()I
|
||||
.locals 1
|
||||
|
||||
invoke-direct {p0}, Lcom/facebook/animated/gif/GifFrame;->nativeGetDisposalMode()I
|
||||
|
||||
move-result v0
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public dispose()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Lcom/facebook/animated/gif/GifFrame;->nativeDispose()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public finalize()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Lcom/facebook/animated/gif/GifFrame;->nativeFinalize()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public getHeight()I
|
||||
.locals 1
|
||||
|
||||
invoke-direct {p0}, Lcom/facebook/animated/gif/GifFrame;->nativeGetHeight()I
|
||||
|
||||
move-result v0
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public getWidth()I
|
||||
.locals 1
|
||||
|
||||
invoke-direct {p0}, Lcom/facebook/animated/gif/GifFrame;->nativeGetWidth()I
|
||||
|
||||
move-result v0
|
||||
|
||||
return v0
|
||||
.end method
|
|
@ -0,0 +1,394 @@
|
|||
.class public Lcom/facebook/animated/gif/GifImage;
|
||||
.super Ljava/lang/Object;
|
||||
.source "GifImage.java"
|
||||
|
||||
# interfaces
|
||||
.implements Lf/j/j/a/a/c;
|
||||
.implements Lf/j/j/a/b/c;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation build Lf/j/d/d/c;
|
||||
.end annotation
|
||||
|
||||
|
||||
# static fields
|
||||
.field public static volatile a:Z
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public mNativeContext:J
|
||||
.annotation build Lf/j/d/d/c;
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.locals 0
|
||||
.annotation build Lf/j/d/d/c;
|
||||
.end annotation
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public constructor <init>(J)V
|
||||
.locals 0
|
||||
.annotation build Lf/j/d/d/c;
|
||||
.end annotation
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
iput-wide p1, p0, Lcom/facebook/animated/gif/GifImage;->mNativeContext:J
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public static declared-synchronized f()V
|
||||
.locals 2
|
||||
|
||||
const-class v0, Lcom/facebook/animated/gif/GifImage;
|
||||
|
||||
monitor-enter v0
|
||||
|
||||
:try_start_0
|
||||
sget-boolean v1, Lcom/facebook/animated/gif/GifImage;->a:Z
|
||||
|
||||
if-nez v1, :cond_0
|
||||
|
||||
const/4 v1, 0x1
|
||||
|
||||
sput-boolean v1, Lcom/facebook/animated/gif/GifImage;->a:Z
|
||||
|
||||
const-string v1, "gifimage"
|
||||
|
||||
invoke-static {v1}, Lcom/facebook/soloader/SoLoader;->a(Ljava/lang/String;)Z
|
||||
:try_end_0
|
||||
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||||
|
||||
:cond_0
|
||||
monitor-exit v0
|
||||
|
||||
return-void
|
||||
|
||||
:catchall_0
|
||||
move-exception v1
|
||||
|
||||
monitor-exit v0
|
||||
|
||||
throw v1
|
||||
.end method
|
||||
|
||||
.method public static native nativeCreateFromDirectByteBuffer(Ljava/nio/ByteBuffer;)Lcom/facebook/animated/gif/GifImage;
|
||||
.annotation build Lf/j/d/d/c;
|
||||
.end annotation
|
||||
.end method
|
||||
|
||||
.method public static native nativeCreateFromNativeMemory(JI)Lcom/facebook/animated/gif/GifImage;
|
||||
.annotation build Lf/j/d/d/c;
|
||||
.end annotation
|
||||
.end method
|
||||
|
||||
.method private native nativeDispose()V
|
||||
.annotation build Lf/j/d/d/c;
|
||||
.end annotation
|
||||
.end method
|
||||
|
||||
.method private native nativeFinalize()V
|
||||
.annotation build Lf/j/d/d/c;
|
||||
.end annotation
|
||||
.end method
|
||||
|
||||
.method private native nativeGetDuration()I
|
||||
.annotation build Lf/j/d/d/c;
|
||||
.end annotation
|
||||
.end method
|
||||
|
||||
.method private native nativeGetFrame(I)Lcom/facebook/animated/gif/GifFrame;
|
||||
.annotation build Lf/j/d/d/c;
|
||||
.end annotation
|
||||
.end method
|
||||
|
||||
.method private native nativeGetFrameCount()I
|
||||
.annotation build Lf/j/d/d/c;
|
||||
.end annotation
|
||||
.end method
|
||||
|
||||
.method private native nativeGetFrameDurations()[I
|
||||
.annotation build Lf/j/d/d/c;
|
||||
.end annotation
|
||||
.end method
|
||||
|
||||
.method private native nativeGetHeight()I
|
||||
.annotation build Lf/j/d/d/c;
|
||||
.end annotation
|
||||
.end method
|
||||
|
||||
.method private native nativeGetLoopCount()I
|
||||
.annotation build Lf/j/d/d/c;
|
||||
.end annotation
|
||||
.end method
|
||||
|
||||
.method private native nativeGetSizeInBytes()I
|
||||
.annotation build Lf/j/d/d/c;
|
||||
.end annotation
|
||||
.end method
|
||||
|
||||
.method private native nativeGetWidth()I
|
||||
.annotation build Lf/j/d/d/c;
|
||||
.end annotation
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public a()I
|
||||
.locals 1
|
||||
|
||||
invoke-direct {p0}, Lcom/facebook/animated/gif/GifImage;->nativeGetFrameCount()I
|
||||
|
||||
move-result v0
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public a(I)Lf/j/j/a/a/b;
|
||||
.locals 10
|
||||
|
||||
invoke-virtual {p0, p1}, Lcom/facebook/animated/gif/GifImage;->b(I)Lcom/facebook/animated/gif/GifFrame;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
:try_start_0
|
||||
new-instance v9, Lf/j/j/a/a/b;
|
||||
|
||||
invoke-virtual {v0}, Lcom/facebook/animated/gif/GifFrame;->a()I
|
||||
|
||||
move-result v3
|
||||
|
||||
invoke-virtual {v0}, Lcom/facebook/animated/gif/GifFrame;->b()I
|
||||
|
||||
move-result v4
|
||||
|
||||
invoke-virtual {v0}, Lcom/facebook/animated/gif/GifFrame;->getWidth()I
|
||||
|
||||
move-result v5
|
||||
|
||||
invoke-virtual {v0}, Lcom/facebook/animated/gif/GifFrame;->getHeight()I
|
||||
|
||||
move-result v6
|
||||
|
||||
sget-object v7, Lf/j/j/a/a/b$a;->d:Lf/j/j/a/a/b$a;
|
||||
|
||||
invoke-virtual {v0}, Lcom/facebook/animated/gif/GifFrame;->c()I
|
||||
|
||||
move-result v1
|
||||
|
||||
if-nez v1, :cond_0
|
||||
|
||||
sget-object v1, Lf/j/j/a/a/b$b;->d:Lf/j/j/a/a/b$b;
|
||||
|
||||
:goto_0
|
||||
move-object v8, v1
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_0
|
||||
const/4 v2, 0x1
|
||||
|
||||
if-ne v1, v2, :cond_1
|
||||
|
||||
sget-object v1, Lf/j/j/a/a/b$b;->d:Lf/j/j/a/a/b$b;
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_1
|
||||
const/4 v2, 0x2
|
||||
|
||||
if-ne v1, v2, :cond_2
|
||||
|
||||
sget-object v1, Lf/j/j/a/a/b$b;->e:Lf/j/j/a/a/b$b;
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_2
|
||||
const/4 v2, 0x3
|
||||
|
||||
if-ne v1, v2, :cond_3
|
||||
|
||||
sget-object v1, Lf/j/j/a/a/b$b;->f:Lf/j/j/a/a/b$b;
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_3
|
||||
sget-object v1, Lf/j/j/a/a/b$b;->d:Lf/j/j/a/a/b$b;
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:goto_1
|
||||
move-object v1, v9
|
||||
|
||||
move v2, p1
|
||||
|
||||
invoke-direct/range {v1 .. v8}, Lf/j/j/a/a/b;-><init>(IIIIILf/j/j/a/a/b$a;Lf/j/j/a/a/b$b;)V
|
||||
:try_end_0
|
||||
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||||
|
||||
invoke-virtual {v0}, Lcom/facebook/animated/gif/GifFrame;->dispose()V
|
||||
|
||||
return-object v9
|
||||
|
||||
:catchall_0
|
||||
move-exception p1
|
||||
|
||||
invoke-virtual {v0}, Lcom/facebook/animated/gif/GifFrame;->dispose()V
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
|
||||
.method public a(JI)Lf/j/j/a/a/c;
|
||||
.locals 3
|
||||
|
||||
invoke-static {}, Lcom/facebook/animated/gif/GifImage;->f()V
|
||||
|
||||
const-wide/16 v0, 0x0
|
||||
|
||||
cmp-long v2, p1, v0
|
||||
|
||||
if-eqz v2, :cond_0
|
||||
|
||||
const/4 v0, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
const/4 v0, 0x0
|
||||
|
||||
:goto_0
|
||||
invoke-static {v0}, Ls/a/b/b/a;->a(Z)V
|
||||
|
||||
invoke-static {p1, p2, p3}, Lcom/facebook/animated/gif/GifImage;->nativeCreateFromNativeMemory(JI)Lcom/facebook/animated/gif/GifImage;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
return-object p1
|
||||
.end method
|
||||
|
||||
.method public a(Ljava/nio/ByteBuffer;)Lf/j/j/a/a/c;
|
||||
.locals 0
|
||||
|
||||
invoke-static {}, Lcom/facebook/animated/gif/GifImage;->f()V
|
||||
|
||||
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->rewind()Ljava/nio/Buffer;
|
||||
|
||||
invoke-static {p1}, Lcom/facebook/animated/gif/GifImage;->nativeCreateFromDirectByteBuffer(Ljava/nio/ByteBuffer;)Lcom/facebook/animated/gif/GifImage;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
return-object p1
|
||||
.end method
|
||||
|
||||
.method public b()I
|
||||
.locals 3
|
||||
|
||||
invoke-direct {p0}, Lcom/facebook/animated/gif/GifImage;->nativeGetLoopCount()I
|
||||
|
||||
move-result v0
|
||||
|
||||
const/4 v1, -0x1
|
||||
|
||||
const/4 v2, 0x1
|
||||
|
||||
if-eq v0, v1, :cond_1
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
add-int/2addr v0, v2
|
||||
|
||||
return v0
|
||||
|
||||
:cond_0
|
||||
const/4 v0, 0x0
|
||||
|
||||
return v0
|
||||
|
||||
:cond_1
|
||||
return v2
|
||||
.end method
|
||||
|
||||
.method public b(I)Lcom/facebook/animated/gif/GifFrame;
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0, p1}, Lcom/facebook/animated/gif/GifImage;->nativeGetFrame(I)Lcom/facebook/animated/gif/GifFrame;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
return-object p1
|
||||
.end method
|
||||
|
||||
.method public bridge synthetic b(I)Lf/j/j/a/a/d;
|
||||
.locals 0
|
||||
|
||||
invoke-virtual {p0, p1}, Lcom/facebook/animated/gif/GifImage;->b(I)Lcom/facebook/animated/gif/GifFrame;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
return-object p1
|
||||
.end method
|
||||
|
||||
.method public c()[I
|
||||
.locals 1
|
||||
|
||||
invoke-direct {p0}, Lcom/facebook/animated/gif/GifImage;->nativeGetFrameDurations()[I
|
||||
|
||||
move-result-object v0
|
||||
|
||||
return-object v0
|
||||
.end method
|
||||
|
||||
.method public d()I
|
||||
.locals 1
|
||||
|
||||
invoke-direct {p0}, Lcom/facebook/animated/gif/GifImage;->nativeGetSizeInBytes()I
|
||||
|
||||
move-result v0
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public e()Z
|
||||
.locals 1
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public finalize()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Lcom/facebook/animated/gif/GifImage;->nativeFinalize()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public getHeight()I
|
||||
.locals 1
|
||||
|
||||
invoke-direct {p0}, Lcom/facebook/animated/gif/GifImage;->nativeGetHeight()I
|
||||
|
||||
move-result v0
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public getWidth()I
|
||||
.locals 1
|
||||
|
||||
invoke-direct {p0}, Lcom/facebook/animated/gif/GifImage;->nativeGetWidth()I
|
||||
|
||||
move-result v0
|
||||
|
||||
return v0
|
||||
.end method
|
13
com.discord/smali_classes2/com/facebook/animated/gif/R.smali
Normal file
13
com.discord/smali_classes2/com/facebook/animated/gif/R.smali
Normal file
|
@ -0,0 +1,13 @@
|
|||
.class public final Lcom/facebook/animated/gif/R;
|
||||
.super Ljava/lang/Object;
|
||||
.source "R.java"
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
|
@ -0,0 +1,13 @@
|
|||
.class public final Lcom/facebook/animated/webp/R;
|
||||
.super Ljava/lang/Object;
|
||||
.source "R.java"
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
|
@ -0,0 +1,143 @@
|
|||
.class public Lcom/facebook/animated/webp/WebPFrame;
|
||||
.super Ljava/lang/Object;
|
||||
.source "WebPFrame.java"
|
||||
|
||||
# interfaces
|
||||
.implements Lf/j/j/a/a/d;
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public mNativeContext:J
|
||||
.annotation build Lf/j/d/d/c;
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(J)V
|
||||
.locals 0
|
||||
.annotation build Lf/j/d/d/c;
|
||||
.end annotation
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
iput-wide p1, p0, Lcom/facebook/animated/webp/WebPFrame;->mNativeContext:J
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method private native nativeDispose()V
|
||||
.end method
|
||||
|
||||
.method private native nativeFinalize()V
|
||||
.end method
|
||||
|
||||
.method private native nativeGetDurationMs()I
|
||||
.end method
|
||||
|
||||
.method private native nativeGetHeight()I
|
||||
.end method
|
||||
|
||||
.method private native nativeGetWidth()I
|
||||
.end method
|
||||
|
||||
.method private native nativeGetXOffset()I
|
||||
.end method
|
||||
|
||||
.method private native nativeGetYOffset()I
|
||||
.end method
|
||||
|
||||
.method private native nativeIsBlendWithPreviousFrame()Z
|
||||
.end method
|
||||
|
||||
.method private native nativeRenderFrame(IILandroid/graphics/Bitmap;)V
|
||||
.end method
|
||||
|
||||
.method private native nativeShouldDisposeToBackgroundColor()Z
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public a()I
|
||||
.locals 1
|
||||
|
||||
invoke-direct {p0}, Lcom/facebook/animated/webp/WebPFrame;->nativeGetXOffset()I
|
||||
|
||||
move-result v0
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public a(IILandroid/graphics/Bitmap;)V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0, p1, p2, p3}, Lcom/facebook/animated/webp/WebPFrame;->nativeRenderFrame(IILandroid/graphics/Bitmap;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public b()I
|
||||
.locals 1
|
||||
|
||||
invoke-direct {p0}, Lcom/facebook/animated/webp/WebPFrame;->nativeGetYOffset()I
|
||||
|
||||
move-result v0
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public c()Z
|
||||
.locals 1
|
||||
|
||||
invoke-direct {p0}, Lcom/facebook/animated/webp/WebPFrame;->nativeIsBlendWithPreviousFrame()Z
|
||||
|
||||
move-result v0
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public d()Z
|
||||
.locals 1
|
||||
|
||||
invoke-direct {p0}, Lcom/facebook/animated/webp/WebPFrame;->nativeShouldDisposeToBackgroundColor()Z
|
||||
|
||||
move-result v0
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public dispose()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Lcom/facebook/animated/webp/WebPFrame;->nativeDispose()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public finalize()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Lcom/facebook/animated/webp/WebPFrame;->nativeFinalize()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public getHeight()I
|
||||
.locals 1
|
||||
|
||||
invoke-direct {p0}, Lcom/facebook/animated/webp/WebPFrame;->nativeGetHeight()I
|
||||
|
||||
move-result v0
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public getWidth()I
|
||||
.locals 1
|
||||
|
||||
invoke-direct {p0}, Lcom/facebook/animated/webp/WebPFrame;->nativeGetWidth()I
|
||||
|
||||
move-result v0
|
||||
|
||||
return v0
|
||||
.end method
|
|
@ -0,0 +1,297 @@
|
|||
.class public Lcom/facebook/animated/webp/WebPImage;
|
||||
.super Ljava/lang/Object;
|
||||
.source "WebPImage.java"
|
||||
|
||||
# interfaces
|
||||
.implements Lf/j/j/a/a/c;
|
||||
.implements Lf/j/j/a/b/c;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation build Lf/j/d/d/c;
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public mNativeContext:J
|
||||
.annotation build Lf/j/d/d/c;
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.locals 0
|
||||
.annotation build Lf/j/d/d/c;
|
||||
.end annotation
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public constructor <init>(J)V
|
||||
.locals 0
|
||||
.annotation build Lf/j/d/d/c;
|
||||
.end annotation
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
iput-wide p1, p0, Lcom/facebook/animated/webp/WebPImage;->mNativeContext:J
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public static native nativeCreateFromDirectByteBuffer(Ljava/nio/ByteBuffer;)Lcom/facebook/animated/webp/WebPImage;
|
||||
.end method
|
||||
|
||||
.method public static native nativeCreateFromNativeMemory(JI)Lcom/facebook/animated/webp/WebPImage;
|
||||
.end method
|
||||
|
||||
.method private native nativeDispose()V
|
||||
.end method
|
||||
|
||||
.method private native nativeFinalize()V
|
||||
.end method
|
||||
|
||||
.method private native nativeGetDuration()I
|
||||
.end method
|
||||
|
||||
.method private native nativeGetFrame(I)Lcom/facebook/animated/webp/WebPFrame;
|
||||
.end method
|
||||
|
||||
.method private native nativeGetFrameCount()I
|
||||
.end method
|
||||
|
||||
.method private native nativeGetFrameDurations()[I
|
||||
.end method
|
||||
|
||||
.method private native nativeGetHeight()I
|
||||
.end method
|
||||
|
||||
.method private native nativeGetLoopCount()I
|
||||
.end method
|
||||
|
||||
.method private native nativeGetSizeInBytes()I
|
||||
.end method
|
||||
|
||||
.method private native nativeGetWidth()I
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public a()I
|
||||
.locals 1
|
||||
|
||||
invoke-direct {p0}, Lcom/facebook/animated/webp/WebPImage;->nativeGetFrameCount()I
|
||||
|
||||
move-result v0
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public a(I)Lf/j/j/a/a/b;
|
||||
.locals 10
|
||||
|
||||
invoke-virtual {p0, p1}, Lcom/facebook/animated/webp/WebPImage;->b(I)Lcom/facebook/animated/webp/WebPFrame;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
:try_start_0
|
||||
new-instance v9, Lf/j/j/a/a/b;
|
||||
|
||||
invoke-virtual {v0}, Lcom/facebook/animated/webp/WebPFrame;->a()I
|
||||
|
||||
move-result v3
|
||||
|
||||
invoke-virtual {v0}, Lcom/facebook/animated/webp/WebPFrame;->b()I
|
||||
|
||||
move-result v4
|
||||
|
||||
invoke-virtual {v0}, Lcom/facebook/animated/webp/WebPFrame;->getWidth()I
|
||||
|
||||
move-result v5
|
||||
|
||||
invoke-virtual {v0}, Lcom/facebook/animated/webp/WebPFrame;->getHeight()I
|
||||
|
||||
move-result v6
|
||||
|
||||
invoke-virtual {v0}, Lcom/facebook/animated/webp/WebPFrame;->c()Z
|
||||
|
||||
move-result v1
|
||||
|
||||
if-eqz v1, :cond_0
|
||||
|
||||
sget-object v1, Lf/j/j/a/a/b$a;->d:Lf/j/j/a/a/b$a;
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
sget-object v1, Lf/j/j/a/a/b$a;->e:Lf/j/j/a/a/b$a;
|
||||
|
||||
:goto_0
|
||||
move-object v7, v1
|
||||
|
||||
invoke-virtual {v0}, Lcom/facebook/animated/webp/WebPFrame;->d()Z
|
||||
|
||||
move-result v1
|
||||
|
||||
if-eqz v1, :cond_1
|
||||
|
||||
sget-object v1, Lf/j/j/a/a/b$b;->e:Lf/j/j/a/a/b$b;
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_1
|
||||
sget-object v1, Lf/j/j/a/a/b$b;->d:Lf/j/j/a/a/b$b;
|
||||
|
||||
:goto_1
|
||||
move-object v8, v1
|
||||
|
||||
move-object v1, v9
|
||||
|
||||
move v2, p1
|
||||
|
||||
invoke-direct/range {v1 .. v8}, Lf/j/j/a/a/b;-><init>(IIIIILf/j/j/a/a/b$a;Lf/j/j/a/a/b$b;)V
|
||||
:try_end_0
|
||||
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||||
|
||||
invoke-virtual {v0}, Lcom/facebook/animated/webp/WebPFrame;->dispose()V
|
||||
|
||||
return-object v9
|
||||
|
||||
:catchall_0
|
||||
move-exception p1
|
||||
|
||||
invoke-virtual {v0}, Lcom/facebook/animated/webp/WebPFrame;->dispose()V
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
|
||||
.method public a(JI)Lf/j/j/a/a/c;
|
||||
.locals 3
|
||||
|
||||
invoke-static {}, Ls/a/b/b/a;->b()V
|
||||
|
||||
const-wide/16 v0, 0x0
|
||||
|
||||
cmp-long v2, p1, v0
|
||||
|
||||
if-eqz v2, :cond_0
|
||||
|
||||
const/4 v0, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
const/4 v0, 0x0
|
||||
|
||||
:goto_0
|
||||
invoke-static {v0}, Ls/a/b/b/a;->a(Z)V
|
||||
|
||||
invoke-static {p1, p2, p3}, Lcom/facebook/animated/webp/WebPImage;->nativeCreateFromNativeMemory(JI)Lcom/facebook/animated/webp/WebPImage;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
return-object p1
|
||||
.end method
|
||||
|
||||
.method public a(Ljava/nio/ByteBuffer;)Lf/j/j/a/a/c;
|
||||
.locals 0
|
||||
|
||||
invoke-static {}, Ls/a/b/b/a;->b()V
|
||||
|
||||
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->rewind()Ljava/nio/Buffer;
|
||||
|
||||
invoke-static {p1}, Lcom/facebook/animated/webp/WebPImage;->nativeCreateFromDirectByteBuffer(Ljava/nio/ByteBuffer;)Lcom/facebook/animated/webp/WebPImage;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
return-object p1
|
||||
.end method
|
||||
|
||||
.method public b()I
|
||||
.locals 1
|
||||
|
||||
invoke-direct {p0}, Lcom/facebook/animated/webp/WebPImage;->nativeGetLoopCount()I
|
||||
|
||||
move-result v0
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public b(I)Lcom/facebook/animated/webp/WebPFrame;
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0, p1}, Lcom/facebook/animated/webp/WebPImage;->nativeGetFrame(I)Lcom/facebook/animated/webp/WebPFrame;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
return-object p1
|
||||
.end method
|
||||
|
||||
.method public bridge synthetic b(I)Lf/j/j/a/a/d;
|
||||
.locals 0
|
||||
|
||||
invoke-virtual {p0, p1}, Lcom/facebook/animated/webp/WebPImage;->b(I)Lcom/facebook/animated/webp/WebPFrame;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
return-object p1
|
||||
.end method
|
||||
|
||||
.method public c()[I
|
||||
.locals 1
|
||||
|
||||
invoke-direct {p0}, Lcom/facebook/animated/webp/WebPImage;->nativeGetFrameDurations()[I
|
||||
|
||||
move-result-object v0
|
||||
|
||||
return-object v0
|
||||
.end method
|
||||
|
||||
.method public d()I
|
||||
.locals 1
|
||||
|
||||
invoke-direct {p0}, Lcom/facebook/animated/webp/WebPImage;->nativeGetSizeInBytes()I
|
||||
|
||||
move-result v0
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public e()Z
|
||||
.locals 1
|
||||
|
||||
const/4 v0, 0x1
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public finalize()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Lcom/facebook/animated/webp/WebPImage;->nativeFinalize()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public getHeight()I
|
||||
.locals 1
|
||||
|
||||
invoke-direct {p0}, Lcom/facebook/animated/webp/WebPImage;->nativeGetHeight()I
|
||||
|
||||
move-result v0
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public getWidth()I
|
||||
.locals 1
|
||||
|
||||
invoke-direct {p0}, Lcom/facebook/animated/webp/WebPImage;->nativeGetWidth()I
|
||||
|
||||
move-result v0
|
||||
|
||||
return v0
|
||||
.end method
|
Loading…
Add table
Add a link
Reference in a new issue