Base

Members

Static functions

typeFindHelper
Caps typeFindHelper(Pad src, ulong size)

Tries to find what type of data is flowing from the given source #GstPad.

typeFindHelperForBuffer
Caps typeFindHelperForBuffer(ObjectGst obj, Buffer buf, GstTypeFindProbability prob)

Tries to find what type of data is contained in the given #GstBuffer, the assumption being that the buffer represents the beginning of the stream or file.

typeFindHelperForData
Caps typeFindHelperForData(ObjectGst obj, ubyte[] data, GstTypeFindProbability prob)

Tries to find what type of data is contained in the given @data, the assumption being that the data represents the beginning of the stream or file.

typeFindHelperForExtension
Caps typeFindHelperForExtension(ObjectGst obj, string extension)

Tries to find the best #GstCaps associated with @extension.

typeFindHelperGetRange
Caps typeFindHelperGetRange(ObjectGst obj, ObjectGst parent, GstTypeFindHelperGetRangeFunction func, ulong size, string extension, GstTypeFindProbability prob)

Utility function to do pull-based typefinding. Unlike gst_type_find_helper() however, this function will use the specified function @func to obtain the data needed by the typefind functions, rather than operating on a given source pad. This is useful mostly for elements like tag demuxers which strip off data at the beginning and/or end of a file and want to typefind the stripped data stream before adding their own source pad (the specified callback can then call the upstream peer pad with offsets adjusted for the tag size, for example).

Meta