Picsart v24.6版本的 MD5 值为:21a61631d94e54da68d2ad9268b8b9d9
以下内容为反编译后的 EffectLoader.java 源代码,内容仅作参考
package com.picsart.create.selection.factory;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.drawable.BitmapDrawable;
import android.text.TextUtils;
import android.webkit.URLUtil;
import com.facebook.drawee.view.SimpleDraweeView;
import com.google.android.gms.ads.RequestConfiguration;
import com.google.android.gms.tasks.CancellationToken;
import com.google.android.gms.tasks.CancellationTokenSource;
import com.google.android.gms.tasks.Continuation;
import com.google.android.gms.tasks.Task;
import com.google.android.gms.tasks.TaskCompletionSource;
import com.google.android.gms.tasks.Tasks;
import com.google.android.gms.vision.barcode.Barcode;
import com.picsart.common.ItemType;
import com.picsart.create.selection.ItemProvider;
import com.picsart.create.selection.domain.EffectModel;
import com.picsart.file.downloader.FileDownloaderAPI;
import com.picsart.imageloader.b;
import com.picsart.imageloader.request.b;
import com.picsart.koin.PAKoinHolder;
import com.picsart.logger.PALog;
import com.picsart.picore.effects.FXBuilderFactory;
import com.picsart.picore.effects.resources.FXResourceDescriptor;
import com.picsart.picore.effects.resources.FXResourceType;
import com.picsart.picore.jninative.imageing.image.ImageBufferARGB8888;
import com.picsart.picore.x.RXGPUSession;
import com.picsart.studio.R;
import com.picsart.studio.apiv3.model.Settings;
import com.socialin.android.photo.effectsnew.model.EffectItem;
import io.jsonwebtoken.JwtParser;
import java.io.File;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import kotlin.Metadata;
import kotlin.Pair;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Intrinsics;
import myobfuscated.je0.h0;
import myobfuscated.je0.w;
import myobfuscated.je0.x;
import myobfuscated.t81.n;
import myobfuscated.ud0.o;
import org.jetbrains.annotations.NotNull;
import retrofit2.Call;
public abstract class EffectLoader {
@NotNull
public static final Exception k = new Exception("no_network_error");
public static final String l = EffectLoader.class.getSimpleName();
@NotNull
public static final Map<String, Object> m = kotlin.collections.d.i(new Pair("Water", new Object()), new Pair("RadialBlur", new Object()), new Pair("FocalZoom", new Object()), new Pair("MotionBlur", new Object()), new Pair("Holgaart4", new Object()), new Pair("bg_blur", new Object()));
@NotNull
public final Context a;
@NotNull
public final HashMap b;
public Bitmap c;
public myobfuscated.t81.k d;
public RXGPUSession e;
@NotNull
public final CancellationTokenSource f;
@NotNull
public final HashMap g;
@NotNull
public final String h;
@NotNull
public final myobfuscated.ik2.h i;
@NotNull
public final myobfuscated.ik2.h j;
@Metadata(d1 = {"\u00002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\b\u0007\u0018\u0000*\u0004\b\u0000\u0010\u00012*\u0012\u0006\u0012\u0004\u0018\u00010\u0003\u0012\u001e\u0012\u001c\u0012\f\u0012\n\u0012\u0004\u0012\u00028\u0000\u0018\u00010\u0005\u0012\n\u0012\b\u0012\u0002\b\u0003\u0018\u00010\u00060\u00040\u0002B\u0007¢\u0006\u0004\b\u0014\u0010\u0015J$\u0010\t\u001a\u00020\u00032\u000e\u0010\u0007\u001a\n\u0012\u0004\u0012\u00028\u0000\u0018\u00010\u00052\f\u0010\b\u001a\b\u0012\u0002\b\u0003\u0018\u00010\u0006J!\u0010\r\u001a\u00020\f2\b\u0010\n\u001a\u0004\u0018\u00010\u00032\b\u0010\u000b\u001a\u0004\u0018\u00018\u0000¢\u0006\u0004\b\r\u0010\u000eJ\u001c\u0010\u0012\u001a\u00020\f2\b\u0010\n\u001a\u0004\u0018\u00010\u00032\n\u0010\u0011\u001a\u00060\u000fj\u0002`\u0010J\u0006\u0010\u0013\u001a\u00020\f¨\u0006\u0016"}, d2 = {"Lcom/picsart/create/selection/factory/EffectLoader$RequestTaskController;", RequestConfiguration.MAX_AD_CONTENT_RATING_T, "Ljava/util/HashMap;", "", "Lkotlin/Pair;", "Lmyobfuscated/x81/b;", "Lretrofit2/Call;", "taskCompletionSource", "call", "registerTask", "requestTag", "result", "", "setResult", "(Ljava/lang/String;Ljava/lang/Object;)V", "Ljava/lang/Exception;", "Lkotlin/Exception;", "e", "setError", "cancelPendingRequests", "<init>", "()V", "_editor_main_compileGlobalReleaseKotlin"}, k = 1, mv = {1, 9, 0})
public static final class RequestTaskController<T> extends HashMap<String, Pair<? extends myobfuscated.x81.b<T>, ? extends Call<?>>> {
public static final int $stable = 0;
public final void cancelPendingRequests() {
Task<T> task;
for (String str : keySet()) {
Pair pair = (Pair) get((Object) str);
if (pair != null) {
myobfuscated.x81.b bVar = (myobfuscated.x81.b) pair.getFirst();
if (bVar != null && (task = bVar.b.getTask()) != null && !task.isComplete()) {
bVar.a();
}
Call call = (Call) pair.getSecond();
if (call != null) {
call.cancel();
}
}
}
clear();
}
@Override
public final boolean containsKey(Object obj) {
if (obj == null || (obj instanceof String)) {
return containsKey((String) obj);
}
return false;
}
public boolean containsKey(String str) {
return super.containsKey((Object) str);
}
@Override
public final boolean containsValue(Object obj) {
if (obj instanceof Pair) {
return containsValue((Pair) obj);
}
return false;
}
public boolean containsValue(Pair<? extends myobfuscated.x81.b<Object>, ? extends Call<?>> pair) {
return super.containsValue((Object) pair);
}
@Override
public final Set<Map.Entry<String, Pair<myobfuscated.x81.b<T>, Call<?>>>> entrySet() {
return (Set<Map.Entry<String, Pair<myobfuscated.x81.b<T>, Call<?>>>>) getEntries();
}
@Override
public final Object get(Object obj) {
if (obj == null || (obj instanceof String)) {
return get((String) obj);
}
return null;
}
@Override
public final Pair<myobfuscated.x81.b<T>, Call<?>> get(Object obj) {
if (obj == null || (obj instanceof String)) {
return (Pair<myobfuscated.x81.b<T>, Call<?>>) get((String) obj);
}
return null;
}
public Pair<myobfuscated.x81.b<Object>, Call<?>> get(String str) {
return (Pair) super.get((Object) str);
}
public Set<Map.Entry<String, Pair<myobfuscated.x81.b<Object>, Call<?>>>> getEntries() {
return super.entrySet();
}
public Set<String> getKeys() {
return super.keySet();
}
@Override
public final Object getOrDefault(Object obj, Object obj2) {
return (obj == null || (obj instanceof String)) ? getOrDefault((String) obj, (Pair) obj2) : obj2;
}
public final Pair getOrDefault(Object obj, Pair pair) {
return (obj == null || (obj instanceof String)) ? getOrDefault((String) obj, (Pair<? extends myobfuscated.x81.b<Object>, ? extends Call<?>>) pair) : pair;
}
public Pair<myobfuscated.x81.b<Object>, Call<?>> getOrDefault(String str, Pair<? extends myobfuscated.x81.b<Object>, ? extends Call<?>> pair) {
return (Pair) super.getOrDefault((Object) str, (String) pair);
}
public int getSize() {
return super.size();
}
public Collection<Pair<myobfuscated.x81.b<Object>, Call<?>>> getValues() {
return super.values();
}
@Override
public final Set<String> keySet() {
return getKeys();
}
@NotNull
public final String registerTask(myobfuscated.x81.b<T> bVar, Call<?> call) {
String d = myobfuscated.a0.a.d("toString(...)");
put(d, new Pair(bVar, call));
return d;
}
@Override
public final Object remove(Object obj) {
if (obj == null || (obj instanceof String)) {
return remove((String) obj);
}
return null;
}
@Override
public final Pair<myobfuscated.x81.b<T>, Call<?>> remove(Object obj) {
if (obj == null || (obj instanceof String)) {
return (Pair<myobfuscated.x81.b<T>, Call<?>>) remove((String) obj);
}
return null;
}
public Pair<myobfuscated.x81.b<Object>, Call<?>> remove(String str) {
return (Pair) super.remove((Object) str);
}
@Override
public final boolean remove(Object obj, Object obj2) {
if ((obj == null || (obj instanceof String)) && (obj2 instanceof Pair)) {
return remove((String) obj, (Pair) obj2);
}
return false;
}
public boolean remove(String str, Pair<? extends myobfuscated.x81.b<Object>, ? extends Call<?>> pair) {
return super.remove((Object) str, (Object) pair);
}
public final void setError(String str, @NotNull Exception e) {
Intrinsics.checkNotNullParameter(e, "e");
Pair pair = (Pair) get((Object) str);
myobfuscated.x81.b bVar = pair != null ? (myobfuscated.x81.b) pair.getFirst() : null;
if (bVar != null) {
bVar.b.setException(e);
}
remove((Object) str);
}
public final void setResult(String str, T t) {
Pair pair = (Pair) get((Object) str);
myobfuscated.x81.b bVar = pair != null ? (myobfuscated.x81.b) pair.getFirst() : null;
if (bVar != null) {
bVar.b(t);
}
remove((Object) str);
}
@Override
public final int size() {
return getSize();
}
@Override
public final Collection<Pair<myobfuscated.x81.b<T>, Call<?>>> values() {
return (Collection<Pair<myobfuscated.x81.b<T>, Call<?>>>) getValues();
}
}
public class a {
public static final int[] a;
static {
int[] iArr = new int[FXResourceType.values().length];
try {
iArr[FXResourceType.FXResourceTypeFile.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
iArr[FXResourceType.FXResourceTypeImage.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
a = iArr;
}
}
public static final class b implements myobfuscated.me0.c {
public final EffectItem a;
public final EffectLoader b;
public final int c;
public final ItemProvider d;
public static final class a<TResult, TContinuationResult> implements Continuation {
public final EffectItem a;
public final ItemProvider b;
public final SimpleDraweeView c;
public final EffectLoader d;
public final int e;
public a(EffectItem effectItem, ItemProvider itemProvider, SimpleDraweeView simpleDraweeView, EffectLoader effectLoader, int i) {
this.a = effectItem;
this.b = itemProvider;
this.c = simpleDraweeView;
this.d = effectLoader;
this.e = i;
}
@Override
public final Object then(Task task) {
Intrinsics.checkNotNullParameter(task, "task");
boolean isComplete = task.isComplete();
SimpleDraweeView simpleDraweeView = this.c;
EffectItem effectItem = this.a;
if (isComplete && task.isSuccessful()) {
effectItem.setThumb(BitmapFactory.decodeFile((String) task.getResult()));
if (Intrinsics.c(this.b.a, simpleDraweeView.getTag())) {
simpleDraweeView.getHierarchy().t(R.drawable.round_corner_rect);
com.picsart.imageloader.a.b(simpleDraweeView, task.getResult(), null, 6);
}
} else {
EffectLoader effectLoader = this.d;
if (o.a(effectLoader.a)) {
simpleDraweeView.getHierarchy().t(R.drawable.round_corner_rect);
com.picsart.imageloader.a.b(simpleDraweeView, effectItem.getIcon(), null, 6);
} else {
String m = defpackage.j.m("thumbnail_", (this.e % 3) + 1);
Context context = effectLoader.a;
com.picsart.imageloader.a.b(simpleDraweeView, Integer.valueOf(context.getResources().getIdentifier(m, "drawable", context.getPackageName())), null, 6);
}
}
return null;
}
}
public b(EffectItem effectItem, EffectLoader effectLoader, int i, ItemProvider itemProvider) {
this.a = effectItem;
this.b = effectLoader;
this.c = i;
this.d = itemProvider;
}
@Override
public final void a(@NotNull SimpleDraweeView draweeView, Bitmap bitmap, int i, myobfuscated.yn1.b<Boolean> bVar, CancellationToken cancellationToken) {
Intrinsics.checkNotNullParameter(draweeView, "draweeView");
EffectItem effectItem = this.a;
Bitmap thumb = effectItem.getThumb();
EffectLoader effectLoader = this.b;
if (thumb != null) {
draweeView.getHierarchy().o(new BitmapDrawable(effectLoader.a.getResources(), effectItem.getThumb()), 1);
return;
}
Context context = effectLoader.a;
com.picsart.imageloader.a.b(draweeView, Integer.valueOf(context.getResources().getIdentifier(defpackage.j.m("thumbnail_", (this.c % 3) + 1), "drawable", context.getPackageName())), null, 6);
effectLoader.d(effectItem).continueWith(myobfuscated.td0.a.a, new a(this.a, this.d, draweeView, this.b, this.c));
}
}
public static final class c implements myobfuscated.vh0.c {
public final TaskCompletionSource<String> a;
public c(TaskCompletionSource<String> taskCompletionSource) {
this.a = taskCompletionSource;
}
@Override
public final void a(@NotNull myobfuscated.vh0.b request) {
Intrinsics.checkNotNullParameter(request, "request");
this.a.setResult(request.b);
}
@Override
public final void onFailure(@NotNull Exception exception) {
Intrinsics.checkNotNullParameter(exception, "exception");
this.a.setException(new Exception("Can't download icon"));
}
}
public EffectLoader(@NotNull Context context) {
Intrinsics.checkNotNullParameter(context, "context");
this.a = context;
this.b = new HashMap();
this.h = Settings.isChinaBuild() ? "meiease.cn" : "picsart.com";
this.i = kotlin.a.b(new Function0<String[]>() {
{
super(0);
}
@Override
public final String[] invoke() {
return EffectLoader.this.a.getAssets().list("effects/new_effects_json");
}
});
this.j = kotlin.a.b(new Function0<FileDownloaderAPI>() {
@Override
@NotNull
public final FileDownloaderAPI invoke() {
return (FileDownloaderAPI) ((myobfuscated.z31.d) PAKoinHolder.d(myobfuscated.qd0.a.a(), myobfuscated.z31.d.class, null, 12)).b(FileDownloaderAPI.class, myobfuscated.z31.b.a);
}
});
this.g = new HashMap();
this.f = new CancellationTokenSource();
}
@NotNull
public static Task e(@NotNull final String imageUrl) {
Intrinsics.checkNotNullParameter(imageUrl, "imageUrl");
final TaskCompletionSource taskCompletionSource = new TaskCompletionSource();
String TAG = l;
Intrinsics.checkNotNullExpressionValue(TAG, "TAG");
PALog.a(TAG, "download image " + imageUrl);
com.picsart.imageloader.c cVar = b.a.a;
if (cVar != null) {
b.a aVar = new b.a();
aVar.b = imageUrl;
aVar.e(new Function1<Throwable, Unit>() {
{
super(1);
}
@Override
public Unit invoke(Throwable th) {
invoke2(th);
return Unit.a;
}
public final void invoke2(Throwable th) {
String str = EffectLoader.l;
Intrinsics.checkNotNullExpressionValue(str, "access$getTAG$cp(...)");
PALog.a(str, "failed to download image");
taskCompletionSource.setException(new Exception("Failed to download image"));
}
}, new Function1<myobfuscated.b01.b, Unit>() {
{
super(1);
}
@Override
public Unit invoke(myobfuscated.b01.b bVar) {
invoke2(bVar);
return Unit.a;
}
public final void invoke2(@NotNull myobfuscated.b01.b result) {
Intrinsics.checkNotNullParameter(result, "result");
String str = EffectLoader.l;
Intrinsics.checkNotNullExpressionValue(str, "access$getTAG$cp(...)");
myobfuscated.a0.a.v("image downloaded: ", imageUrl, str);
taskCompletionSource.setResult(result.a);
}
});
aVar.i = -1;
cVar.a(aVar.a());
Task task = taskCompletionSource.getTask();
Intrinsics.checkNotNullExpressionValue(task, "getTask(...)");
return task;
}
throw new IllegalArgumentException("ImageLoader was not initialized!".toString());
}
public static void f(myobfuscated.le0.f fVar, Exception exc) {
if (((myobfuscated.z31.c) PAKoinHolder.d(myobfuscated.qd0.a.a(), myobfuscated.z31.c.class, null, 12)).isConnected()) {
if (fVar != null) {
fVar.c(exc);
}
} else if (fVar != null) {
fVar.c(k);
}
}
public static String l(String str) {
String str2;
if (str != null) {
str2 = str.substring(kotlin.text.d.G(str, '/', 0, 6) + 1);
Intrinsics.checkNotNullExpressionValue(str2, "this as java.lang.String).substring(startIndex)");
} else {
str2 = null;
}
int G = str2 != null ? kotlin.text.d.G(str2, JwtParser.SEPARATOR_CHAR, 0, 6) : -1;
if (str2 != null) {
if (G <= -1) {
G = str2.length();
}
String substring = str2.substring(0, G);
Intrinsics.checkNotNullExpressionValue(substring, "this as java.lang.String…ing(startIndex, endIndex)");
if (substring != null) {
return substring;
}
}
return "";
}
@NotNull
public myobfuscated.me0.c a(@NotNull EffectItem effectItem, @NotNull ItemProvider effectProvider, int i) {
Intrinsics.checkNotNullParameter(effectItem, "effectItem");
Intrinsics.checkNotNullParameter(effectProvider, "effectProvider");
return new b(effectItem, this, i, effectProvider);
}
@NotNull
public abstract myobfuscated.me0.d b(@NotNull EffectItem effectItem, @NotNull ItemProvider itemProvider);
public final Task<String> c(String str) {
Task<String> task;
String str2;
if (!URLUtil.isNetworkUrl(str)) {
String str3 = null;
if (str == null || !kotlin.text.d.w(str, ".", false)) {
str2 = null;
} else {
String substring = str.substring(0, kotlin.text.d.H(str, ".", 0, 6));
Intrinsics.checkNotNullExpressionValue(substring, "this as java.lang.String…ing(startIndex, endIndex)");
String substring2 = str.substring(kotlin.text.d.H(str, ".", 0, 6));
Intrinsics.checkNotNullExpressionValue(substring2, "this as java.lang.String).substring(startIndex)");
str2 = substring2;
str3 = substring;
}
myobfuscated.xl1.c cVar = myobfuscated.xl1.c.a;
if (str3 != null) {
str = str3;
}
String D = myobfuscated.sr.e.D(str);
if (str2 == null) {
str2 = "";
}
StringBuilder sb = new StringBuilder("https://effres.");
defpackage.j.z(sb, this.h, "/", "", "effects/res/");
str = defpackage.e.m(sb, D, str2);
}
HashMap hashMap = this.b;
if (!hashMap.containsKey(str) || (task = (Task) hashMap.get(str)) == null || (task.isComplete() && !task.isSuccessful())) {
Task<String> a2 = h0.a(this.a, str, l(str));
Intrinsics.checkNotNullExpressionValue(a2, "downloadResource(...)");
hashMap.put(str, a2);
return a2;
}
return task;
}
@NotNull
public final Task<String> d(@NotNull EffectItem effectItem) {
String str;
Intrinsics.checkNotNullParameter(effectItem, "effectItem");
TaskCompletionSource taskCompletionSource = new TaskCompletionSource();
String icon = effectItem.getIcon();
String absolutePath = this.a.getFilesDir().getAbsolutePath();
String str2 = File.separator;
String str3 = absolutePath + "effects" + str2 + effectItem.getEffectId() + str2;
String icon2 = effectItem.getIcon();
String str4 = "";
if (icon2 != null) {
str = icon2.substring(kotlin.text.d.H(effectItem.getIcon(), "/", 0, 6) + 1);
Intrinsics.checkNotNullExpressionValue(str, "this as java.lang.String).substring(startIndex)");
}
str = "";
?? obj = new Object();
obj.a = icon;
if (!str3.endsWith("/")) {
str3 = str3.concat("/");
}
StringBuilder p = defpackage.e.p(str3, str);
if (!TextUtils.isEmpty(icon)) {
if (icon.contains("?")) {
icon = icon.substring(0, icon.indexOf("?"));
}
if (icon.contains("/")) {
icon = icon.substring(icon.lastIndexOf("/"), icon.length());
}
if (icon.contains(".")) {
str4 = icon.substring(icon.lastIndexOf("."), icon.length());
}
}
p.append(str4);
obj.b = p.toString();
new myobfuscated.vh0.a(new c(taskCompletionSource), obj, (FileDownloaderAPI) this.j.getValue(), myobfuscated.qd0.a.a()).b();
Task<String> task = taskCompletionSource.getTask();
Intrinsics.checkNotNullExpressionValue(task, "getTask(...)");
return task;
}
@NotNull
public final Bitmap g() {
Bitmap bitmap = this.c;
if (bitmap != null) {
return bitmap;
}
Intrinsics.n("imageBitmap");
throw null;
}
@NotNull
public final myobfuscated.t81.k h() {
myobfuscated.t81.k kVar = this.d;
if (kVar != null) {
return kVar;
}
Intrinsics.n("inputImage");
throw null;
}
public abstract ItemType i();
@NotNull
public final Task<Object> j(@NotNull EffectItem effectItem) {
Intrinsics.checkNotNullParameter(effectItem, "effectItem");
String jsonName = effectItem.getJsonName();
if (jsonName == null) {
jsonName = "None";
}
return k(jsonName, effectItem.getEffectId());
}
@NotNull
public final Task<Object> k(@NotNull String jsonName, @NotNull String effectId) {
Intrinsics.checkNotNullParameter(jsonName, "jsonName");
Intrinsics.checkNotNullParameter(effectId, "effectId");
Task<Object> continueWithTask = Tasks.call(myobfuscated.td0.a.e(l), new w(effectId, this, jsonName)).continueWithTask(new com.picsart.create.selection.factory.b(this, 2, jsonName, effectId));
Intrinsics.checkNotNullExpressionValue(continueWithTask, "continueWithTask(...)");
return continueWithTask;
}
@NotNull
public final RXGPUSession m() {
RXGPUSession rXGPUSession = this.e;
if (rXGPUSession != null) {
return rXGPUSession;
}
Intrinsics.n("session");
throw null;
}
public final boolean n() {
return this.c != null;
}
@NotNull
public final ArrayList o(@NotNull EffectItem effectItem, @NotNull ArrayList resourceDescriptors, @NotNull ArrayList resources) {
Task<String> c2;
Intrinsics.checkNotNullParameter(effectItem, "effectItem");
Intrinsics.checkNotNullParameter(resourceDescriptors, "resourceDescriptors");
Intrinsics.checkNotNullParameter(resources, "resources");
ArrayList arrayList = new ArrayList();
int i = 0;
for (Object obj : resourceDescriptors) {
int i2 = i + 1;
if (i < 0) {
myobfuscated.jk2.o.m();
throw null;
}
FXResourceDescriptor fXResourceDescriptor = (FXResourceDescriptor) obj;
int i3 = a.a[fXResourceDescriptor.E0().ordinal()];
String str = l;
if (i3 == 1) {
Object continueWith = c(fXResourceDescriptor.B0()).continueWith(myobfuscated.td0.a.c(str), new x(0, resources, fXResourceDescriptor));
Intrinsics.checkNotNullExpressionValue(continueWith, "continueWith(...)");
arrayList.add(continueWith);
} else if (i3 != 2) {
throw new IllegalArgumentException("Incorrect resource type");
} else {
if (effectItem.getExtraResourceName() == null && Intrinsics.c(effectItem.getEffectType(), "lut_effect")) {
c2 = c(fXResourceDescriptor.B0());
} else {
String extraResourceName = effectItem.getExtraResourceName();
if (extraResourceName == null) {
extraResourceName = fXResourceDescriptor.B0();
}
c2 = c(extraResourceName);
}
Object continueWith2 = c2.continueWith(myobfuscated.td0.a.c(str), new myobfuscated.d4.c(4, resources, fXResourceDescriptor));
Intrinsics.checkNotNullExpressionValue(continueWith2, "continueWith(...)");
arrayList.add(continueWith2);
}
i = i2;
}
return arrayList;
}
public void p(@NotNull EffectItem effectItem) {
Intrinsics.checkNotNullParameter(effectItem, "effectItem");
}
public final synchronized void q(String str, String str2) {
FXBuilderFactory fXBuilderFactory = FXBuilderFactory.a;
if (!fXBuilderFactory.c(str2) && !fXBuilderFactory.b(str2)) {
FXBuilderFactory.d(str, str2, 2);
}
}
public void r(@NotNull Bitmap image) {
Intrinsics.checkNotNullParameter(image, "image");
Intrinsics.checkNotNullParameter(image, "<set-?>");
this.c = image;
}
@NotNull
public final myobfuscated.t81.k s(@NotNull EffectModel effectModel, String str) {
Intrinsics.checkNotNullParameter(effectModel, "effectModel");
myobfuscated.t81.k h = h();
int max = Math.max(h().Q(), h().l());
int i = m.get(str) != null ? 512 : Barcode.UPC_E;
if (i < max) {
n q = myobfuscated.c81.e.q(0, null, 6);
Bitmap A = myobfuscated.yz1.d.A(g(), i);
if (A != null) {
myobfuscated.t81.k kVar = (myobfuscated.t81.k) myobfuscated.c81.c.b(24, h(), myobfuscated.c81.e.m(new ImageBufferARGB8888(A), null, null, 14), q, null);
effectModel.n = q;
return kVar;
}
return h;
}
return h;
}
}