|
||||||||||
| 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.JSampleBuffer
public class JSampleBuffer
JSampleBuffer is a typed structure holding a block of data - usually a video- or audioframe - and some related attributes. Unlike DSSampleBuffer JSampleBuffer has no fix association with a Filtergraph and can be kept around over longer times. dsj uses it in the de.humatic.dsj.src.Source derived classes to feed the native source filters with data from the java side.
| Field Summary |
|---|
| Fields inherited from class de.humatic.dsj.SampleBuffer |
|---|
SF_CODECSPECIFIC, SF_DISCONTINUITY, SF_EOS, SF_FLUSH, SF_FRAMEREORDERED, SF_KEYFRAME, SF_NOSTAMP, SF_PREROLL |
| Constructor Summary | |
|---|---|
JSampleBuffer(byte[] d,
int offset,
int last,
int time,
int sequenceNumber,
int inputDelta,
int flags)
Constructs a JSampleBuffer by copying data from indices %offset to %last of %d (so that the resulting sample length as returned by getSampleLength() = last-offset) into a newly allocated byte[]. |
|
JSampleBuffer(DSMediaType mtype,
byte[] d)
Constructs a JSampleBuffer referencing all data in the given byte array. |
|
JSampleBuffer(DSMediaType mtype,
byte[] headers,
byte[] d,
int offset,
int last,
int time,
int sequenceNumber,
int inputDelta,
int flags)
|
|
JSampleBuffer(DSMediaType mtype,
byte[] d,
int length,
int time,
int sequenceNumber,
int inputDelta,
int flags)
Constructs a JSampleBuffer referencing the data in the given byte array between indices 0 and %length. |
|
JSampleBuffer(DSMediaType mtype,
byte[] d,
int offset,
int last,
int time,
int sequenceNumber,
int inputDelta,
int flags)
Constructs a JSampleBuffer with the given media type by copying data from indices %offset to %last of %d (so that the resulting sample length as returned by getSampleLength() = last-offset) into a newly allocated byte[]. |
|
| Method Summary | |
|---|---|
JSampleBuffer |
copy()
|
protected void |
finalize()
|
byte[] |
getSample()
Returns the actual sample data. |
void |
setMaxInMemorySize(int kb)
|
void |
setMediaType(DSMediaType mt)
|
void |
setSample(byte[] d)
|
void |
setSampleFlags(int f)
|
void |
setSampleTime(int t)
|
void |
setUserData(int iUser)
|
| Methods inherited from class de.humatic.dsj.SampleBuffer |
|---|
getDeltaTime, getMediaType, getSampleFlags, getSampleLength, getSampleTime, getSequenceNumber, getUserData, setDeltaTime, setSampleLength |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JSampleBuffer(byte[] d,
int offset,
int last,
int time,
int sequenceNumber,
int inputDelta,
int flags)
public JSampleBuffer(DSMediaType mtype,
byte[] d,
int offset,
int last,
int time,
int sequenceNumber,
int inputDelta,
int flags)
public JSampleBuffer(DSMediaType mtype,
byte[] headers,
byte[] d,
int offset,
int last,
int time,
int sequenceNumber,
int inputDelta,
int flags)
public JSampleBuffer(DSMediaType mtype,
byte[] d,
int length,
int time,
int sequenceNumber,
int inputDelta,
int flags)
public JSampleBuffer(DSMediaType mtype,
byte[] d)
| Method Detail |
|---|
public byte[] getSample()
SampleBuffer
getSample in class SampleBufferpublic void setSample(byte[] d)
public void setSampleTime(int t)
public void setSampleFlags(int f)
public void setMediaType(DSMediaType mt)
public void setUserData(int iUser)
public void setMaxInMemorySize(int kb)
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic JSampleBuffer copy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||