public class JSampleBuffer extends SampleBuffer
SF_CODECSPECIFIC, SF_DISCONTINUITY, SF_EOS, SF_FLUSH, SF_FRAMEREORDERED, SF_KEYFRAME, SF_NOSTAMP, SF_PREROLL| Constructor and Description |
|---|
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[].
|
| Modifier and Type | Method and Description |
|---|---|
JSampleBuffer |
copy() |
protected void |
finalize() |
byte[] |
getSample()
Returns the actual sample data.
|
int |
getSampleLength() |
static void |
setMaxInMemorySize(int kb) |
void |
setMediaType(DSMediaType mt) |
void |
setSample(byte[] d) |
void |
setSampleFlags(int f) |
void |
setSampleTime(int t) |
void |
setUserData(int iUser) |
getDeltaTime, getMediaType, getSampleFlags, getSampleTime, getSequenceNumber, getUserData, setDeltaTime, setSampleLengthpublic 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)
public int getSampleLength()
getSampleLength in class SampleBufferpublic byte[] getSample()
SampleBuffergetSample 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 static void setMaxInMemorySize(int kb)
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic JSampleBuffer copy()