@Override
          public void onIntermediateImageSet(long id, @Nullable ImageInfo imageInfo) {
            if (imageInfo != null) {
              QualityInfo qualityInfo = imageInfo.getQualityInfo();
              logScan(qualityInfo, false);
            }
          }
Progressive JPEG example that logs which frames of a progressive JPEG are rendered
samples/showcase/src/main/java/com/facebook/fresco/samples/showcase/imageformat/pjpeg/ImageFormatProgressiveJpegFragment.java