jimu-decompiled/sources/com/bumptech/glide/load/ImageHeaderParser.java
2025-05-13 19:24:51 +02:00

38 lines
850 B
Java

package com.bumptech.glide.load;
import com.bumptech.glide.load.engine.bitmap_recycle.ArrayPool;
import java.io.IOException;
import java.io.InputStream;
import java.nio.ByteBuffer;
/* loaded from: classes.dex */
public interface ImageHeaderParser {
public enum ImageType {
GIF(true),
JPEG(false),
RAW(false),
PNG_A(true),
PNG(false),
WEBP_A(true),
WEBP(false),
UNKNOWN(false);
private final boolean hasAlpha;
ImageType(boolean z) {
this.hasAlpha = z;
}
public boolean hasAlpha() {
return this.hasAlpha;
}
}
int a(InputStream inputStream, ArrayPool arrayPool) throws IOException;
ImageType a(InputStream inputStream) throws IOException;
ImageType a(ByteBuffer byteBuffer) throws IOException;
}