gst.type_find

Module for [TypeFind] class

class TypeFind

Types 1

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

Fields
GstTypeFind _cInstance
Methods
void * _cPtr()
PeekFuncFuncType peekFunc() @propertyGet `peekFunc` field. Returns: Method to peek data.
SuggestFuncFuncType suggestFunc() @propertyGet `suggestFunc` field. Returns: Method to suggest #GstCaps with a given probability.
GetLengthFuncFuncType getLengthFunc() @propertyGet `getLengthFunc` field. Returns: Returns the length of current data.
ulong getLength()Get the length of the data stream. Returns: The length of the data stream, or 0 if it is not available.
const(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 offse...
void suggest(uint probability, gst.caps.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 #Gs...
void suggestEmptySimple(uint probability, string mediaType)If a #GstTypeFindFunction calls this function it suggests caps of the given media_type with the given probability.
bool register(gst.plugin.Plugin plugin, string name, uint rank, gst.types.TypeFindFunction func, string extensions = null, gst.caps.Caps possibleCaps = null)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 initial...
Constructors
this(void * ptr, Flag!"Take" take)