|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.humatic.dsj.SampleBuffer
de.humatic.dsj.DSSampleBuffer
public class DSSampleBuffer
DSSampleBuffer objects are delivered by the SampleAccessFilter, see DSFiltergraph.insertSampleAccessFilter(...)..
| Field Summary | |
|---|---|
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() |
| Fields inherited from class de.humatic.dsj.SampleBuffer |
|---|
SF_CODECSPECIFIC, SF_DISCONTINUITY, SF_EOS, SF_FLUSH, SF_FRAMEREORDERED, SF_KEYFRAME, SF_NOSTAMP, SF_PREROLL |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class de.humatic.dsj.SampleBuffer |
|---|
getDeltaTime, getSampleFlags, getSequenceNumber, getUserData, setDeltaTime, setSampleLength |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Method Detail |
|---|
public DSMediaType getMediaType()
getMediaType in class SampleBufferpublic byte[] getSample()
getSample in class SampleBufferpublic int getSampleLength()
getSampleLength in class SampleBufferpublic int getSampleTime()
SampleBuffer
getSampleTime in class SampleBufferpublic long getFilterID()
public DSFilter getFilter()
public JSampleBuffer persist()
public java.nio.ByteBuffer getByteBuffer()
public void lock(boolean locked)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||