what-the-bank/sources/o/QaR.java

28 lines
741 B
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.graphics.Bitmap;
import java.io.ByteArrayOutputStream;
/* loaded from: classes.dex */
public final class QaR implements yBU<Bitmap, byte[]> {
private final Bitmap.CompressFormat c;
private final int e;
public QaR() {
this(Bitmap.CompressFormat.JPEG);
}
private QaR(Bitmap.CompressFormat compressFormat) {
this.c = compressFormat;
this.e = 100;
}
@Override // o.yBU
public final Ezi<byte[]> e(Ezi<Bitmap> ezi, unA una) {
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
ezi.e().compress(this.c, this.e, byteArrayOutputStream);
ezi.b();
return new sDJ(byteArrayOutputStream.toByteArray());
}
}