Class RawVideoFrameBuffer
- Object
-
- RawVideoFrame
-
- RawVideoFrameBuffer
-
- All Implemented Interfaces:
AutoCloseable
public final class RawVideoFrameBuffer extends RawVideoFrame
Hold's video frame data as a buffer
-
-
Constructor Summary
Constructors Constructor Description RawVideoFrameBuffer()Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ByteBuffer>getBuffers()Representation of the video frame as a buffer saved on memoryRawVideoFrameBuffersetBuffers(List<ByteBuffer> byteBufferList)Representation of the video frame as a buffer saved on memory.RawVideoFrameBuffersetStreamFormat(VideoStreamFormat value)Information about the 4CC used on this video frameRawVideoFrameBuffersetTimestampInTicks(long value)time when the video frame was created-
Methods inherited from class RawVideoFrame
close, finalize, getStreamFormat, getTimestampInTicks, getType
-
-
-
-
Method Detail
-
setStreamFormat
public RawVideoFrameBuffer setStreamFormat(VideoStreamFormat value)
Information about the 4CC used on this video frame- Overrides:
setStreamFormatin classRawVideoFrame- Parameters:
value- The new value.
-
setTimestampInTicks
public RawVideoFrameBuffer setTimestampInTicks(long value)
time when the video frame was created- Overrides:
setTimestampInTicksin classRawVideoFrame- Parameters:
value- The new value.
-
getBuffers
public List<ByteBuffer> getBuffers()
Representation of the video frame as a buffer saved on memory
-
setBuffers
public RawVideoFrameBuffer setBuffers(List<ByteBuffer> byteBufferList)
Representation of the video frame as a buffer saved on memory. Use ByteBuffer.allocateDirect API when creating the ByteBuffer- Parameters:
byteBufferList- The new value.
-
-