DefaultGifCoverDecoder.smali
.class public Lcom/facebook/imagepipeline/platform/DefaultGifCoverDecoder;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/facebook/imagepipeline/platform/AnimCoverDecoder;
# direct methods
.method public constructor <init>()V
.registers 1
.line 13
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public decodeAnimCoverSize([B)I
.registers 4
const/4 v0, -0x1
if-eqz p1, :cond_13
.line 30
array-length v1, p1
if-nez v1, :cond_7
goto :goto_13
.line 33
:cond_7
invoke-static {}, Lcom/facebook/common/gif/GifSupportStatus;->loadGifBitmapFactoryIfExists()Lcom/facebook/common/gif/GifBitmapFactory;
move-result-object v1
if-eqz v1, :cond_13
.line 35
array-length v0, p1
invoke-interface {v1, p1, v0}, Lcom/facebook/common/gif/GifBitmapFactory;->getFirstGifCoverLength([BI)I
move-result p1
return p1
:cond_13
:goto_13
return v0
.end method
.method public doDecode([B)Landroid/graphics/Bitmap;
.registers 4
const/4 v0, 0x0
if-eqz p1, :cond_12
.line 17
array-length v1, p1
if-nez v1, :cond_7
goto :goto_12
.line 20
:cond_7
invoke-static {}, Lcom/facebook/common/gif/GifSupportStatus;->loadGifBitmapFactoryIfExists()Lcom/facebook/common/gif/GifBitmapFactory;
move-result-object v1
if-eqz v1, :cond_12
.line 23
array-length v0, p1
invoke-interface {v1, p1, v0}, Lcom/facebook/common/gif/GifBitmapFactory;->decodeGifCover([BI)Landroid/graphics/Bitmap;
move-result-object v0
:cond_12
:goto_12
return-object v0
.end method