org.gstreamer.elements
Class ByteDataAppSink
java.lang.Object
org.gstreamer.lowlevel.NativeValue
org.gstreamer.lowlevel.Handle
org.gstreamer.lowlevel.NativeObject
org.gstreamer.lowlevel.RefCountedObject
org.gstreamer.GObject
org.gstreamer.GstObject
org.gstreamer.Element
org.gstreamer.Bin
org.gstreamer.elements.ByteDataAppSink
public class ByteDataAppSink
- extends Bin
Class that allows to pull out buffers from the GStreamer pipeline into
the application, using an appsink. The buffers are NOT converted into
32bit RGB. It uses an appsink as the sink element.
Methods inherited from class org.gstreamer.Bin |
add, addMany, connect, connect, connect, debugToDotFile, debugToDotFile, disconnect, disconnect, disconnect, getElementByInterface, getElementByName, getElementByNameRecurseUp, getElements, getElementsRecursive, getElementsSorted, getSinks, getSources, launch, remove, removeMany |
Methods inherited from class org.gstreamer.Element |
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 |
Methods inherited from class org.gstreamer.GstObject |
addListenerProxy, getName, getParent, initializer, initializer, ref, removeListenerProxy, setName, steal, toString, unref |
Methods inherited from class org.gstreamer.GObject |
addCallback, connect, connect, connect, disconnect, disconnect, disposeNativeHandle, emit, emit, g_signal_connect, get, getPointer, getPropertyDefaultValue, getPropertyMaximumValue, getPropertyMinimumValue, getType, invalidate, objectFor, removeCallback, set |
Methods inherited from class org.gstreamer.lowlevel.NativeObject |
classFor, disown, dispose, equals, finalize, getNativeAddress, handle, hashCode, initializer, instanceFor, isDisposed, nativeValue, objectFor, objectFor, objectFor |
Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, wait, wait, wait |
ByteDataAppSink
public ByteDataAppSink(java.lang.String name,
ByteDataAppSink.Listener listener)
ByteDataAppSink
public ByteDataAppSink(java.lang.String name,
Pipeline pipeline,
ByteDataAppSink.Listener listener)
removeListener
public void removeListener()
- Sets the listener to null. This should be used when disposing
the parent object that contains the listener method, to make sure
that no dangling references remain to the parent.
setPassDirectBuffer
public void setPassDirectBuffer(boolean passThru)
- Indicate whether the
RGBDataAppSink
should pass the native IntBuffer
to the listener, or should copy it to a heap buffer. The default is to pass
a heap IntBuffer
copy of the data
- Parameters:
passThru
- If true, pass through the native IntBuffer instead of
copying it to a heap IntBuffer.
getSinkElement
public BaseSink getSinkElement()
- Gets the actual gstreamer sink element.
- Returns:
- a AppSink
getCaps
public Caps getCaps()
- Gets the Caps configured on this data sink
- Returns:
- The caps configured on this sink