BeautyProcessor.smali
.class public Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;
.super Lcom/tencent/liteav/videobase/a/h;
.source "SourceFile"
# annotations
.annotation runtime Lcom/tencent/liteav/base/annotations/JNINamespace;
value = "liteav::video"
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor$a;
}
.end annotation
# static fields
.field private static final TAG:Ljava/lang/String; = "TXCBeautyManager"
# instance fields
.field private final mBeautyFilters:Landroid/util/SparseArray;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroid/util/SparseArray<",
"Lcom/tencent/liteav/videobase/a/b;",
">;"
}
.end annotation
.end field
.field private mBeautyLevel:F
.field private mBeautyManagerStatusListener:Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor$a;
.field private final mBeautyStats:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.field private mBeautyStyle:I
.field private mCurrentBeautyFilter:Lcom/tencent/liteav/videobase/a/b;
.field private final mIsEnterPriseProEnabled:Z
.field private mIsPerformanceMode:Z
.field private final mMotionFilter:Lcom/tencent/liteav/beauty/b/l;
.field private final mReporter:Lcom/tencent/liteav/videobase/videobase/IVideoReporter;
.field private mRuddyLevel:F
.field private mSharpnessLevel:F
.field private mUserSetSharpnessLevel:F
.field private mWhitenessLevel:F
# direct methods
.method public constructor <init>(Landroid/content/Context;ZLcom/tencent/liteav/videobase/videobase/IVideoReporter;)V
.registers 5
.line 81
invoke-direct {p0}, Lcom/tencent/liteav/videobase/a/h;-><init>()V
const/4 p1, 0x0
.line 66
iput-object p1, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mCurrentBeautyFilter:Lcom/tencent/liteav/videobase/a/b;
const/4 p1, -0x1
.line 68
iput p1, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mBeautyStyle:I
const/4 p1, 0x0
.line 69
iput p1, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mBeautyLevel:F
.line 70
iput p1, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mWhitenessLevel:F
.line 71
iput p1, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mRuddyLevel:F
const v0, 0x3ecccccd # 0.4f
.line 72
iput v0, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mSharpnessLevel:F
const/4 v0, 0x1
.line 74
iput-boolean v0, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mIsPerformanceMode:Z
.line 75
iput p1, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mUserSetSharpnessLevel:F
.line 77
new-instance p1, Ljava/util/HashMap;
invoke-direct {p1}, Ljava/util/HashMap;-><init>()V
iput-object p1, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mBeautyStats:Ljava/util/Map;
.line 82
iput-object p3, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mReporter:Lcom/tencent/liteav/videobase/videobase/IVideoReporter;
.line 83
iput-boolean p2, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mIsEnterPriseProEnabled:Z
.line 84
new-instance p1, Landroid/util/SparseArray;
invoke-direct {p1}, Landroid/util/SparseArray;-><init>()V
iput-object p1, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mBeautyFilters:Landroid/util/SparseArray;
.line 1029
new-instance p1, Lcom/tencent/liteav/a/a$1;
invoke-direct {p1}, Lcom/tencent/liteav/a/a$1;-><init>()V
.line 85
iput-object p1, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mMotionFilter:Lcom/tencent/liteav/beauty/b/l;
return-void
.end method
.method private canBeSkipped(Lcom/tencent/liteav/videobase/a/b;)Z
.registers 2
if-nez p1, :cond_4
const/4 p1, 0x1
return p1
.line 339
:cond_4
invoke-virtual {p1}, Lcom/tencent/liteav/videobase/a/b;->canBeSkipped()Z
move-result p1
return p1
.end method
.method private getSharpnessLevel()F
.registers 4
.line 449
iget v0, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mUserSetSharpnessLevel:F
const/4 v1, 0x0
cmpl-float v2, v0, v1
if-eqz v2, :cond_8
goto :goto_21
.line 452
:cond_8
iget-boolean v0, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mIsPerformanceMode:Z
if-nez v0, :cond_20
iget-object v0, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mOutputSize:Lcom/tencent/liteav/base/util/Size;
iget v0, v0, Lcom/tencent/liteav/base/util/Size;->width:I
iget-object v2, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mOutputSize:Lcom/tencent/liteav/base/util/Size;
iget v2, v2, Lcom/tencent/liteav/base/util/Size;->height:I
invoke-static {v0, v2}, Ljava/lang/Math;->min(II)I
move-result v0
const/16 v2, 0x21c
if-lt v0, v2, :cond_20
const v0, 0x3ecccccd # 0.4f
goto :goto_21
:cond_20
move v0, v1
:goto_21
return v0
.end method
.method static synthetic lambda$setBeautyLevel$1(Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;F)V
.registers 8
.line 148
iget v1, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mBeautyStyle:I
iget v3, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mWhitenessLevel:F
iget v4, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mRuddyLevel:F
iget v5, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mSharpnessLevel:F
move-object v0, p0
move v2, p1
invoke-direct/range {v0 .. v5}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->updateBeautyInternal(IFFFF)V
const/4 v0, 0x0
cmpl-float v0, p1, v0
if-lez v0, :cond_17
.line 151
iget-object v0, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mReporter:Lcom/tencent/liteav/videobase/videobase/IVideoReporter;
invoke-static {v0}, Lcom/tencent/liteav/beauty/a;->b(Lcom/tencent/liteav/videobase/videobase/IVideoReporter;)V
:cond_17
const-string v0, "beautyLevel"
.line 153
invoke-direct {p0, v0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->updateStatsInternal(Ljava/lang/String;F)V
return-void
.end method
.method static synthetic lambda$setBeautyStyle$0(Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;I)V
.registers 8
.line 139
iget v2, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mBeautyLevel:F
iget v3, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mWhitenessLevel:F
iget v4, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mRuddyLevel:F
iget v5, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mSharpnessLevel:F
move-object v0, p0
move v1, p1
invoke-direct/range {v0 .. v5}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->updateBeautyInternal(IFFFF)V
return-void
.end method
.method static synthetic lambda$setPerformanceMode$6(Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;Z)V
.registers 2
.line 464
iput-boolean p1, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mIsPerformanceMode:Z
.line 465
invoke-direct {p0}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->updateSharpenLevelInternal()V
return-void
.end method
.method static synthetic lambda$setRuddyLevel$4(Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;F)V
.registers 8
.line 185
iget v1, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mBeautyStyle:I
iget v2, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mBeautyLevel:F
iget v3, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mWhitenessLevel:F
iget v5, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mSharpnessLevel:F
move-object v0, p0
move v4, p1
invoke-direct/range {v0 .. v5}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->updateBeautyInternal(IFFFF)V
const/4 v0, 0x0
cmpl-float v0, p1, v0
if-lez v0, :cond_17
.line 188
iget-object v0, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mReporter:Lcom/tencent/liteav/videobase/videobase/IVideoReporter;
invoke-static {v0}, Lcom/tencent/liteav/beauty/a;->e(Lcom/tencent/liteav/videobase/videobase/IVideoReporter;)V
:cond_17
const-string v0, "ruddyLevel"
.line 190
invoke-direct {p0, v0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->updateStatsInternal(Ljava/lang/String;F)V
return-void
.end method
.method static synthetic lambda$setSharpenLevel$3(Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;F)V
.registers 4
const/4 v0, 0x0
const v1, 0x3f666666 # 0.9f
.line 174
invoke-static {p1, v0, v1}, Lcom/tencent/liteav/base/util/h;->a(FFF)F
move-result p1
iput p1, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mUserSetSharpnessLevel:F
.line 175
new-instance p1, Ljava/lang/StringBuilder;
const-string v0, "mUserSetSharpnessLevel: "
invoke-direct {p1, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
iget v0, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mUserSetSharpnessLevel:F
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
const-string v0, "TXCBeautyManager"
invoke-static {v0, p1}, Lcom/tencent/liteav/base/util/LiteavLog;->d(Ljava/lang/String;Ljava/lang/String;)V
.line 176
invoke-direct {p0}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->updateSharpenLevelInternal()V
return-void
.end method
.method static synthetic lambda$setWhitenessLevel$2(Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;F)V
.registers 8
.line 162
iget v1, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mBeautyStyle:I
iget v2, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mBeautyLevel:F
iget v4, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mRuddyLevel:F
iget v5, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mSharpnessLevel:F
move-object v0, p0
move v3, p1
invoke-direct/range {v0 .. v5}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->updateBeautyInternal(IFFFF)V
const/4 v0, 0x0
cmpl-float v0, p1, v0
if-lez v0, :cond_17
.line 165
iget-object v0, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mReporter:Lcom/tencent/liteav/videobase/videobase/IVideoReporter;
invoke-static {v0}, Lcom/tencent/liteav/beauty/a;->c(Lcom/tencent/liteav/videobase/videobase/IVideoReporter;)V
:cond_17
const-string/jumbo v0, "whiteLevel"
.line 167
invoke-direct {p0, v0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->updateStatsInternal(Ljava/lang/String;F)V
return-void
.end method
.method static synthetic lambda$updateStatsOnDraw$5(Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;Ljava/lang/String;I)V
.registers 3
int-to-float p2, p2
.line 343
invoke-direct {p0, p1, p2}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->updateStatsInternal(Ljava/lang/String;F)V
return-void
.end method
.method private setScalableCosmeticTypeLevel(Lcom/tencent/liteav/beauty/b/l$a;I)V
.registers 6
const/4 v0, 0x2
new-array v0, v0, [Ljava/lang/Object;
const/4 v1, 0x0
aput-object p1, v0, v1
.line 347
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
const/4 v2, 0x1
aput-object v1, v0, v2
const-string v1, "TXCBeautyManager"
const-string v2, "setScalableCosmeticTypeLevel %s %d"
invoke-static {v1, v2, v0}, Lcom/tencent/liteav/base/util/LiteavLog;->d(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
.line 348
iget-boolean v0, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mIsEnterPriseProEnabled:Z
if-nez v0, :cond_1e
const-string p1, "need support EnterPrise above!!!"
.line 349
invoke-static {v1, p1}, Lcom/tencent/liteav/base/util/LiteavLog;->i(Ljava/lang/String;Ljava/lang/String;)V
return-void
:cond_1e
if-lez p2, :cond_25
.line 353
iget-object p2, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mReporter:Lcom/tencent/liteav/videobase/videobase/IVideoReporter;
invoke-static {p2, p1}, Lcom/tencent/liteav/beauty/a;->a(Lcom/tencent/liteav/videobase/videobase/IVideoReporter;Lcom/tencent/liteav/beauty/b/l$a;)V
:cond_25
return-void
.end method
.method private updateBeautyInternal(IFFFF)V
.registers 10
.line 360
iget-object v0, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mOutputSize:Lcom/tencent/liteav/base/util/Size;
iget v0, v0, Lcom/tencent/liteav/base/util/Size;->width:I
const/4 v1, -0x1
if-eq v0, v1, :cond_c5
iget-object v0, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mOutputSize:Lcom/tencent/liteav/base/util/Size;
iget v0, v0, Lcom/tencent/liteav/base/util/Size;->height:I
if-ne v0, v1, :cond_f
goto/16 :goto_c5
.line 364
:cond_f
iget v0, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mBeautyStyle:I
if-eq v0, p1, :cond_18
const-string v0, "beautyStyle"
.line 365
invoke-virtual {p0, v0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->updateStatsOnDraw(Ljava/lang/String;I)V
.line 368
:cond_18
iget-object v0, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mBeautyFilters:Landroid/util/SparseArray;
invoke-virtual {v0, p1}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/tencent/liteav/videobase/a/b;
const/4 v1, 0x1
if-nez v0, :cond_56
if-eqz p1, :cond_3c
if-eq p1, v1, :cond_36
const/4 v0, 0x2
if-eq p1, v0, :cond_30
.line 382
new-instance v0, Lcom/tencent/liteav/beauty/b/a;
invoke-direct {v0}, Lcom/tencent/liteav/beauty/b/a;-><init>()V
goto :goto_41
.line 378
:cond_30
new-instance v0, Lcom/tencent/liteav/beauty/b/a/a;
invoke-direct {v0}, Lcom/tencent/liteav/beauty/b/a/a;-><init>()V
goto :goto_41
.line 375
:cond_36
new-instance v0, Lcom/tencent/liteav/beauty/b/c/a;
invoke-direct {v0}, Lcom/tencent/liteav/beauty/b/c/a;-><init>()V
goto :goto_41
.line 372
:cond_3c
new-instance v0, Lcom/tencent/liteav/beauty/b/b/a;
invoke-direct {v0}, Lcom/tencent/liteav/beauty/b/b/a;-><init>()V
.line 385
:goto_41
iget-object v2, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mTexturePool:Lcom/tencent/liteav/videobase/frame/e;
invoke-virtual {v0, v2}, Lcom/tencent/liteav/videobase/a/b;->initialize(Lcom/tencent/liteav/videobase/frame/e;)V
.line 386
iget-object v2, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mOutputSize:Lcom/tencent/liteav/base/util/Size;
iget v2, v2, Lcom/tencent/liteav/base/util/Size;->width:I
iget-object v3, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mOutputSize:Lcom/tencent/liteav/base/util/Size;
iget v3, v3, Lcom/tencent/liteav/base/util/Size;->height:I
invoke-virtual {v0, v2, v3}, Lcom/tencent/liteav/videobase/a/b;->onOutputSizeChanged(II)V
.line 387
iget-object v2, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mBeautyFilters:Landroid/util/SparseArray;
invoke-virtual {v2, p1, v0}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V
.line 389
:cond_56
move-object v2, v0
check-cast v2, Lcom/tencent/liteav/beauty/b/b;
.line 390
invoke-interface {v2, p2}, Lcom/tencent/liteav/beauty/b/b;->a(F)V
.line 391
invoke-interface {v2, p4}, Lcom/tencent/liteav/beauty/b/b;->c(F)V
.line 392
invoke-interface {v2, p3}, Lcom/tencent/liteav/beauty/b/b;->b(F)V
.line 393
invoke-interface {v2, p5}, Lcom/tencent/liteav/beauty/b/b;->d(F)V
.line 395
iget v2, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mBeautyStyle:I
const/4 v3, 0x0
if-ne v2, p1, :cond_8c
iget v2, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mBeautyLevel:F
.line 396
invoke-static {v2, p2}, Lcom/tencent/liteav/videobase/utils/e;->a(FF)Z
move-result v2
if-eqz v2, :cond_8c
iget v2, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mWhitenessLevel:F
.line 397
invoke-static {v2, p3}, Lcom/tencent/liteav/videobase/utils/e;->a(FF)Z
move-result v2
if-eqz v2, :cond_8c
iget v2, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mRuddyLevel:F
.line 398
invoke-static {v2, p4}, Lcom/tencent/liteav/videobase/utils/e;->a(FF)Z
move-result v2
if-eqz v2, :cond_8c
iget v2, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mSharpnessLevel:F
.line 399
invoke-static {v2, p5}, Lcom/tencent/liteav/videobase/utils/e;->a(FF)Z
move-result v2
if-eqz v2, :cond_8c
move v2, v1
goto :goto_8d
:cond_8c
move v2, v3
:goto_8d
if-nez v2, :cond_c5
.line 401
iput p1, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mBeautyStyle:I
.line 402
iput p2, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mBeautyLevel:F
.line 403
iput p3, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mWhitenessLevel:F
.line 404
iput p4, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mRuddyLevel:F
.line 405
iput p5, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mSharpnessLevel:F
.line 407
invoke-virtual {p0}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->removeAllFilterAndInterceptor()V
const/4 p1, 0x0
.line 408
iput-object p1, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mCurrentBeautyFilter:Lcom/tencent/liteav/videobase/a/b;
.line 411
iget p1, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mBeautyLevel:F
invoke-virtual {p0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->isLessOrEqualZero(F)Z
move-result p1
if-eqz p1, :cond_b8
iget p1, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mRuddyLevel:F
.line 412
invoke-virtual {p0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->isLessOrEqualZero(F)Z
move-result p1
if-eqz p1, :cond_b8
iget p1, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mWhitenessLevel:F
invoke-virtual {p0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->isLessOrEqualZero(F)Z
move-result p1
if-eqz p1, :cond_b8
goto :goto_b9
:cond_b8
move v1, v3
:goto_b9
if-nez v1, :cond_c0
.line 414
invoke-virtual {p0, v0}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->addFilter(Lcom/tencent/liteav/videobase/a/b;)V
.line 415
iput-object v0, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mCurrentBeautyFilter:Lcom/tencent/liteav/videobase/a/b;
.line 417
:cond_c0
iget-object p1, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mMotionFilter:Lcom/tencent/liteav/beauty/b/l;
invoke-virtual {p0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->addFilter(Lcom/tencent/liteav/videobase/a/b;)V
:cond_c5
:goto_c5
return-void
.end method
.method private updateSharpenLevelInternal()V
.registers 8
.line 470
invoke-direct {p0}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->getSharpnessLevel()F
move-result v6
.line 471
invoke-static {v6}, Ljava/lang/String;->valueOf(F)Ljava/lang/String;
move-result-object v0
const-string v1, "sharpnessLevel: "
invoke-virtual {v1, v0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
const-string v1, "TXCBeautyManager"
invoke-static {v1, v0}, Lcom/tencent/liteav/base/util/LiteavLog;->d(Ljava/lang/String;Ljava/lang/String;)V
.line 472
iget v1, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mBeautyStyle:I
iget v2, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mBeautyLevel:F
iget v3, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mWhitenessLevel:F
iget v4, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mRuddyLevel:F
move-object v0, p0
move v5, v6
invoke-direct/range {v0 .. v5}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->updateBeautyInternal(IFFFF)V
const/4 v0, 0x0
cmpl-float v0, v6, v0
if-lez v0, :cond_2a
.line 475
iget-object v0, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mReporter:Lcom/tencent/liteav/videobase/videobase/IVideoReporter;
invoke-static {v0}, Lcom/tencent/liteav/beauty/a;->d(Lcom/tencent/liteav/videobase/videobase/IVideoReporter;)V
:cond_2a
return-void
.end method
.method private updateStatsInternal(Ljava/lang/String;F)V
.registers 5
.line 422
iget-object v0, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mBeautyStats:Ljava/util/Map;
invoke-static {p2}, Ljava/lang/String;->valueOf(F)Ljava/lang/String;
move-result-object p2
invoke-interface {v0, p1, p2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 423
iget-object p1, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mBeautyManagerStatusListener:Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor$a;
if-nez p1, :cond_e
return-void
.line 427
:cond_e
new-instance p1, Ljava/lang/StringBuilder;
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
.line 428
iget-object p2, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mBeautyStats:Ljava/util/Map;
invoke-interface {p2}, Ljava/util/Map;->entrySet()Ljava/util/Set;
move-result-object p2
invoke-interface {p2}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object p2
:goto_1d
invoke-interface {p2}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_46
invoke-interface {p2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/util/Map$Entry;
.line 429
invoke-interface {v0}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/String;
invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, ":"
invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/String;
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v0, " "
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
goto :goto_1d
.line 431
:cond_46
new-instance p2, Ljava/lang/StringBuilder;
const-string/jumbo v0, "{"
invoke-direct {p2, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string/jumbo p1, "}"
invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
.line 432
iget-object p2, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mBeautyManagerStatusListener:Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor$a;
invoke-interface {p2, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor$a;->onBeautyStatsChanged(Ljava/lang/String;)V
return-void
.end method
# virtual methods
.method public canBeSkipped()Z
.registers 2
.line 332
iget-object v0, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mCurrentBeautyFilter:Lcom/tencent/liteav/videobase/a/b;
invoke-direct {p0, v0}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->canBeSkipped(Lcom/tencent/liteav/videobase/a/b;)Z
move-result v0
if-eqz v0, :cond_12
iget-object v0, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mMotionFilter:Lcom/tencent/liteav/beauty/b/l;
invoke-virtual {v0}, Lcom/tencent/liteav/beauty/b/l;->canBeSkipped()Z
move-result v0
if-eqz v0, :cond_12
const/4 v0, 0x1
return v0
:cond_12
const/4 v0, 0x0
return v0
.end method
.method public onInit(Lcom/tencent/liteav/videobase/frame/e;)V
.registers 8
.line 90
invoke-super {p0, p1}, Lcom/tencent/liteav/videobase/a/h;->onInit(Lcom/tencent/liteav/videobase/frame/e;)V
.line 91
iget-object v0, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mMotionFilter:Lcom/tencent/liteav/beauty/b/l;
invoke-virtual {v0, p1}, Lcom/tencent/liteav/beauty/b/l;->initialize(Lcom/tencent/liteav/videobase/frame/e;)V
.line 92
iget p1, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mBeautyStyle:I
const/4 v0, -0x1
if-ne p1, v0, :cond_e
const/4 p1, 0x0
:cond_e
move v1, p1
iget v2, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mBeautyLevel:F
iget v3, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mWhitenessLevel:F
iget v4, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mRuddyLevel:F
iget v5, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mSharpnessLevel:F
move-object v0, p0
invoke-direct/range {v0 .. v5}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->updateBeautyInternal(IFFFF)V
return-void
.end method
.method public onOutputSizeChanged(II)V
.registers 10
.line 98
invoke-super {p0, p1, p2}, Lcom/tencent/liteav/videobase/a/h;->onOutputSizeChanged(II)V
.line 99
iget-object v0, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mMotionFilter:Lcom/tencent/liteav/beauty/b/l;
invoke-virtual {v0, p1, p2}, Lcom/tencent/liteav/beauty/b/l;->onOutputSizeChanged(II)V
.line 100
invoke-direct {p0}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->getSharpnessLevel()F
move-result v6
const/4 v0, 0x0
move v1, v0
.line 101
:goto_e
iget-object v2, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mBeautyFilters:Landroid/util/SparseArray;
invoke-virtual {v2}, Landroid/util/SparseArray;->size()I
move-result v2
if-ge v1, v2, :cond_2d
.line 102
iget-object v2, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mBeautyFilters:Landroid/util/SparseArray;
invoke-virtual {v2, v1}, Landroid/util/SparseArray;->valueAt(I)Ljava/lang/Object;
move-result-object v2
check-cast v2, Lcom/tencent/liteav/videobase/a/b;
.line 103
invoke-virtual {v2, p1, p2}, Lcom/tencent/liteav/videobase/a/b;->onOutputSizeChanged(II)V
.line 104
instance-of v3, v2, Lcom/tencent/liteav/beauty/b/b;
if-eqz v3, :cond_2a
.line 105
check-cast v2, Lcom/tencent/liteav/beauty/b/b;
.line 106
invoke-interface {v2, v6}, Lcom/tencent/liteav/beauty/b/b;->d(F)V
:cond_2a
add-int/lit8 v1, v1, 0x1
goto :goto_e
.line 109
:cond_2d
iget p1, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mBeautyStyle:I
const/4 p2, -0x1
if-ne p1, p2, :cond_34
move v2, v0
goto :goto_35
:cond_34
move v2, p1
:goto_35
iget v3, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mBeautyLevel:F
iget v4, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mWhitenessLevel:F
iget v5, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mRuddyLevel:F
move-object v1, p0
invoke-direct/range {v1 .. v6}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->updateBeautyInternal(IFFFF)V
return-void
.end method
.method public onUninit()V
.registers 3
.line 115
invoke-super {p0}, Lcom/tencent/liteav/videobase/a/h;->onUninit()V
.line 116
iget-object v0, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mMotionFilter:Lcom/tencent/liteav/beauty/b/l;
invoke-virtual {v0}, Lcom/tencent/liteav/beauty/b/l;->uninitialize()V
const/4 v0, 0x0
.line 117
:goto_9
iget-object v1, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mBeautyFilters:Landroid/util/SparseArray;
invoke-virtual {v1}, Landroid/util/SparseArray;->size()I
move-result v1
if-ge v0, v1, :cond_1f
.line 118
iget-object v1, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mBeautyFilters:Landroid/util/SparseArray;
invoke-virtual {v1, v0}, Landroid/util/SparseArray;->valueAt(I)Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/tencent/liteav/videobase/a/b;
.line 119
invoke-virtual {v1}, Lcom/tencent/liteav/videobase/a/b;->uninitialize()V
add-int/lit8 v0, v0, 0x1
goto :goto_9
:cond_1f
return-void
.end method
.method public setAIDetectListener(Lcom/tencent/liteav/videobase/base/a;)V
.registers 2
return-void
.end method
.method public setBeautyLevel(F)V
.registers 4
const/4 v0, 0x0
const/high16 v1, 0x3f800000 # 1.0f
.line 145
invoke-static {p1, v0, v1}, Lcom/tencent/liteav/base/util/h;->a(FFF)F
move-result v0
.line 146
invoke-static {p1}, Ljava/lang/String;->valueOf(F)Ljava/lang/String;
move-result-object p1
const-string v1, "setBeautyLevel beautyLevel:"
invoke-virtual {v1, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
const-string v1, "TXCBeautyManager"
invoke-static {v1, p1}, Lcom/tencent/liteav/base/util/LiteavLog;->d(Ljava/lang/String;Ljava/lang/String;)V
.line 147
invoke-static {p0, v0}, Lcom/tencent/liteav/videoproducer/preprocessor/b;->a(Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;F)Ljava/lang/Runnable;
move-result-object p1
invoke-virtual {p0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->runOnDraw(Ljava/lang/Runnable;)V
return-void
.end method
.method public setBeautyManagerStatusListener(Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor$a;)V
.registers 2
.line 128
iput-object p1, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mBeautyManagerStatusListener:Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor$a;
return-void
.end method
.method public setBeautyStyle(I)V
.registers 4
.line 137
invoke-static {p1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object v0
const-string v1, "setBeautyStyle beautyStyle:"
invoke-virtual {v1, v0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
const-string v1, "TXCBeautyManager"
invoke-static {v1, v0}, Lcom/tencent/liteav/base/util/LiteavLog;->d(Ljava/lang/String;Ljava/lang/String;)V
.line 138
invoke-static {p0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/a;->a(Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;I)Ljava/lang/Runnable;
move-result-object p1
invoke-virtual {p0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->runOnDraw(Ljava/lang/Runnable;)V
return-void
.end method
.method public setChinLevel(I)V
.registers 3
.line 214
sget-object v0, Lcom/tencent/liteav/beauty/b/l$a;->f:Lcom/tencent/liteav/beauty/b/l$a;
invoke-direct {p0, v0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->setScalableCosmeticTypeLevel(Lcom/tencent/liteav/beauty/b/l$a;I)V
const-string v0, "chinLevel"
.line 215
invoke-virtual {p0, v0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->updateStatsOnDraw(Ljava/lang/String;I)V
return-void
.end method
.method public setEyeAngleLevel(I)V
.registers 3
.line 281
sget-object v0, Lcom/tencent/liteav/beauty/b/l$a;->j:Lcom/tencent/liteav/beauty/b/l$a;
invoke-direct {p0, v0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->setScalableCosmeticTypeLevel(Lcom/tencent/liteav/beauty/b/l$a;I)V
const-string v0, "eyeAngleLevel"
.line 282
invoke-virtual {p0, v0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->updateStatsOnDraw(Ljava/lang/String;I)V
return-void
.end method
.method public setEyeDistanceLevel(I)V
.registers 3
.line 275
sget-object v0, Lcom/tencent/liteav/beauty/b/l$a;->i:Lcom/tencent/liteav/beauty/b/l$a;
invoke-direct {p0, v0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->setScalableCosmeticTypeLevel(Lcom/tencent/liteav/beauty/b/l$a;I)V
const-string v0, "eyeDistanceLevel"
.line 276
invoke-virtual {p0, v0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->updateStatsOnDraw(Ljava/lang/String;I)V
return-void
.end method
.method public setEyeLightenLevel(I)V
.registers 3
.line 238
sget-object v0, Lcom/tencent/liteav/beauty/b/l$a;->s:Lcom/tencent/liteav/beauty/b/l$a;
invoke-direct {p0, v0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->setScalableCosmeticTypeLevel(Lcom/tencent/liteav/beauty/b/l$a;I)V
const-string v0, "eyeLightenLevel"
.line 239
invoke-virtual {p0, v0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->updateStatsOnDraw(Ljava/lang/String;I)V
return-void
.end method
.method public setEyeScaleLevel(I)V
.registers 3
.line 196
sget-object v0, Lcom/tencent/liteav/beauty/b/l$a;->b:Lcom/tencent/liteav/beauty/b/l$a;
invoke-direct {p0, v0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->setScalableCosmeticTypeLevel(Lcom/tencent/liteav/beauty/b/l$a;I)V
const-string v0, "eyeBigScale"
.line 197
invoke-virtual {p0, v0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->updateStatsOnDraw(Ljava/lang/String;I)V
return-void
.end method
.method public setFaceBeautyLevel(I)V
.registers 3
.line 311
sget-object v0, Lcom/tencent/liteav/beauty/b/l$a;->r:Lcom/tencent/liteav/beauty/b/l$a;
invoke-direct {p0, v0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->setScalableCosmeticTypeLevel(Lcom/tencent/liteav/beauty/b/l$a;I)V
const-string v0, "faceBeautyLevel"
.line 312
invoke-virtual {p0, v0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->updateStatsOnDraw(Ljava/lang/String;I)V
return-void
.end method
.method public setFaceNarrowLevel(I)V
.registers 3
.line 226
sget-object v0, Lcom/tencent/liteav/beauty/b/l$a;->e:Lcom/tencent/liteav/beauty/b/l$a;
invoke-direct {p0, v0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->setScalableCosmeticTypeLevel(Lcom/tencent/liteav/beauty/b/l$a;I)V
const-string v0, "faceNarrowLevel"
.line 227
invoke-virtual {p0, v0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->updateStatsOnDraw(Ljava/lang/String;I)V
return-void
.end method
.method public setFaceShortLevel(I)V
.registers 3
.line 220
sget-object v0, Lcom/tencent/liteav/beauty/b/l$a;->d:Lcom/tencent/liteav/beauty/b/l$a;
invoke-direct {p0, v0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->setScalableCosmeticTypeLevel(Lcom/tencent/liteav/beauty/b/l$a;I)V
const-string v0, "faceShortLevel"
.line 221
invoke-virtual {p0, v0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->updateStatsOnDraw(Ljava/lang/String;I)V
return-void
.end method
.method public setFaceSlimLevel(I)V
.registers 3
.line 202
sget-object v0, Lcom/tencent/liteav/beauty/b/l$a;->a:Lcom/tencent/liteav/beauty/b/l$a;
invoke-direct {p0, v0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->setScalableCosmeticTypeLevel(Lcom/tencent/liteav/beauty/b/l$a;I)V
const-string v0, "faceSlimLevel"
.line 203
invoke-virtual {p0, v0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->updateStatsOnDraw(Ljava/lang/String;I)V
return-void
.end method
.method public setFaceVLevel(I)V
.registers 3
.line 208
sget-object v0, Lcom/tencent/liteav/beauty/b/l$a;->c:Lcom/tencent/liteav/beauty/b/l$a;
invoke-direct {p0, v0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->setScalableCosmeticTypeLevel(Lcom/tencent/liteav/beauty/b/l$a;I)V
const-string v0, "faceVLevel"
.line 209
invoke-virtual {p0, v0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->updateStatsOnDraw(Ljava/lang/String;I)V
return-void
.end method
.method public setForeheadLevel(I)V
.registers 3
.line 269
sget-object v0, Lcom/tencent/liteav/beauty/b/l$a;->h:Lcom/tencent/liteav/beauty/b/l$a;
invoke-direct {p0, v0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->setScalableCosmeticTypeLevel(Lcom/tencent/liteav/beauty/b/l$a;I)V
const-string v0, "foreheadLevel"
.line 270
invoke-virtual {p0, v0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->updateStatsOnDraw(Ljava/lang/String;I)V
return-void
.end method
.method public setHomeOrientation(I)V
.registers 2
return-void
.end method
.method public setLipsThicknessLevel(I)V
.registers 3
.line 305
sget-object v0, Lcom/tencent/liteav/beauty/b/l$a;->n:Lcom/tencent/liteav/beauty/b/l$a;
invoke-direct {p0, v0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->setScalableCosmeticTypeLevel(Lcom/tencent/liteav/beauty/b/l$a;I)V
const-string v0, "lipsThicknessLevel"
.line 306
invoke-virtual {p0, v0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->updateStatsOnDraw(Ljava/lang/String;I)V
return-void
.end method
.method public setMotionMute(Z)V
.registers 3
.line 326
invoke-static {p1}, Ljava/lang/String;->valueOf(Z)Ljava/lang/String;
move-result-object p1
const-string v0, "setMotionMute motionMute:"
invoke-virtual {v0, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
const-string v0, "TXCBeautyManager"
invoke-static {v0, p1}, Lcom/tencent/liteav/base/util/LiteavLog;->d(Ljava/lang/String;Ljava/lang/String;)V
return-void
.end method
.method public setMotionTmpl(Ljava/lang/String;)V
.registers 4
.line 317
invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
const-string v1, "setMotionTmpl tmplPath:"
invoke-virtual {v1, v0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
const-string v1, "TXCBeautyManager"
invoke-static {v1, v0}, Lcom/tencent/liteav/base/util/LiteavLog;->d(Ljava/lang/String;Ljava/lang/String;)V
.line 319
invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result p1
if-nez p1, :cond_1a
.line 320
iget-object p1, p0, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->mReporter:Lcom/tencent/liteav/videobase/videobase/IVideoReporter;
invoke-static {p1}, Lcom/tencent/liteav/beauty/a;->g(Lcom/tencent/liteav/videobase/videobase/IVideoReporter;)V
:cond_1a
return-void
.end method
.method public setMouthShapeLevel(I)V
.registers 3
.line 287
sget-object v0, Lcom/tencent/liteav/beauty/b/l$a;->k:Lcom/tencent/liteav/beauty/b/l$a;
invoke-direct {p0, v0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->setScalableCosmeticTypeLevel(Lcom/tencent/liteav/beauty/b/l$a;I)V
const-string v0, "mouthShapeLevel"
.line 288
invoke-virtual {p0, v0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->updateStatsOnDraw(Ljava/lang/String;I)V
return-void
.end method
.method public setNosePositionLevel(I)V
.registers 3
.line 299
sget-object v0, Lcom/tencent/liteav/beauty/b/l$a;->m:Lcom/tencent/liteav/beauty/b/l$a;
invoke-direct {p0, v0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->setScalableCosmeticTypeLevel(Lcom/tencent/liteav/beauty/b/l$a;I)V
const-string v0, "nosePositionLevel"
.line 300
invoke-virtual {p0, v0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->updateStatsOnDraw(Ljava/lang/String;I)V
return-void
.end method
.method public setNoseSlimLevel(I)V
.registers 3
.line 232
sget-object v0, Lcom/tencent/liteav/beauty/b/l$a;->g:Lcom/tencent/liteav/beauty/b/l$a;
invoke-direct {p0, v0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->setScalableCosmeticTypeLevel(Lcom/tencent/liteav/beauty/b/l$a;I)V
const-string v0, "noseSlimLevel"
.line 233
invoke-virtual {p0, v0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->updateStatsOnDraw(Ljava/lang/String;I)V
return-void
.end method
.method public setNoseWingLevel(I)V
.registers 3
.line 293
sget-object v0, Lcom/tencent/liteav/beauty/b/l$a;->l:Lcom/tencent/liteav/beauty/b/l$a;
invoke-direct {p0, v0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->setScalableCosmeticTypeLevel(Lcom/tencent/liteav/beauty/b/l$a;I)V
const-string v0, "noseWingLevel"
.line 294
invoke-virtual {p0, v0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->updateStatsOnDraw(Ljava/lang/String;I)V
return-void
.end method
.method public setPerformanceMode(Z)V
.registers 4
.line 462
invoke-static {p1}, Ljava/lang/String;->valueOf(Z)Ljava/lang/String;
move-result-object v0
const-string v1, "setPerformanceMode: "
invoke-virtual {v1, v0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
const-string v1, "TXCBeautyManager"
invoke-static {v1, v0}, Lcom/tencent/liteav/base/util/LiteavLog;->d(Ljava/lang/String;Ljava/lang/String;)V
.line 463
invoke-static {p0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/g;->a(Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;Z)Ljava/lang/Runnable;
move-result-object p1
invoke-virtual {p0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->runOnDraw(Ljava/lang/Runnable;)V
return-void
.end method
.method public setPounchRemoveLevel(I)V
.registers 3
.line 256
sget-object v0, Lcom/tencent/liteav/beauty/b/l$a;->v:Lcom/tencent/liteav/beauty/b/l$a;
invoke-direct {p0, v0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->setScalableCosmeticTypeLevel(Lcom/tencent/liteav/beauty/b/l$a;I)V
const-string v0, "pounchRemoveLevel"
.line 257
invoke-virtual {p0, v0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->updateStatsOnDraw(Ljava/lang/String;I)V
return-void
.end method
.method public setRuddyLevel(F)V
.registers 4
const/4 v0, 0x0
const/high16 v1, 0x3f800000 # 1.0f
.line 182
invoke-static {p1, v0, v1}, Lcom/tencent/liteav/base/util/h;->a(FFF)F
move-result v0
.line 183
invoke-static {p1}, Ljava/lang/String;->valueOf(F)Ljava/lang/String;
move-result-object p1
const-string v1, "setRuddyLevel ruddyLevel:"
invoke-virtual {v1, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
const-string v1, "TXCBeautyManager"
invoke-static {v1, p1}, Lcom/tencent/liteav/base/util/LiteavLog;->d(Ljava/lang/String;Ljava/lang/String;)V
.line 184
invoke-static {p0, v0}, Lcom/tencent/liteav/videoproducer/preprocessor/e;->a(Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;F)Ljava/lang/Runnable;
move-result-object p1
invoke-virtual {p0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->runOnDraw(Ljava/lang/Runnable;)V
return-void
.end method
.method public setSharpenLevel(F)V
.registers 2
.line 173
invoke-static {p0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/d;->a(Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;F)Ljava/lang/Runnable;
move-result-object p1
invoke-virtual {p0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->runOnDraw(Ljava/lang/Runnable;)V
return-void
.end method
.method public setSmileLinesRemoveLevel(I)V
.registers 3
.line 262
sget-object v0, Lcom/tencent/liteav/beauty/b/l$a;->w:Lcom/tencent/liteav/beauty/b/l$a;
invoke-direct {p0, v0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->setScalableCosmeticTypeLevel(Lcom/tencent/liteav/beauty/b/l$a;I)V
const-string v0, "smileLinesRemoveLevel"
.line 264
invoke-virtual {p0, v0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->updateStatsOnDraw(Ljava/lang/String;I)V
return-void
.end method
.method public setToothWhitenLevel(I)V
.registers 3
.line 244
sget-object v0, Lcom/tencent/liteav/beauty/b/l$a;->t:Lcom/tencent/liteav/beauty/b/l$a;
invoke-direct {p0, v0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->setScalableCosmeticTypeLevel(Lcom/tencent/liteav/beauty/b/l$a;I)V
const-string v0, "toothWhitenLevel"
.line 245
invoke-virtual {p0, v0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->updateStatsOnDraw(Ljava/lang/String;I)V
return-void
.end method
.method public setWhitenessLevel(F)V
.registers 4
const/4 v0, 0x0
const/high16 v1, 0x3f800000 # 1.0f
.line 159
invoke-static {p1, v0, v1}, Lcom/tencent/liteav/base/util/h;->a(FFF)F
move-result v0
.line 160
invoke-static {p1}, Ljava/lang/String;->valueOf(F)Ljava/lang/String;
move-result-object p1
const-string v1, "setWhitenessLevel whitenessLevel:"
invoke-virtual {v1, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
const-string v1, "TXCBeautyManager"
invoke-static {v1, p1}, Lcom/tencent/liteav/base/util/LiteavLog;->d(Ljava/lang/String;Ljava/lang/String;)V
.line 161
invoke-static {p0, v0}, Lcom/tencent/liteav/videoproducer/preprocessor/c;->a(Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;F)Ljava/lang/Runnable;
move-result-object p1
invoke-virtual {p0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->runOnDraw(Ljava/lang/Runnable;)V
return-void
.end method
.method public setWrinkleRemoveLevel(I)V
.registers 3
.line 250
sget-object v0, Lcom/tencent/liteav/beauty/b/l$a;->u:Lcom/tencent/liteav/beauty/b/l$a;
invoke-direct {p0, v0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->setScalableCosmeticTypeLevel(Lcom/tencent/liteav/beauty/b/l$a;I)V
const-string/jumbo v0, "wrinkleRemoveLevel"
.line 251
invoke-virtual {p0, v0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->updateStatsOnDraw(Ljava/lang/String;I)V
return-void
.end method
.method public updateStatsOnDraw(Ljava/lang/String;I)V
.registers 3
.line 343
invoke-static {p0, p1, p2}, Lcom/tencent/liteav/videoproducer/preprocessor/f;->a(Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;Ljava/lang/String;I)Ljava/lang/Runnable;
move-result-object p1
invoke-virtual {p0, p1}, Lcom/tencent/liteav/videoproducer/preprocessor/BeautyProcessor;->runOnDraw(Ljava/lang/Runnable;)V
return-void
.end method