s.smali
.class public Lh7/s;
.super Lg7/a;
.source "TemperatureFilter.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, 0x3f800000 # 1.0f
iput v0, p0, Lh7/s;->i:F
const/4 v0, -0x1
iput v0, p0, Lh7/s;->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, "scale"
invoke-static {p1, v0}, Landroid/opengl/GLES20;->glGetUniformLocation(ILjava/lang/String;)I
move-result p1
iput p1, p0, Lh7/s;->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, 0x40000000 # 2.0f
mul-float p1, p1, v0
const/high16 v0, 0x3f800000 # 1.0f
sub-float/2addr p1, v0
invoke-virtual {p0, p1}, Lh7/s;->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/s;->j:I
iget p2, p0, Lh7/s;->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 scale;\nvarying vec2 vTextureCoord;\nvoid main() {\n vec4 color = texture2D(sTexture, vTextureCoord);\n vec3 new_color = color.rgb;\n new_color.r = color.r + color.r * ( 1.0 - color.r) * scale;\n new_color.b = color.b - color.b * ( 1.0 - color.b) * scale;\n if (scale > 0.0) { \n new_color.g = color.g + color.g * ( 1.0 - color.g) * scale * 0.25;\n }\n float max_value = max(new_color.r, max(new_color.g, new_color.b));\n if (max_value > 1.0) { \n new_color /= max_value;\n } \n gl_FragColor = vec4(new_color, color.a);\n}\n"
return-object v0
.end method
.method public c(F)V
.registers 4
const/high16 v0, -0x40800000 # -1.0f
cmpg-float v1, p1, v0
if-gez v1, :cond_8
const/high16 p1, -0x40800000 # -1.0f
:cond_8
const/high16 v0, 0x3f800000 # 1.0f
cmpl-float v1, p1, v0
if-lez v1, :cond_10
const/high16 p1, 0x3f800000 # 1.0f
:cond_10
iput p1, p0, Lh7/s;->i:F
return-void
.end method
.method public d()F
.registers 3
invoke-virtual {p0}, Lh7/s;->g()F
move-result v0
const/high16 v1, 0x3f800000 # 1.0f
add-float/2addr v0, v1
const/high16 v1, 0x40000000 # 2.0f
div-float/2addr v0, v1
return v0
.end method
.method public g()F
.registers 2
iget v0, p0, Lh7/s;->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/s;->j:I
return-void
.end method