Package 

Class EmptyJpegGenerator


  • 
    public class EmptyJpegGenerator
    
                        

    Producer that emits a dummy, fixed-size JPEG bytearray.

    The purpose of this jpeg is to serve as the source for a purgeable bitmap which will in turn have its contents overwritten, enabling us to copy into a purgeable bitmap.

    • Constructor Summary

      Constructors 
      Constructor Description
      EmptyJpegGenerator(PooledByteBufferFactory pooledByteBufferFactory)
    • Method Summary

      Modifier and Type Method Description
      CloseableReference<PooledByteBuffer> generate(short width, short height)
      • Methods inherited from class java.lang.Object

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

      • EmptyJpegGenerator

        EmptyJpegGenerator(PooledByteBufferFactory pooledByteBufferFactory)
    • Method Detail

      • generate

         CloseableReference<PooledByteBuffer> generate(short width, short height)