97 lines
3.2 KiB
Java
97 lines
3.2 KiB
Java
|
package o;
|
||
|
|
||
|
import android.content.Context;
|
||
|
import com.fluttercandies.flutter_image_compress.exception.CompressError;
|
||
|
import io.flutter.plugin.common.MethodCall;
|
||
|
import io.flutter.plugin.common.MethodChannel;
|
||
|
import java.io.ByteArrayOutputStream;
|
||
|
import java.util.List;
|
||
|
import o.goN;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class Jvw extends OAd {
|
||
|
private final MethodCall b;
|
||
|
|
||
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||
|
public Jvw(MethodCall methodCall, MethodChannel.Result result) {
|
||
|
super(result);
|
||
|
C14957gcv.e(methodCall, "");
|
||
|
C14957gcv.e(result, "");
|
||
|
this.b = methodCall;
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void c(Jvw jvw, Context context) {
|
||
|
int i;
|
||
|
boolean unused;
|
||
|
boolean unused2;
|
||
|
C14957gcv.e(jvw, "");
|
||
|
C14957gcv.e(context, "");
|
||
|
Object obj = jvw.b.arguments;
|
||
|
C14957gcv.d(obj, "");
|
||
|
List list = (List) obj;
|
||
|
int i2 = 0;
|
||
|
Object obj2 = list.get(0);
|
||
|
C14957gcv.d(obj2, "");
|
||
|
byte[] bArr = (byte[]) obj2;
|
||
|
Object obj3 = list.get(1);
|
||
|
C14957gcv.d(obj3, "");
|
||
|
int intValue = ((Integer) obj3).intValue();
|
||
|
Object obj4 = list.get(2);
|
||
|
C14957gcv.d(obj4, "");
|
||
|
int intValue2 = ((Integer) obj4).intValue();
|
||
|
Object obj5 = list.get(3);
|
||
|
C14957gcv.d(obj5, "");
|
||
|
int intValue3 = ((Integer) obj5).intValue();
|
||
|
Object obj6 = list.get(4);
|
||
|
C14957gcv.d(obj6, "");
|
||
|
int intValue4 = ((Integer) obj6).intValue();
|
||
|
Object obj7 = list.get(5);
|
||
|
C14957gcv.d(obj7, "");
|
||
|
boolean booleanValue = ((Boolean) obj7).booleanValue();
|
||
|
Object obj8 = list.get(6);
|
||
|
C14957gcv.d(obj8, "");
|
||
|
int intValue5 = ((Integer) obj8).intValue();
|
||
|
Object obj9 = list.get(7);
|
||
|
C14957gcv.d(obj9, "");
|
||
|
boolean booleanValue2 = ((Boolean) obj9).booleanValue();
|
||
|
Object obj10 = list.get(8);
|
||
|
C14957gcv.d(obj10, "");
|
||
|
int intValue6 = ((Integer) obj10).intValue();
|
||
|
if (booleanValue) {
|
||
|
YXT yxt = YXT.c;
|
||
|
i2 = YXT.e(bArr);
|
||
|
}
|
||
|
if (i2 == 90 || i2 == 270) {
|
||
|
i = intValue;
|
||
|
intValue = intValue2;
|
||
|
} else {
|
||
|
i = intValue2;
|
||
|
}
|
||
|
C13188fTb c13188fTb = C13188fTb.d;
|
||
|
utG a = C13188fTb.a(intValue5);
|
||
|
if (a == null) {
|
||
|
C7280clM.c("No support format.");
|
||
|
jvw.c(null);
|
||
|
return;
|
||
|
}
|
||
|
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
|
||
|
try {
|
||
|
try {
|
||
|
a.d(context, bArr, byteArrayOutputStream, intValue, i, intValue3, intValue4 + i2, booleanValue2, intValue6);
|
||
|
jvw.c(byteArrayOutputStream.toByteArray());
|
||
|
} catch (CompressError e) {
|
||
|
C7280clM.c(e.getMessage());
|
||
|
goN.IeS ieS = goN.a;
|
||
|
unused = goN.d;
|
||
|
jvw.c(null);
|
||
|
} catch (Exception unused3) {
|
||
|
goN.IeS ieS2 = goN.a;
|
||
|
unused2 = goN.d;
|
||
|
jvw.c(null);
|
||
|
}
|
||
|
} finally {
|
||
|
byteArrayOutputStream.close();
|
||
|
}
|
||
|
}
|
||
|
}
|