public abstract class CustomSrc extends BaseSrc
Modifier and Type | Class and Description |
---|---|
protected static interface |
CustomSrc.SrcCallback |
BaseSrc.HANDOFF
Element.NO_MORE_PADS, Element.PAD_ADDED, Element.PAD_REMOVED
GObject.GCallback
NativeObject.Initializer
defaultInit, ownsHandle
Modifier | Constructor and Description |
---|---|
protected |
CustomSrc(java.lang.Class<? extends CustomSrc> subClass,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
protected FlowReturn |
srcCreateBuffer(long offset,
int size,
Buffer[] bufRef)
Used when more control of Buffer creation is desired than fillBuffer() affords.
|
protected boolean |
srcEvent(Event ev) |
protected FlowReturn |
srcFillBuffer(long offset,
int size,
Buffer buffer)
Used when you just want to fill a Buffer with data.
|
protected void |
srcFixate(Caps caps) |
protected Caps |
srcGetCaps() |
protected long |
srcGetSize() |
protected void |
srcGetTimes(Buffer buffer,
long[] start,
long[] end) |
protected boolean |
srcIsSeekable() |
protected boolean |
srcNegotiate() |
protected boolean |
srcSeek(GstAPI.GstSegmentStruct segment) |
protected boolean |
srcSetCaps(Caps caps) |
protected boolean |
srcStart() |
protected boolean |
srcStop() |
connect, disconnect, getBlocksize, getTimestamp, isLive, newSeamlessSegment, queryLatency, setBlocksize, setFormat, setLive, setTimestamp, waitPlaying
addPad, connect, connect, connect, disconnect, disconnect, disconnect, getBaseTime, getBus, getClock, getFactory, getPad, getPads, getRequestPad, getSinkPads, getSrcPads, getStartTime, getState, getState, getState, getState, getStaticPad, isPlaying, link, link, linkMany, linkPads, linkPadsFiltered, makeRawElement, pause, play, postMessage, ready, releaseRequestPad, removePad, sendEvent, setBaseTime, setCaps, setLockedState, setStartTime, setState, stop, syncStateWithParent, unlink, unlinkMany, unlinkPads
addListenerProxy, getName, getParent, initializer, initializer, ref, removeListenerProxy, setName, steal, toString, unref
addCallback, connect, connect, connect, disconnect, disconnect, disposeNativeHandle, emit, emit, g_signal_connect, get, getPointer, getPropertyDefaultValue, getPropertyMaximumValue, getPropertyMinimumValue, getType, invalidate, objectForX, removeCallback, set
classFor, disown, dispose, equals, finalize, getNativeAddress, handle, hashCode, initializer, instanceFor, isDisposed, nativeValue, objectFor, objectFor, objectFor, objectFor
protected CustomSrc(java.lang.Class<? extends CustomSrc> subClass, java.lang.String name)
protected FlowReturn srcCreateBuffer(long offset, int size, Buffer[] bufRef) throws java.io.IOException
offset
- size
- bufRef
- java.io.IOException
protected FlowReturn srcFillBuffer(long offset, int size, Buffer buffer) throws java.io.IOException
offset
- size
- buffer
- java.io.IOException
protected boolean srcIsSeekable()
protected boolean srcSeek(GstAPI.GstSegmentStruct segment) throws java.io.IOException
java.io.IOException
protected boolean srcStart()
protected boolean srcStop()
protected boolean srcNegotiate()
protected Caps srcGetCaps()
protected boolean srcSetCaps(Caps caps)
protected long srcGetSize()
protected boolean srcEvent(Event ev)
protected void srcGetTimes(Buffer buffer, long[] start, long[] end)
protected void srcFixate(Caps caps)