643 lines
18 KiB
Smali
643 lines
18 KiB
Smali
.class public Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder;
|
|
.super Ljava/lang/Object;
|
|
.source "VideoDecoder.java"
|
|
|
|
# interfaces
|
|
.implements Lu4/f;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder$VideoDecoderException;,
|
|
Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder$d;,
|
|
Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder$g;,
|
|
Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder$c;,
|
|
Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder$f;,
|
|
Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder$e;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/lang/Object;",
|
|
"Lu4/f<",
|
|
"TT;",
|
|
"Landroid/graphics/Bitmap;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final d:Ljava/lang/String; = "VideoDecoder"
|
|
|
|
.field public static final e:J = -0x1L
|
|
|
|
.field public static final f:I = 0x2
|
|
.annotation build Landroidx/annotation/VisibleForTesting;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public static final g:Lu4/d;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lu4/d<",
|
|
"Ljava/lang/Long;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public static final h:Lu4/d;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lu4/d<",
|
|
"Ljava/lang/Integer;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public static final i:Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder$e;
|
|
|
|
|
|
# instance fields
|
|
.field public final a:Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder$f;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder$f<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final b:Lcom/bumptech/glide/load/engine/bitmap_recycle/e;
|
|
|
|
.field public final c:Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder$e;
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 3
|
|
|
|
const-wide/16 v0, -0x1
|
|
|
|
.line 1
|
|
invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder$a;
|
|
|
|
invoke-direct {v1}, Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder$a;-><init>()V
|
|
|
|
const-string v2, "com.bumptech.glide.load.resource.bitmap.VideoBitmapDecode.TargetFrame"
|
|
|
|
.line 2
|
|
invoke-static {v2, v0, v1}, Lu4/d;->a(Ljava/lang/String;Ljava/lang/Object;Lu4/d$b;)Lu4/d;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder;->g:Lu4/d;
|
|
|
|
const/4 v0, 0x2
|
|
|
|
.line 3
|
|
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder$b;
|
|
|
|
invoke-direct {v1}, Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder$b;-><init>()V
|
|
|
|
const-string v2, "com.bumptech.glide.load.resource.bitmap.VideoBitmapDecode.FrameOption"
|
|
|
|
.line 4
|
|
invoke-static {v2, v0, v1}, Lu4/d;->a(Ljava/lang/String;Ljava/lang/Object;Lu4/d$b;)Lu4/d;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder;->h:Lu4/d;
|
|
|
|
.line 5
|
|
new-instance v0, Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder$e;
|
|
|
|
invoke-direct {v0}, Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder$e;-><init>()V
|
|
|
|
sput-object v0, Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder;->i:Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder$e;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lcom/bumptech/glide/load/engine/bitmap_recycle/e;Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder$f;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/bumptech/glide/load/engine/bitmap_recycle/e;",
|
|
"Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder$f<",
|
|
"TT;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
sget-object v0, Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder;->i:Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder$e;
|
|
|
|
invoke-direct {p0, p1, p2, v0}, Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder;-><init>(Lcom/bumptech/glide/load/engine/bitmap_recycle/e;Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder$f;Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder$e;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lcom/bumptech/glide/load/engine/bitmap_recycle/e;Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder$f;Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder$e;)V
|
|
.locals 0
|
|
.annotation build Landroidx/annotation/VisibleForTesting;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/bumptech/glide/load/engine/bitmap_recycle/e;",
|
|
"Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder$f<",
|
|
"TT;>;",
|
|
"Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder$e;",
|
|
")V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 2
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 3
|
|
iput-object p1, p0, Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder;->b:Lcom/bumptech/glide/load/engine/bitmap_recycle/e;
|
|
|
|
.line 4
|
|
iput-object p2, p0, Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder;->a:Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder$f;
|
|
|
|
.line 5
|
|
iput-object p3, p0, Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder;->c:Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder$e;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static c(Lcom/bumptech/glide/load/engine/bitmap_recycle/e;)Lu4/f;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/bumptech/glide/load/engine/bitmap_recycle/e;",
|
|
")",
|
|
"Lu4/f<",
|
|
"Landroid/content/res/AssetFileDescriptor;",
|
|
"Landroid/graphics/Bitmap;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder;
|
|
|
|
new-instance v1, Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder$c;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-direct {v1, v2}, Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder$c;-><init>(Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder$a;)V
|
|
|
|
invoke-direct {v0, p0, v1}, Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder;-><init>(Lcom/bumptech/glide/load/engine/bitmap_recycle/e;Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder$f;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static d(Lcom/bumptech/glide/load/engine/bitmap_recycle/e;)Lu4/f;
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/RequiresApi;
|
|
api = 0x17
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/bumptech/glide/load/engine/bitmap_recycle/e;",
|
|
")",
|
|
"Lu4/f<",
|
|
"Ljava/nio/ByteBuffer;",
|
|
"Landroid/graphics/Bitmap;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder;
|
|
|
|
new-instance v1, Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder$d;
|
|
|
|
invoke-direct {v1}, Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder$d;-><init>()V
|
|
|
|
invoke-direct {v0, p0, v1}, Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder;-><init>(Lcom/bumptech/glide/load/engine/bitmap_recycle/e;Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder$f;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static e(Landroid/media/MediaMetadataRetriever;JIIILcom/bumptech/glide/load/resource/bitmap/DownsampleStrategy;)Landroid/graphics/Bitmap;
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.line 1
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x1b
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
const/high16 v0, -0x80000000
|
|
|
|
if-eq p4, v0, :cond_0
|
|
|
|
if-eq p5, v0, :cond_0
|
|
|
|
sget-object v0, Lcom/bumptech/glide/load/resource/bitmap/DownsampleStrategy;->f:Lcom/bumptech/glide/load/resource/bitmap/DownsampleStrategy;
|
|
|
|
if-eq p6, v0, :cond_0
|
|
|
|
.line 2
|
|
invoke-static/range {p0 .. p6}, Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder;->g(Landroid/media/MediaMetadataRetriever;JIIILcom/bumptech/glide/load/resource/bitmap/DownsampleStrategy;)Landroid/graphics/Bitmap;
|
|
|
|
move-result-object p4
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p4, 0x0
|
|
|
|
:goto_0
|
|
if-nez p4, :cond_1
|
|
|
|
.line 3
|
|
invoke-static {p0, p1, p2, p3}, Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder;->f(Landroid/media/MediaMetadataRetriever;JI)Landroid/graphics/Bitmap;
|
|
|
|
move-result-object p4
|
|
|
|
:cond_1
|
|
if-eqz p4, :cond_2
|
|
|
|
return-object p4
|
|
|
|
.line 4
|
|
:cond_2
|
|
new-instance p0, Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder$VideoDecoderException;
|
|
|
|
invoke-direct {p0}, Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder$VideoDecoderException;-><init>()V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static f(Landroid/media/MediaMetadataRetriever;JI)Landroid/graphics/Bitmap;
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1, p2, p3}, Landroid/media/MediaMetadataRetriever;->getFrameAtTime(JI)Landroid/graphics/Bitmap;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static g(Landroid/media/MediaMetadataRetriever;JIIILcom/bumptech/glide/load/resource/bitmap/DownsampleStrategy;)Landroid/graphics/Bitmap;
|
|
.locals 9
|
|
.annotation build Landroid/annotation/TargetApi;
|
|
value = 0x1b
|
|
.end annotation
|
|
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
const/16 v0, 0x12
|
|
|
|
.line 1
|
|
:try_start_0
|
|
invoke-virtual {p0, v0}, Landroid/media/MediaMetadataRetriever;->extractMetadata(I)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
.line 2
|
|
invoke-static {v0}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
|
|
|
|
move-result v0
|
|
|
|
const/16 v1, 0x13
|
|
|
|
.line 3
|
|
invoke-virtual {p0, v1}, Landroid/media/MediaMetadataRetriever;->extractMetadata(I)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
.line 4
|
|
invoke-static {v1}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
|
|
|
|
move-result v1
|
|
|
|
const/16 v2, 0x18
|
|
|
|
.line 5
|
|
invoke-virtual {p0, v2}, Landroid/media/MediaMetadataRetriever;->extractMetadata(I)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
.line 6
|
|
invoke-static {v2}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
|
|
|
|
move-result v2
|
|
|
|
const/16 v3, 0x5a
|
|
|
|
if-eq v2, v3, :cond_0
|
|
|
|
const/16 v3, 0x10e
|
|
|
|
if-ne v2, v3, :cond_1
|
|
|
|
:cond_0
|
|
move v8, v1
|
|
|
|
move v1, v0
|
|
|
|
move v0, v8
|
|
|
|
.line 7
|
|
:cond_1
|
|
invoke-virtual {p6, v0, v1, p4, p5}, Lcom/bumptech/glide/load/resource/bitmap/DownsampleStrategy;->b(IIII)F
|
|
|
|
move-result p4
|
|
|
|
int-to-float p5, v0
|
|
|
|
mul-float/2addr p5, p4
|
|
|
|
.line 8
|
|
invoke-static {p5}, Ljava/lang/Math;->round(F)I
|
|
|
|
move-result v6
|
|
|
|
int-to-float p5, v1
|
|
|
|
mul-float/2addr p4, p5
|
|
|
|
.line 9
|
|
invoke-static {p4}, Ljava/lang/Math;->round(F)I
|
|
|
|
move-result v7
|
|
|
|
move-object v2, p0
|
|
|
|
move-wide v3, p1
|
|
|
|
move v5, p3
|
|
|
|
.line 10
|
|
invoke-virtual/range {v2 .. v7}, Landroid/media/MediaMetadataRetriever;->getScaledFrameAtTime(JIII)Landroid/graphics/Bitmap;
|
|
|
|
move-result-object p0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
return-object p0
|
|
|
|
:catchall_0
|
|
move-exception p0
|
|
|
|
const/4 p1, 0x3
|
|
|
|
const-string p2, "VideoDecoder"
|
|
|
|
.line 11
|
|
invoke-static {p2, p1}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
const-string p1, "Exception trying to decode a scaled frame on oreo+, falling back to a fullsize frame"
|
|
|
|
.line 12
|
|
invoke-static {p2, p1, p0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
|
|
|
|
:cond_2
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static h(Lcom/bumptech/glide/load/engine/bitmap_recycle/e;)Lu4/f;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/bumptech/glide/load/engine/bitmap_recycle/e;",
|
|
")",
|
|
"Lu4/f<",
|
|
"Landroid/os/ParcelFileDescriptor;",
|
|
"Landroid/graphics/Bitmap;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder;
|
|
|
|
new-instance v1, Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder$g;
|
|
|
|
invoke-direct {v1}, Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder$g;-><init>()V
|
|
|
|
invoke-direct {v0, p0, v1}, Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder;-><init>(Lcom/bumptech/glide/load/engine/bitmap_recycle/e;Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder$f;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Ljava/lang/Object;IILu4/e;)Lcom/bumptech/glide/load/engine/s;
|
|
.locals 8
|
|
.param p1 # Ljava/lang/Object;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p4 # Lu4/e;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(TT;II",
|
|
"Lu4/e;",
|
|
")",
|
|
"Lcom/bumptech/glide/load/engine/s<",
|
|
"Landroid/graphics/Bitmap;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
sget-object v0, Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder;->g:Lu4/d;
|
|
|
|
invoke-virtual {p4, v0}, Lu4/e;->c(Lu4/d;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Ljava/lang/Long;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Long;->longValue()J
|
|
|
|
move-result-wide v2
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
cmp-long v0, v2, v0
|
|
|
|
if-gez v0, :cond_1
|
|
|
|
const-wide/16 v0, -0x1
|
|
|
|
cmp-long v0, v2, v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 2
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string p2, "Requested frame must be non-negative, or DEFAULT_FRAME, given: "
|
|
|
|
invoke-static {p2, v2, v3}, Landroidx/camera/core/l1;->a(Ljava/lang/String;J)Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
.line 3
|
|
:cond_1
|
|
:goto_0
|
|
sget-object v0, Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder;->h:Lu4/d;
|
|
|
|
invoke-virtual {p4, v0}, Lu4/e;->c(Lu4/d;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Ljava/lang/Integer;
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
const/4 v0, 0x2
|
|
|
|
.line 4
|
|
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
:cond_2
|
|
sget-object v1, Lcom/bumptech/glide/load/resource/bitmap/DownsampleStrategy;->h:Lu4/d;
|
|
|
|
invoke-virtual {p4, v1}, Lu4/e;->c(Lu4/d;)Ljava/lang/Object;
|
|
|
|
move-result-object p4
|
|
|
|
check-cast p4, Lcom/bumptech/glide/load/resource/bitmap/DownsampleStrategy;
|
|
|
|
if-nez p4, :cond_3
|
|
|
|
.line 6
|
|
sget-object p4, Lcom/bumptech/glide/load/resource/bitmap/DownsampleStrategy;->g:Lcom/bumptech/glide/load/resource/bitmap/DownsampleStrategy;
|
|
|
|
:cond_3
|
|
move-object v7, p4
|
|
|
|
.line 7
|
|
iget-object p4, p0, Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder;->c:Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder$e;
|
|
|
|
invoke-virtual {p4}, Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder$e;->a()Landroid/media/MediaMetadataRetriever;
|
|
|
|
move-result-object p4
|
|
|
|
.line 8
|
|
:try_start_0
|
|
iget-object v1, p0, Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder;->a:Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder$f;
|
|
|
|
invoke-interface {v1, p4, p1}, Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder$f;->a(Landroid/media/MediaMetadataRetriever;Ljava/lang/Object;)V
|
|
|
|
.line 9
|
|
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result v4
|
|
|
|
move-object v1, p4
|
|
|
|
move v5, p2
|
|
|
|
move v6, p3
|
|
|
|
.line 10
|
|
invoke-static/range {v1 .. v7}, Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder;->e(Landroid/media/MediaMetadataRetriever;JIIILcom/bumptech/glide/load/resource/bitmap/DownsampleStrategy;)Landroid/graphics/Bitmap;
|
|
|
|
move-result-object p1
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 11
|
|
invoke-virtual {p4}, Landroid/media/MediaMetadataRetriever;->release()V
|
|
|
|
.line 12
|
|
iget-object p2, p0, Lcom/bumptech/glide/load/resource/bitmap/VideoDecoder;->b:Lcom/bumptech/glide/load/engine/bitmap_recycle/e;
|
|
|
|
invoke-static {p1, p2}, Lcom/bumptech/glide/load/resource/bitmap/g;->d(Landroid/graphics/Bitmap;Lcom/bumptech/glide/load/engine/bitmap_recycle/e;)Lcom/bumptech/glide/load/resource/bitmap/g;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
.line 13
|
|
invoke-virtual {p4}, Landroid/media/MediaMetadataRetriever;->release()V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public b(Ljava/lang/Object;Lu4/e;)Z
|
|
.locals 0
|
|
.param p1 # Ljava/lang/Object;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Lu4/e;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(TT;",
|
|
"Lu4/e;",
|
|
")Z"
|
|
}
|
|
.end annotation
|
|
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
.end method
|