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
data | the #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
pads | the #GstCollectPads that triggered the callback |
data | the #GstCollectData of pad that has received the buffer |
buffer | the #GstBuffer |
Returns
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
pads | a #GstCollectPads |
data | a #GstCollectData |
inbuffer | the input #GstBuffer |
outbuffer | the output #GstBuffer |
Returns
A function for comparing two timestamps of buffers or newsegments collected on one pad.
Parameters
pads | the #GstCollectPads that is comparing the timestamps |
data1 | the first #GstCollectData |
timestamp1 | the first timestamp |
data2 | the second #GstCollectData |
timestamp2 | the second timestamp |
Returns
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
pads | the #GstCollectPads that triggered the callback |
pad | the #GstPad that received an event |
event | the #GstEvent received |
Returns
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
pads | a #GstCollectPads |
A function that will be called when all pads have received data.
Parameters
pads | the #GstCollectPads that triggered the callback |
Returns
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
pads | the #GstCollectPads that triggered the callback |
pad | the #GstPad that received an event |
query | the #GstEvent received |
Returns
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
obj | a #GstObject that will handle the getrange request |
parent | the parent of obj or null |
offset | the offset of the range |
length | the length of the range |
buffer | a memory location to hold the result buffer |
Returns
Variables 4
BASE_PARSE_FLAG_DRAINING = 2BASE_PARSE_FLAG_LOST_SYNC = 1BASE_TRANSFORM_SINK_NAME = "sink"The name of the templates for the sink pad.
BASE_TRANSFORM_SRC_NAME = "src"The name of the templates for the source pad.