gstbase.global

Undocumented in source.

Members

Functions

typeFindHelper
gst.caps.Caps typeFindHelper(gst.pad.Pad src, ulong size)

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

typeFindHelperForBuffer
gst.caps.Caps typeFindHelperForBuffer(gst.object.ObjectGst obj, gst.buffer.Buffer buf, gst.types.TypeFindProbability 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.

typeFindHelperForBufferWithCaps
gst.caps.Caps typeFindHelperForBufferWithCaps(gst.object.ObjectGst obj, gst.buffer.Buffer buf, gst.caps.Caps caps, gst.types.TypeFindProbability prob)

Tries to find if type of media contained in the given #GstBuffer, matches caps specified, assumption being that the buffer represents the beginning of the stream or file.

typeFindHelperForBufferWithExtension
gst.caps.Caps typeFindHelperForBufferWithExtension(gst.object.ObjectGst obj, gst.buffer.Buffer buf, string extension, gst.types.TypeFindProbability 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
gst.caps.Caps typeFindHelperForData(gst.object.ObjectGst obj, ubyte[] data, gst.types.TypeFindProbability 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.

typeFindHelperForDataWithCaps
gst.caps.Caps typeFindHelperForDataWithCaps(gst.object.ObjectGst obj, ubyte[] data, gst.caps.Caps caps, gst.types.TypeFindProbability prob)

Tries to find if type of media contained in the given data, matches the caps specified, assumption being that the data represents the beginning of the stream or file.

typeFindHelperForDataWithExtension
gst.caps.Caps typeFindHelperForDataWithExtension(gst.object.ObjectGst obj, ubyte[] data, string extension, gst.types.TypeFindProbability 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
gst.caps.Caps typeFindHelperForExtension(gst.object.ObjectGst obj, string extension)

Tries to find the best #GstCaps associated with extension.

typeFindHelperGetRange
gst.caps.Caps typeFindHelperGetRange(gst.object.ObjectGst obj, gst.object.ObjectGst parent, gstbase.types.TypeFindHelperGetRangeFunction func, ulong size, string extension, gst.types.TypeFindProbability prob)

Utility function to do pull-based typefinding. Unlike gstbase.global.typeFindHelper 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).

typeFindHelperGetRangeFull
gst.types.FlowReturn typeFindHelperGetRangeFull(gst.object.ObjectGst obj, gst.object.ObjectGst parent, gstbase.types.TypeFindHelperGetRangeFunction func, ulong size, string extension, gst.caps.Caps caps, gst.types.TypeFindProbability prob)

Utility function to do pull-based typefinding. Unlike gstbase.global.typeFindHelper 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).

typeFindListFactoriesForCaps
gst.type_find_factory.TypeFindFactory[] typeFindListFactoriesForCaps(gst.object.ObjectGst obj, gst.caps.Caps caps)

Tries to find the best #GstTypeFindFactory associated with caps.