org.gstreamer.query
Class FormatsQuery
java.lang.Object
org.gstreamer.lowlevel.NativeValue
org.gstreamer.lowlevel.Handle
org.gstreamer.lowlevel.NativeObject
org.gstreamer.lowlevel.RefCountedObject
org.gstreamer.MiniObject
org.gstreamer.Query
org.gstreamer.query.FormatsQuery
public class FormatsQuery
- extends Query
Used for querying formats of the stream.
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 |
FormatsQuery
public FormatsQuery()
- Constructs a new query object for querying formats of the stream.
FormatsQuery
public FormatsQuery(NativeObject.Initializer init)
setFormats
public void setFormats(Format... formats)
- Sets the formats query result fields.
- Parameters:
formats
- the formats to set.
getCount
public int getCount()
- Gets the number of formats in this query.
- Returns:
- the number of formats in this query.
getFormat
public Format getFormat(int index)
- Gets a format at
index
.
- Parameters:
index
- the index of the format to retrieve.
- Returns:
- the format.
getFormats
public java.util.List<Format> getFormats()
- Gets all formats in this query.
- Returns:
- a
List
of Format
.