@Override
    public Resource<Bitmap> decode(InputStream source, int width, int height) {
        Bitmap bitmap = downsampler.decode(source, bitmapPool, width, height, decodeFormat);
        return BitmapResource.obtain(bitmap, bitmapPool);
    }
An {@link ResourceDecoder} that uses an
{@link Downsampler} to decode an {@link Bitmap} from an
{@link InputStream}.
core/src/main/java/com/bumptech/glide/load/resource/bitmap/StreamBitmapDecoder.java