WebPFrame.smali
.class public Lcom/facebook/animated/webp/WebPFrame;
.super Ljava/lang/Object;
.source "WebPFrame.java"
# interfaces
.implements Lcom/facebook/imagepipeline/animated/base/AnimatedImageFrame;
# instance fields
.field private mNativeContext:J
# direct methods
.method constructor <init>(J)V
.registers 3
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"nativeContext"
}
.end annotation
.line 32
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 33
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
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0,
0x0,
0x0
}
names = {
"width",
"height",
"bitmap"
}
.end annotation
.end method
.method private native nativeShouldDisposeToBackgroundColor()Z
.end method
# virtual methods
.method public dispose()V
.registers 1
.line 43
invoke-direct {p0}, Lcom/facebook/animated/webp/WebPFrame;->nativeDispose()V
return-void
.end method
.method protected finalize()V
.registers 1
.line 38
invoke-direct {p0}, Lcom/facebook/animated/webp/WebPFrame;->nativeFinalize()V
return-void
.end method
.method public getDurationMs()I
.registers 2
.line 53
invoke-direct {p0}, Lcom/facebook/animated/webp/WebPFrame;->nativeGetDurationMs()I
move-result v0
return v0
.end method
.method public getHeight()I
.registers 2
.line 63
invoke-direct {p0}, Lcom/facebook/animated/webp/WebPFrame;->nativeGetHeight()I
move-result v0
return v0
.end method
.method public getWidth()I
.registers 2
.line 58
invoke-direct {p0}, Lcom/facebook/animated/webp/WebPFrame;->nativeGetWidth()I
move-result v0
return v0
.end method
.method public getXOffset()I
.registers 2
.line 68
invoke-direct {p0}, Lcom/facebook/animated/webp/WebPFrame;->nativeGetXOffset()I
move-result v0
return v0
.end method
.method public getYOffset()I
.registers 2
.line 73
invoke-direct {p0}, Lcom/facebook/animated/webp/WebPFrame;->nativeGetYOffset()I
move-result v0
return v0
.end method
.method public isBlendWithPreviousFrame()Z
.registers 2
.line 81
invoke-direct {p0}, Lcom/facebook/animated/webp/WebPFrame;->nativeIsBlendWithPreviousFrame()Z
move-result v0
return v0
.end method
.method public renderFrame(IILandroid/graphics/Bitmap;)V
.registers 4
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0,
0x0,
0x0
}
names = {
"width",
"height",
"bitmap"
}
.end annotation
.line 48
invoke-direct {p0, p1, p2, p3}, Lcom/facebook/animated/webp/WebPFrame;->nativeRenderFrame(IILandroid/graphics/Bitmap;)V
return-void
.end method
.method public shouldDisposeToBackgroundColor()Z
.registers 2
.line 77
invoke-direct {p0}, Lcom/facebook/animated/webp/WebPFrame;->nativeShouldDisposeToBackgroundColor()Z
move-result v0
return v0
.end method