GstVideo.VideoAggregatorPad¶
- Subclasses:
Methods¶
- Inherited:
GstBase.AggregatorPad (6), Gst.Pad (84), Gst.Object (27), GObject.Object (37)
- Structs:
|
Virtual Methods¶
- Inherited:
GstBase.AggregatorPad (2), Gst.Pad (2), Gst.Object (1), GObject.Object (7)
|
|
|
|
|
|
|
|
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w |
Repeat last buffer for time (in ns, -1=until EOS), behaviour on EOS is not affected |
||
r/w |
Repeat the last frame after EOS until all pads are EOS |
||
r/w |
Z Order of the picture |
Signals¶
- Inherited:
GstBase.AggregatorPad (1), Gst.Pad (2), Gst.Object (1), GObject.Object (1)
Fields¶
- Inherited:
GstBase.AggregatorPad (1), Gst.Pad (2), Gst.Object (1), GObject.Object (1)
Name |
Type |
Access |
Description |
|---|---|---|---|
info |
r |
The |
|
parent |
r |
Class Details¶
- class GstVideo.VideoAggregatorPad(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
New in version 1.16.
- get_current_buffer()[source]¶
- Returns:
The currently queued buffer
- Return type:
Returns the currently queued buffer that is going to be used for the current output frame.
This must only be called from the #GstVideoAggregatorClass::aggregate_frames virtual method, or from the #GstVideoAggregatorPadClass::prepare_frame virtual method of the aggregator pads.
The return value is only valid until #GstVideoAggregatorClass::aggregate_frames or #GstVideoAggregatorPadClass::prepare_frame returns.
- get_prepared_frame()[source]¶
- Returns:
The currently prepared video frame
- Return type:
Returns the currently prepared video frame that has to be aggregated into the current output frame.
This must only be called from the #GstVideoAggregatorClass::aggregate_frames virtual method, or from the #GstVideoAggregatorPadClass::prepare_frame virtual method of the aggregator pads.
The return value is only valid until #GstVideoAggregatorClass::aggregate_frames or #GstVideoAggregatorPadClass::prepare_frame returns.
- has_current_buffer()[source]¶
-
Checks if the pad currently has a buffer queued that is going to be used for the current output frame.
This must only be called from the #GstVideoAggregatorClass::aggregate_frames virtual method, or from the #GstVideoAggregatorPadClass::prepare_frame virtual method of the aggregator pads.
- set_needs_alpha(needs_alpha)[source]¶
-
Allows selecting that this pad requires an output format with alpha
- do_clean_frame(videoaggregator, prepared_frame) virtual¶
- Parameters:
videoaggregator (
GstVideo.VideoAggregator) –prepared_frame (
GstVideo.VideoFrame) –
clean the frame previously prepared in prepare_frame
- do_prepare_frame(videoaggregator, buffer, prepared_frame) virtual¶
- Parameters:
videoaggregator (
GstVideo.VideoAggregator) –buffer (
Gst.Buffer) –prepared_frame (
GstVideo.VideoFrame) –
- Return type:
Prepare the frame from the pad buffer and sets it to prepared_frame. Implementations should always return
True. ReturningFalsewill cease iteration over subsequent pads.
- do_prepare_frame_finish(videoaggregator, prepared_frame) virtual¶
- Parameters:
videoaggregator (
GstVideo.VideoAggregator) – the parentGstVideo.VideoAggregatorprepared_frame (
GstVideo.VideoFrame) – theGstVideo.VideoFrameto prepare into
Finish preparing prepared_frame.
If overriden,
prepare_frame_startmust also be overriden.New in version 1.20.
- do_prepare_frame_start(videoaggregator, buffer, prepared_frame) virtual¶
- Parameters:
videoaggregator (
GstVideo.VideoAggregator) – the parentGstVideo.VideoAggregatorbuffer (
Gst.Buffer) – the inputGst.Bufferto prepareprepared_frame (
GstVideo.VideoFrame) – theGstVideo.VideoFrameto prepare into
Begin preparing the frame from the pad buffer and sets it to prepared_frame.
If overriden,
prepare_frame_finishmust also be overriden.New in version 1.20.
- do_update_conversion_info() virtual¶
Called when either the input or output formats have changed.
Property Details¶
- GstVideo.VideoAggregatorPad.props.max_last_buffer_repeat¶
- Name:
max-last-buffer-repeat- Type:
- Default Value:
18446744073709551615- Flags:
Repeat last buffer for time (in ns, -1=until EOS), behaviour on EOS is not affected
- GstVideo.VideoAggregatorPad.props.repeat_after_eos¶
-
Repeat the last frame after EOS until all pads are EOS