Package ch.bailu.gtk.gst
Klasse TypeFind
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.gst.TypeFind
- Alle implementierten Schnittstellen:
PointerInterface
The following functions allow you to detect the media type of an unknown
stream.
stream.
https://gstreamer.freedesktop.org/documentation/gstreamer/gi-index.html
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic interface
static interface
-
Feldübersicht
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic ClassHandler
static int
long
Get the length of the data stream.static long
static TypeSystem.TypeSize
static long
static TypeSystem.TypeSize
static boolean
register
(Plugin plugin, Str name, int rank, TypeFind.OnTypeFindFunction func, Str extensions, Caps possible_caps, Pointer data, TypeFind.OnDestroyNotify data_notify) Registers a new typefind function to be used for typefinding.void
If a #GstTypeFindFunction calls this function it suggests the caps with the
given probability.void
suggestEmptySimple
(int probability, Str media_type) If a #GstTypeFindFunction calls this function it suggests caps of the
given @media_type with the given @probability.void
suggestEmptySimple
(int probability, String media_type) If a #GstTypeFindFunction calls this function it suggests caps of the
given @media_type with the given @probability.void
suggestSimple
(int probability, Str media_type, Str fieldname, Object... _ellipsis) If a #GstTypeFindFunction calls this function it suggests the caps with the
given probability.void
suggestSimple
(int probability, String media_type, String fieldname, Object... _ellipsis) If a #GstTypeFindFunction calls this function it suggests the caps with the
given probability.Von Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Von Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Konstruktordetails
-
TypeFind
-
-
Methodendetails
-
getClassHandler
-
getLength
public long getLength()Get the length of the data stream.- Gibt zurück:
- The length of the data stream, or 0 if it is not available.
-
suggest
If a #GstTypeFindFunction calls this function it suggests the caps with the
given probability. A #GstTypeFindFunction may supply different suggestions
in one call.
It is up to the caller of the #GstTypeFindFunction to interpret these values.- Parameter:
probability
- The probability in percent that the suggestion is rightcaps
- The fixed #GstCaps to suggest
-
suggestEmptySimple
If a #GstTypeFindFunction calls this function it suggests caps of the
given @media_type with the given @probability.
This function is similar to gst_type_find_suggest_simple(), but uses
a #GstCaps with no fields.- Parameter:
probability
- The probability in percent that the suggestion is rightmedia_type
- the media type of the suggested caps
-
suggestEmptySimple
If a #GstTypeFindFunction calls this function it suggests caps of the
given @media_type with the given @probability.
This function is similar to gst_type_find_suggest_simple(), but uses
a #GstCaps with no fields.- Parameter:
probability
- The probability in percent that the suggestion is rightmedia_type
- the media type of the suggested caps
-
suggestSimple
public void suggestSimple(int probability, @Nonnull Str media_type, @Nullable Str fieldname, Object... _ellipsis) If a #GstTypeFindFunction calls this function it suggests the caps with the
given probability. A #GstTypeFindFunction may supply different suggestions
in one call. It is up to the caller of the #GstTypeFindFunction to interpret
these values.
This function is similar to gst_type_find_suggest(), only that instead of
passing a #GstCaps argument you can create the caps on the fly in the same
way as you can with gst_caps_new_simple().
Make sure you terminate the list of arguments with a %NULL argument and that
the values passed have the correct type (in terms of width in bytes when
passed to the vararg function - this applies particularly to gdouble and
guint64 arguments).- Parameter:
probability
- The probability in percent that the suggestion is rightmedia_type
- the media type of the suggested capsfieldname
- first field of the suggested caps, or %NULL_ellipsis
- additional arguments to the suggested caps in the same format as the arguments passed to gst_structure_new() (ie. triplets of field name, field GType and field value). If @fieldname is %NULL, this list must be exactly one %NULL.
-
suggestSimple
public void suggestSimple(int probability, String media_type, String fieldname, Object... _ellipsis) If a #GstTypeFindFunction calls this function it suggests the caps with the
given probability. A #GstTypeFindFunction may supply different suggestions
in one call. It is up to the caller of the #GstTypeFindFunction to interpret
these values.
This function is similar to gst_type_find_suggest(), only that instead of
passing a #GstCaps argument you can create the caps on the fly in the same
way as you can with gst_caps_new_simple().
Make sure you terminate the list of arguments with a %NULL argument and that
the values passed have the correct type (in terms of width in bytes when
passed to the vararg function - this applies particularly to gdouble and
guint64 arguments).- Parameter:
probability
- The probability in percent that the suggestion is rightmedia_type
- the media type of the suggested capsfieldname
- first field of the suggested caps, or %NULL_ellipsis
- additional arguments to the suggested caps in the same format as the arguments passed to gst_structure_new() (ie. triplets of field name, field GType and field value). If @fieldname is %NULL, this list must be exactly one %NULL.
-
register
public static boolean register(@Nullable Plugin plugin, @Nonnull Str name, int rank, TypeFind.OnTypeFindFunction func, @Nullable Str extensions, @Nullable Caps possible_caps, @Nullable Pointer data, TypeFind.OnDestroyNotify data_notify) Registers a new typefind function to be used for typefinding. After
registering this function will be available for typefinding.
This function is typically called during an element's plugin initialization.- Parameter:
plugin
- A #GstPlugin, or %NULL for a static typefind functionname
- The name for registeringrank
- The rank (or importance) of this typefind functionfunc
- The #GstTypeFindFunction to useextensions
- Optional comma-separated list of extensions that could belong to this typepossible_caps
- Optionally the caps that could be returned when typefinding succeedsdata
- Optional user data. This user data must be available until the plugin is unloaded.data_notify
- a #GDestroyNotify that will be called on @data when the plugin is unloaded.- Gibt zurück:
- %TRUE on success, %FALSE otherwise
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-