TypeFind

Description The following functions allow you to detect the media type of an unknown stream. Last reviewed on 2005-11-09 (0.9.4)

Constructors

this
this(GstTypeFind* gstTypeFind)

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()
Undocumented in source. Be warned that the author may not have intended to support it.
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
int 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.

Variables

gstTypeFind
GstTypeFind* gstTypeFind;

the main Gtk struct

Meta