Package 

Class LocalExifThumbnailProducer

  • All Implemented Interfaces:
    com.facebook.imagepipeline.producers.Producer , com.facebook.imagepipeline.producers.ThumbnailProducer

    
    public class LocalExifThumbnailProducer
     implements ThumbnailProducer<EncodedImage>
                        

    A producer that retrieves exif thumbnails.

    At present, these thumbnails are retrieved on the java heap before being put into native memory.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static String PRODUCER_NAME
    • Method Summary

      Modifier and Type Method Description
      boolean canProvideImageForSize(@Nullable() ResizeOptions resizeOptions) Checks whether the producer may be able to produce images of the specified size.
      void produceResults(Consumer<EncodedImage> consumer, ProducerContext producerContext)
      • Methods inherited from class com.facebook.imagepipeline.producers.ThumbnailProducer

        canProvideImageForSize
      • Methods inherited from class com.facebook.imagepipeline.producers.Producer

        produceResults
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LocalExifThumbnailProducer

        LocalExifThumbnailProducer(Executor executor, PooledByteBufferFactory pooledByteBufferFactory, ContentResolver contentResolver)
    • Method Detail

      • canProvideImageForSize

         boolean canProvideImageForSize(@Nullable() ResizeOptions resizeOptions)

        Checks whether the producer may be able to produce images of the specified size. This makes nopromise about being able to produce images for a particular source, only generally being ableto produce output of the desired resolution.

        In this case, assumptions are made about the common size of EXIF thumbnails which is thatthey may be up to 512 pixels in each dimension.

        Parameters:
        resizeOptions - the resize options from the current request