code: static Bitmap decodeStream(Source source, Request request) throws IOException {
      ExceptionCatchingSource exceptionCatchingSource = new ExceptionCatchingSource(source);
      BufferedSource bufferedSource = Okio.buffer(exceptionCatchingSource);
      Bitmap bitmap = SDK_INT >= 28
          ? decodeStreamP(request, bufferedSource)
          : decodeStreamPreP(request, bufferedSource);
      exceptionCatchingSource.throwIfCaught();
      return bitmap;
    }
docs: Decode a byte stream into a Bitmap. This method will take into account additional information
  about the supplied request in order to do the decoding efficiently (such as through leveraging
  {@code inSampleSize}).