c.smali
.class public Lh7/c;
.super Lg7/a;
.source "BrightnessFilter.java"
# interfaces
.implements Lg7/e;
# instance fields
.field public i:F
.field public j:I
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>()V
.registers 2
invoke-direct {p0}, Lg7/a;-><init>()V
const/high16 v0, 0x40000000 # 2.0f
iput v0, p0, Lh7/c;->i:F
const/4 v0, -0x1
iput v0, p0, Lh7/c;->j:I
return-void
.end method
# virtual methods
.method public a(I)V
.registers 3
invoke-super {p0, p1}, Lg7/a;->a(I)V
const-string v0, "brightness"
invoke-static {p1, v0}, Landroid/opengl/GLES20;->glGetUniformLocation(ILjava/lang/String;)I
move-result p1
iput p1, p0, Lh7/c;->j:I
invoke-static {p1, v0}, Ls7/a;->a(ILjava/lang/String;)V
return-void
.end method
.method public b(F)V
.registers 3
const/high16 v0, 0x3f800000 # 1.0f
add-float/2addr p1, v0
invoke-virtual {p0, p1}, Lh7/c;->c(F)V
return-void
.end method
.method public b(J[F)V
.registers 4
.param p1 # J
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
invoke-super {p0, p1, p2, p3}, Lg7/a;->b(J[F)V
iget p1, p0, Lh7/c;->j:I
iget p2, p0, Lh7/c;->i:F
invoke-static {p1, p2}, Landroid/opengl/GLES20;->glUniform1f(IF)V
const-string p1, "glUniform1f"
invoke-static {p1}, Ls7/a;->a(Ljava/lang/String;)V
return-void
.end method
.method public c()Ljava/lang/String;
.registers 2
.annotation build Landroidx/annotation/NonNull;
.end annotation
const-string v0, "#extension GL_OES_EGL_image_external : require\nprecision mediump float;\nuniform samplerExternalOES sTexture;\nuniform float brightness;\nvarying vec2 vTextureCoord;\nvoid main() {\n vec4 color = texture2D(sTexture, vTextureCoord);\n gl_FragColor = brightness * color;\n}\n"
return-object v0
.end method
.method public c(F)V
.registers 4
const/high16 v0, 0x3f800000 # 1.0f
cmpg-float v1, p1, v0
if-gez v1, :cond_8
const/high16 p1, 0x3f800000 # 1.0f
:cond_8
const/high16 v0, 0x40000000 # 2.0f
cmpl-float v1, p1, v0
if-lez v1, :cond_10
const/high16 p1, 0x40000000 # 2.0f
:cond_10
iput p1, p0, Lh7/c;->i:F
return-void
.end method
.method public d()F
.registers 3
invoke-virtual {p0}, Lh7/c;->g()F
move-result v0
const/high16 v1, 0x3f800000 # 1.0f
sub-float/2addr v0, v1
return v0
.end method
.method public g()F
.registers 2
iget v0, p0, Lh7/c;->i:F
return v0
.end method
.method public onDestroy()V
.registers 2
invoke-super {p0}, Lg7/a;->onDestroy()V
const/4 v0, -0x1
iput v0, p0, Lh7/c;->j:I
return-void
.end method