Class FrameWriter

  • All Implemented Interfaces:
    AutoCloseable

    public final class FrameWriter
    extends Object
    implements AutoCloseable
    FrameWriter class Represents the ability to write image frame data, for use as input w/ Vision AI scenario operations. Note: close() must be called in order to release underlying resources held by the object.
    • Method Detail

      • write

        public void write​(ByteBuffer frame)
        Writes a single frame of image data to the underlying FrameSource.
        Parameters:
        frame - The frame data to be written as ByteBuffer
      • write

        public void write​(Frame frame)
        Writes a single frame of image data to the underlying FrameSource.
        Parameters:
        frame - The frame data to be written as Frame object
      • close

        public void close()
        Dispose of associated resources. Note: close() must be called in order to release underlying resources held by the object.
        Specified by:
        close in interface AutoCloseable