Interface ImageBuffer

All Known Implementing Classes:
JavaImageBuffer

public interface ImageBuffer
A buffer interface for obtaining image data.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
    Supported pixel formats of the buffer.
  • Method Summary

    Modifier and Type
    Method
    Description
    Current pixel format of the buffer.
    int
    Height of the image's pixels.
    byte[]
    Can store any pixels data.
    int
    Stride of the image's pixels.
    int
    Width of the image's pixels.
    void
    with(Consumer<ByteBuffer> functionToRun)
    Lock buffer and get direct access to the pixel data.
  • Method Details

    • getFormat

      ImageBuffer.Format getFormat()
      Current pixel format of the buffer.
    • getPixelBuffer

      byte[] getPixelBuffer()
      Can store any pixels data. May contain colorized pixel data (i.e. a fusion of thermal and visual data), may also contain plain DC/visual pixels. NOTE: May copy, prefer with(com.flir.thermalsdk.utils.Consumer<java.nio.ByteBuffer>).
    • getHeight

      int getHeight()
      Height of the image's pixels.
    • getWidth

      int getWidth()
      Width of the image's pixels.
    • getStride

      int getStride()
      Stride of the image's pixels.
    • with

      void with(Consumer<ByteBuffer> functionToRun)
      Lock buffer and get direct access to the pixel data. This lock is about pinning a GPU buffer to get direct access to the pixels not the multithreading lock.
      Parameters:
      functionToRun - Function to be executed while holding the lock.