TypeFind
Object Hierarchy:
Description:
The following functions allow you to detect the media type of an unknown stream. Last reviewed on 2005-11-09 (0.9.4)
Namespace: Gst
Package: gstreamer-0.10
Content:
Static methods:
Methods:
-
public uint64 get_length ()
Get the length of the data stream.
-
public uchar peek (int64 offset, uint size)
Returns the size bytes of the stream to identify beginning at offset. If offset is a
positive number, the offset is relative to the beginning of the stream, if offset is a negative number the offset is relative to the
end of the stream. The returned memory is valid until the typefinding function returns and must not be freed. if that data is not
available.
-
public void suggest (uint probability, Caps caps)
-
public void suggest_simple (uint probability, string media_type, string fieldname)
If a TypeFindFunction calls this function it
suggests the caps with the given probability. A TypeFindFunction may supply
different suggestions in one call. It is up to the caller of the TypeFindFunction
to interpret these values. This function is similar to suggest, only that
instead of passing a Caps argument you can create the caps on the fly in the same way as you
can with Caps.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).
Fields: