Class: Gst::PadTemplate

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Methods inherited from Object

#add_control_binding, check_uniqueness, #control_bindings_disabled=, #control_rate, #control_rate=, default_deep_notify, #default_error, #get_control_binding, #get_g_value_array, #get_value, #get_value_array, #has_active_control_bindings, #has_ancestor, #has_as_ancestor, #has_as_parent, #name, #name=, #parent, #parent=, #path_string, #ref, ref_sink, #remove_control_binding, replace, #set_control_binding_disabled, #suggest_next_sync, #sync_values, #unparent, #unref

Constructor Details

#initialize(name_template, direction, presence, caps, pad_type) ⇒ Gst::PadTemplate

Creates a new pad template with a name according to the given template and with the given arguments.

Parameters:

  • name_template (String)

    the name template.

  • direction (Gst::PadDirection)

    the Gst::PadDirection of the template.

  • presence (Gst::PadPresence)

    the Gst::PadPresence of the pad.

  • caps (Gst::Caps)

    a Gst::Caps set for the template.

  • pad_type (GLib::Type)

    The #GType of the pad to create

Instance Method Details

#capsGst::Caps

The capabilities of the pad described by the pad template.

Returns:

#caps=(caps) ⇒ Gst::Caps

The capabilities of the pad described by the pad template.

Parameters:

Returns:

#directionGst::PadDirection

The direction of the pad described by the pad template.

Returns:

#direction=(direction) ⇒ Gst::PadDirection

The direction of the pad described by the pad template.

Parameters:

Returns:

#documentation_capsGst::Caps

See gst_pad_template_set_documentation_caps().

Returns:

  • (Gst::Caps)

    The caps to document. For convenience, this will return gst_pad_template_get_caps() when no documentation caps were set.

#documentation_caps=(caps) ⇒ nil

Certain elements will dynamically construct the caps of their pad templates. In order not to let environment-specific information into the documentation, element authors should use this method to expose "stable" caps to the reader.

Parameters:

  • caps (Gst::Caps)

    the documented capabilities

Returns:

  • (nil)

#gtypeGLib::Type

The type of the pad described by the pad template.

Returns:

  • (GLib::Type)

    gtype

#gtype=(gtype) ⇒ GLib::Type

The type of the pad described by the pad template.

Parameters:

  • gtype (GLib::Type)

Returns:

  • (GLib::Type)

    gtype

  • (GLib::Type)

    gtype

#name_templateString

The name template of the pad template.

Returns:

  • (String)

    name-template

#name_template=(name_template) ⇒ String

The name template of the pad template.

Parameters:

  • name_template (String)

Returns:

  • (String)

    name-template

  • (String)

    name-template

#pad_created(pad) ⇒ nil

Emit the pad-created signal for this template when created by this pad.

Parameters:

  • pad (Gst::Pad)

    the Gst::Pad that created it

Returns:

  • (nil)

#presenceGst::PadPresence

When the pad described by the pad template will become available.

Returns:

#presence=(presence) ⇒ Gst::PadPresence

When the pad described by the pad template will become available.

Parameters:

Returns: