Gst.GhostPad¶
- Subclasses:
- None 
Methods¶
- Inherited:
- Gst.ProxyPad (5), Gst.Pad (84), Gst.Object (27), GObject.Object (37) 
- Structs:
| class | 
 | 
| class | 
 | 
| class | 
 | 
| class | 
 | 
| class | 
 | 
| class | 
 | 
| 
 | |
| 
 | |
| 
 | 
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
| Name | Type | Access | Description | 
|---|---|---|---|
| pad | r | 
Class Details¶
- class Gst.GhostPad(**kwargs)¶
- Bases:
- Abstract:
- No 
- Structure:
 - GhostPads are useful when organizing pipelines with - Gst.Binlike elements. The idea here is to create hierarchical element graphs. The bin element contains a sub-graph. Now one would like to treat the bin-element like any other- Gst.Element. This is where GhostPads come into play. A GhostPad acts as a proxy for another pad. Thus the bin can have sink and source ghost-pads that are associated with sink and source pads of the child elements.- If the target pad is known at creation time, - Gst.GhostPad.new() is the function to use to get a ghost-pad. Otherwise one can use- Gst.GhostPad.new_no_target() to create the ghost-pad and use- Gst.GhostPad.set_target() to establish the association later on.- Note that GhostPads add overhead to the data processing of a pipeline. - classmethod activate_mode_default(pad, parent, mode, active)[source]¶
- Parameters:
- parent ( - Gst.Objector- None) – the parent of pad or- None
- mode ( - Gst.PadMode) – the requested activation mode
- active ( - bool) – whether the pad should be active or not.
 
- Returns:
- Trueif the operation was successful.
- Return type:
 - Invoke the default activate mode function of a ghost pad. 
 - classmethod internal_activate_mode_default(pad, parent, mode, active)[source]¶
- Parameters:
- parent ( - Gst.Objector- None) – the parent of pad or- None
- mode ( - Gst.PadMode) – the requested activation mode
- active ( - bool) – whether the pad should be active or not.
 
- Returns:
- Trueif the operation was successful.
- Return type:
 - Invoke the default activate mode function of a proxy pad that is owned by a ghost pad. 
 - classmethod new(name, target)[source]¶
- Parameters:
- Returns:
- Return type:
 - Create a new ghostpad with target as the target. The direction will be taken from the target pad. target must be unlinked. - Will ref the target. 
 - classmethod new_from_template(name, target, templ)[source]¶
- Parameters:
- name ( - stror- None) – the name of the new pad, or- Noneto assign a default name.
- target ( - Gst.Pad) – the pad to ghost.
- templ ( - Gst.PadTemplate) – the- Gst.PadTemplateto use on the ghostpad.
 
- Returns:
- Return type:
 - Create a new ghostpad with target as the target. The direction will be taken from the target pad. The template used on the ghostpad will be template. - Will ref the target. 
 - classmethod new_no_target(name, dir)[source]¶
- Parameters:
- name ( - stror- None) – the name of the new pad, or- Noneto assign a default name.
- dir ( - Gst.PadDirection) – the direction of the ghostpad
 
- Returns:
- Return type:
 - Create a new ghostpad without a target with the given direction. A target can be set on the ghostpad later with the - Gst.GhostPad.set_target() function.- The created ghostpad will not have a padtemplate. 
 - classmethod new_no_target_from_template(name, templ)[source]¶
- Parameters:
- name ( - stror- None) – the name of the new pad, or- Noneto assign a default name
- templ ( - Gst.PadTemplate) – the- Gst.PadTemplateto create the ghostpad from.
 
- Returns:
- Return type:
 - Create a new ghostpad based on templ, without setting a target. The direction will be taken from the templ. 
 - construct()[source]¶
- 
Finish initialization of a newly allocated ghost pad. This function is most useful in language bindings and when subclassing Gst.GhostPad; plugin and application developers normally will not call this function. Call this function directly after a call to g_object_new (GST_TYPE_GHOST_PAD, “direction”, dir, …,None).Deprecated since version ???: This function is deprecated since 1.18 and does nothing anymore. 
 - get_target()[source]¶
- Returns:
- the target - Gst.Pad, can be- Noneif the ghostpad has no target set. Unref target pad after usage.
- Return type:
 - Get the target pad of self. Unref target pad after usage. 
 - set_target(newtarget)[source]¶
- Parameters:
- Returns:
- Trueif the new target could be set. This function can return- Falsewhen the internal pads could not be linked.
- Return type:
 - Set the new target of the ghostpad self. Any existing target is unlinked and links to the new target are established. if newtarget is - Nonethe target will be cleared.