2022-06-10 21:38:30 +09:00

69 lines
1.5 KiB
Smali

.class public Lcom/bumptech/glide/load/resource/bitmap/DownsampleStrategy$a;
.super Lcom/bumptech/glide/load/resource/bitmap/DownsampleStrategy;
.source "DownsampleStrategy.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/bumptech/glide/load/resource/bitmap/DownsampleStrategy;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "a"
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Lcom/bumptech/glide/load/resource/bitmap/DownsampleStrategy;-><init>()V
return-void
.end method
# virtual methods
.method public a(IIII)Lcom/bumptech/glide/load/resource/bitmap/DownsampleStrategy$SampleSizeRounding;
.locals 0
.line 1
sget-object p1, Lcom/bumptech/glide/load/resource/bitmap/DownsampleStrategy$SampleSizeRounding;->QUALITY:Lcom/bumptech/glide/load/resource/bitmap/DownsampleStrategy$SampleSizeRounding;
return-object p1
.end method
.method public b(IIII)F
.locals 0
.line 1
div-int/2addr p2, p4
div-int/2addr p1, p3
invoke-static {p2, p1}, Ljava/lang/Math;->min(II)I
move-result p1
const/high16 p2, 0x3f800000 # 1.0f
if-nez p1, :cond_0
goto :goto_0
.line 2
:cond_0
invoke-static {p1}, Ljava/lang/Integer;->highestOneBit(I)I
move-result p1
int-to-float p1, p1
div-float/2addr p2, p1
:goto_0
return p2
.end method