28 lines
741 B
Java
28 lines
741 B
Java
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());
|
|
}
|
|
}
|