docs: private boolean renderFrameInBitmap(
        int frameNumber,
        @Nullable CloseableReference<Bitmap> targetBitmap) {
      if (!CloseableReference.isValid(targetBitmap)) {
        return false;
      }
      // Render the image
      boolean frameRendered =
          mBitmapFrameRenderer.renderFrame(frameNumber, targetBitmap.get());
      if (!frameRendered) {
        CloseableReference.closeSafely(targetBitmap);
      }
      return frameRendered;
    }