org.gstreamer.elements
Class BufferDataAppSink

java.lang.Object
  extended by org.gstreamer.lowlevel.NativeValue
      extended by org.gstreamer.lowlevel.Handle
          extended by org.gstreamer.lowlevel.NativeObject
              extended by org.gstreamer.lowlevel.RefCountedObject
                  extended by org.gstreamer.GObject
                      extended by org.gstreamer.GstObject
                          extended by org.gstreamer.Element
                              extended by org.gstreamer.Bin
                                  extended by org.gstreamer.elements.BufferDataAppSink

public class BufferDataAppSink
extends Bin

Class that allows to pull out native buffers from the GStreamer pipeline into the application. It is almost identical to BufferDataSink, the only difference is that BufferDataSink uses a fakesink as the sink element, while BufferDataAppSink uses an appsink.


Nested Class Summary
static interface BufferDataAppSink.Listener
           
 
Nested classes/interfaces inherited from class org.gstreamer.Bin
Bin.DO_LATENCY, Bin.ELEMENT_ADDED, Bin.ELEMENT_REMOVED
 
Nested classes/interfaces inherited from class org.gstreamer.Element
Element.NO_MORE_PADS, Element.PAD_ADDED, Element.PAD_REMOVED
 
Nested classes/interfaces inherited from class org.gstreamer.GObject
GObject.GCallback
 
Nested classes/interfaces inherited from class org.gstreamer.lowlevel.NativeObject
NativeObject.Initializer
 
Field Summary
 
Fields inherited from class org.gstreamer.Bin
DEBUG_GRAPH_SHOW_ALL, DEBUG_GRAPH_SHOW_CAPS_DETAILS, DEBUG_GRAPH_SHOW_MEDIA_TYPE, DEBUG_GRAPH_SHOW_NON_DEFAULT_PARAMS, DEBUG_GRAPH_SHOW_STATES
 
Fields inherited from class org.gstreamer.lowlevel.NativeObject
defaultInit, ownsHandle
 
Constructor Summary
BufferDataAppSink(java.lang.String name, BufferDataAppSink.Listener listener)
           
BufferDataAppSink(java.lang.String name, Pipeline pipeline, BufferDataAppSink.Listener listener)
           
BufferDataAppSink(java.lang.String name, java.lang.String mask, BufferDataAppSink.Listener listener)
           
 
Method Summary
 Caps getCaps()
          Gets the Caps configured on this data sink
 BaseSink getSinkElement()
          Gets the actual gstreamer sink element.
 void removeListener()
          Sets the listener to null.
 void setAutoDisposeBuffer(boolean autoDispose)
          Indicate whether the the native buffer is disposed automatically by the sink object or not.
 
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
 

Constructor Detail

BufferDataAppSink

public BufferDataAppSink(java.lang.String name,
                         BufferDataAppSink.Listener listener)

BufferDataAppSink

public BufferDataAppSink(java.lang.String name,
                         java.lang.String mask,
                         BufferDataAppSink.Listener listener)

BufferDataAppSink

public BufferDataAppSink(java.lang.String name,
                         Pipeline pipeline,
                         BufferDataAppSink.Listener listener)
Method Detail

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.


setAutoDisposeBuffer

public void setAutoDisposeBuffer(boolean autoDispose)
Indicate whether the the native buffer is disposed automatically by the sink object or not. The later is useful if the application needs to store the buffers.


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