public class DSSampleBuffer extends SampleBuffer
Modifier and Type | Field and Description |
---|---|
static int |
COLLECT_EQUAL_TIMES
Special timestamp handling flags.
|
static int |
DIRECT_ACCESS
Flag for gaining direct access to the filter's NIO buffer, see getByteBuffer().
|
static int |
IGNORE_EQUAL_TIMES
Special timestamp handling flags.
|
static int |
NO_DATA_COPY |
static int |
THREAD_DS
Thread related flags, see DSFiltergraph.insertSampleAccessFilter()
|
static int |
THREAD_SWING
Thread related flags, see DSFiltergraph.insertSampleAccessFilter()
|
SF_CODECSPECIFIC, SF_DISCONTINUITY, SF_EOS, SF_FLUSH, SF_FRAMEREORDERED, SF_KEYFRAME, SF_NOSTAMP, SF_PREROLL
Modifier and Type | Method and Description |
---|---|
java.nio.ByteBuffer |
getByteBuffer()
Returns the ByteBuffer used for data exchange with the dll.
|
DSFilter |
getFilter() |
long |
getFilterID()
Returns the originating SampleAccessFilter's native memory pointer.
|
DSMediaType |
getMediaType() |
byte[] |
getSample()
Returns a pointer to the actual sample data or null when set up with DIRECT_ACCESS flag.
|
int |
getSampleLength()
Returns the sample's length in bytes (Before data has been received this will initially return calculated sample size).
|
int |
getSampleTime()
Millisecond time of the sample.
|
void |
lock(boolean locked)
Grabs or releases a lock object used to synchronize clientside read and dll-side write access to this SampleBuffer's nio buffer.
|
JSampleBuffer |
persist()
Copies the current sample from the ByteBuffer - where it will be overwritten - into a JSampleBuffer.
|
getDeltaTime, getSampleFlags, getSequenceNumber, getUserData, setDeltaTime, setSampleLength
public static final int IGNORE_EQUAL_TIMES
public static final int COLLECT_EQUAL_TIMES
public static final int DIRECT_ACCESS
public static final int THREAD_DS
public static final int THREAD_SWING
public static final int NO_DATA_COPY
public DSMediaType getMediaType()
getMediaType
in class SampleBuffer
public byte[] getSample()
getSample
in class SampleBuffer
public int getSampleLength()
getSampleLength
in class SampleBuffer
public int getSampleTime()
SampleBuffer
getSampleTime
in class SampleBuffer
public long getFilterID()
public DSFilter getFilter()
public JSampleBuffer persist()
public java.nio.ByteBuffer getByteBuffer()
public void lock(boolean locked)