gstbase.types

D types for gstbase1 library

Types 17

A function that will be called when the #GstCollectData will be freed. It is passed the pointer to the structure and should free any custom memory and resources allocated for it.

Parameters

datathe #GstCollectData that will be freed

A function that will be called when a (considered oldest) buffer can be muxed. If all pads have reached EOS, this function is called with null buffer and null data.

Parameters

padsthe #GstCollectPads that triggered the callback
datathe #GstCollectData of pad that has received the buffer
bufferthe #GstBuffer

Returns

[gst.types.FlowReturn.Ok] for success

A function that will be called when inbuffer is received on the pad managed by data in the collectpad object pads.

The function should use the segment of data and the negotiated media type on the pad to perform clipping of inbuffer.

This function takes ownership of inbuffer and should output a buffer in outbuffer or return null in outbuffer if the buffer should be dropped.

Parameters

padsa #GstCollectPads
dataa #GstCollectData
inbufferthe input #GstBuffer
outbufferthe output #GstBuffer

Returns

a #GstFlowReturn that corresponds to the result of clipping.

A function for comparing two timestamps of buffers or newsegments collected on one pad.

Parameters

padsthe #GstCollectPads that is comparing the timestamps
data1the first #GstCollectData
timestamp1the first timestamp
data2the second #GstCollectData
timestamp2the second timestamp

Returns

Integer less than zero when first timestamp is deemed older than the second one.

Zero if the timestamps are deemed equally old. Integer greater than zero when second timestamp is deemed older than the first one.

A function that will be called while processing an event. It takes ownership of the event and is responsible for chaining up (to [gstbase.collect_pads.CollectPads.eventDefault]) or dropping events (such typical cases being handled by the default handler).

Parameters

padsthe #GstCollectPads that triggered the callback
padthe #GstPad that received an event
eventthe #GstEvent received

Returns

true if the pad could handle the event

A function that will be called while processing a flushing seek event.

The function should flush any internal state of the element and the state of all the pads. It should clear only the state not directly managed by the pads object. It is therefore not necessary to call gst_collect_pads_set_flushing nor gst_collect_pads_clear from this function.

Parameters

padsa #GstCollectPads

A function that will be called when all pads have received data.

Parameters

padsthe #GstCollectPads that triggered the callback

Returns

[gst.types.FlowReturn.Ok] for success

A function that will be called while processing a query. It takes ownership of the query and is responsible for chaining up (to events downstream (with [gst.pad.Pad.eventDefault]).

Parameters

padsthe #GstCollectPads that triggered the callback
padthe #GstPad that received an event
querythe #GstEvent received

Returns

true if the pad could handle the event

This function will be called by [gstbase.global.typeFindHelperGetRange] when typefinding functions request to peek at the data of a stream at certain offsets. If this function returns GST_FLOW_OK, the result buffer will be stored in buffer. The contents of buffer is invalid for any other return value.

This function is supposed to behave exactly like a #GstPadGetRangeFunction.

Parameters

obja #GstObject that will handle the getrange request
parentthe parent of obj or null
offsetthe offset of the range
lengththe length of the range
buffera memory location to hold the result buffer

Returns

GST_FLOW_OK for success

Variables 4

enumvarBASE_PARSE_FLAG_DRAINING = 2
enumvarBASE_PARSE_FLAG_LOST_SYNC = 1
enumvarBASE_TRANSFORM_SINK_NAME = "sink"

The name of the templates for the sink pad.

enumvarBASE_TRANSFORM_SRC_NAME = "src"

The name of the templates for the source pad.