TypeFind

The following functions allow you to detect the media type of an unknown stream.

Constructors

this
this(GstTypeFind* gstTypeFind, bool ownedRef)

Sets our main struct and passes it to the parent class.

Members

Functions

getLength
ulong getLength()

Get the length of the data stream.

getStruct
void* getStruct()

the main Gtk struct as a void*

getTypeFindStruct
GstTypeFind* getTypeFindStruct(bool transferOwnership)

Get the main Gtk struct

peek
ubyte[] peek(long 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.

suggest
void suggest(uint probability, Caps caps)

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.

Static functions

register
bool register(Plugin plugin, string name, uint rank, GstTypeFindFunction func, string extensions, Caps possibleCaps, void* data, GDestroyNotify dataNotify)

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.

typeFindGetType
GType typeFindGetType()

Variables

gstTypeFind
GstTypeFind* gstTypeFind;

the main Gtk struct