org.gstreamer.event
Class BufferSizeEvent

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.MiniObject
                      extended by org.gstreamer.Event
                          extended by org.gstreamer.event.BufferSizeEvent

public class BufferSizeEvent
extends Event

Notification of new latency adjustment.

The event is sent upstream from the sinks and notifies elements that they should add an additional latency to the timestamps before synchronising against the clock.

The latency is mostly used in live sinks and is always expressed in the time format.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.gstreamer.lowlevel.NativeObject
NativeObject.Initializer
 
Field Summary
 
Fields inherited from class org.gstreamer.lowlevel.NativeObject
defaultInit, LIFECYCLE, ownsHandle
 
Constructor Summary
BufferSizeEvent(Format format, long minsize, long maxsize, boolean async)
          Creates a new buffersize event.
BufferSizeEvent(NativeObject.Initializer init)
          This constructor is for internal use only.
 
Method Summary
 Format getFormat()
          Gets the format of the buffersize event.
 long getMaximumSize()
          Gets the maximum buffer size.
 long getMinimumSize()
          Gets the minimum buffer size.
 boolean isAsync()
          Gets the preferred thread behaviour.
 
Methods inherited from class org.gstreamer.Event
getStructure
 
Methods inherited from class org.gstreamer.MiniObject
disposeNativeHandle, isWritable, makeWritable, objectFor, ref, unref
 
Methods inherited from class org.gstreamer.lowlevel.NativeObject
classFor, disown, dispose, equals, finalize, getNativeAddress, handle, hashCode, initializer, initializer, instanceFor, invalidate, isDisposed, nativeValue, objectFor, objectFor, toString
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BufferSizeEvent

public BufferSizeEvent(NativeObject.Initializer init)
This constructor is for internal use only.

Parameters:
init - initialization data.

BufferSizeEvent

public BufferSizeEvent(Format format,
                       long minsize,
                       long maxsize,
                       boolean async)
Creates a new buffersize event.

The event is sent downstream and notifies elements that they should provide a buffer of the specified dimensions.

When the async flag is set, a thread boundary is preferred.

Parameters:
format - buffer format
minsize - minimum buffer size
maxsize - maximum buffer size
async - thread behavior
Method Detail

getFormat

public Format getFormat()
Gets the format of the buffersize event.

Returns:
the format.

getMinimumSize

public long getMinimumSize()
Gets the minimum buffer size.

Returns:
the minimum buffer size.

getMaximumSize

public long getMaximumSize()
Gets the maximum buffer size.

Returns:
the maximum buffer size.

isAsync

public boolean isAsync()
Gets the preferred thread behaviour.

Returns:
true if a thread boundary is preferred.