- public void abort_state ()
Abort the state change of the element.
- public bool add_pad (Pad pad)
Adds a pad (link point) to element.
- public virtual StateChangeReturn change_state (StateChange transition)
Perform transition on element.
- public StateChangeReturn continue_state (StateChangeReturn ret)
Commit the state change of the element and proceed to the next pending
state if any.
- public void create_all_pads ()
Creates a pad for each pad template that is always available.
- public void found_tags (owned TagList list)
Posts a message to the bus that new tags were found, and pushes an event
to all sourcepads.
- public void found_tags_for_pad (Pad pad, owned TagList list)
Posts a message to the bus that new tags were found and pushes the tags
as event.
- public ClockTime get_base_time ()
Returns the base time of the element.
- public Bus? get_bus ()
Returns the bus of the element.
- public Clock? get_clock ()
Gets the currently configured clock of the element.
- public Pad? get_compatible_pad (Pad pad, Caps? caps)
Looks for an unlinked pad to which the given pad can link.
- public weak PadTemplate? get_compatible_pad_template (PadTemplate compattempl)
Retrieves a pad template from element that is compatible
with compattempl.
- public weak ElementFactory? get_factory ()
Retrieves the factory that was used to create this element.
- public virtual Index? get_index ()
Gets the index from the element.
- public Pad? get_pad (string name)
Retrieves a pad from element by name.
- public virtual weak QueryType[]? get_query_types ()
Get an array of query types from the element.
- public Pad? get_request_pad (string name)
Retrieves a pad from the element by name (e.g. "src_\%d").
- public ClockTime get_start_time ()
Returns the start time of the element.
- public virtual StateChangeReturn get_state (out State state, out State pending, ClockTime timeout)
Gets the state of the element.
- public Pad? get_static_pad (string name)
Retrieves a pad from element by name.
- public bool implements_interface (Type iface_type)
Test whether the given element implements a certain interface of type
iface_type, and test whether it is supported for this specific instance.
- public bool is_indexable ()
Queries if the element can be indexed.
- public bool is_locked_state ()
Checks if the state of an element is locked.
- public Iterator<Pad> iterate_pads ()
Retrieves an iterator of element's pads.
- public Iterator<Pad> iterate_sink_pads ()
Retrieves an iterator of element's sink pads.
- public Iterator<Pad> iterate_src_pads ()
Retrieves an iterator of element's source pads.
- public bool link (Element dest)
Links src to dest.
- public bool link_filtered (Element dest, Caps filter)
Links src to dest using the given caps as
filtercaps.
- public bool link_many (Element element_2, ...)
Chain together a series of elements.
- public bool link_pads (string srcpadname, Element dest, string destpadname)
Links the two named pads of the source and destination elements.
- public bool link_pads_filtered (string srcpadname, Element dest, string destpadname, Caps filter)
Links the two named pads of the source and destination elements.
- public bool link_pads_full (string srcpadname, Element dest, string destpadname, PadLinkCheck flags)
Links the two named pads of the source and destination elements.
- public void lost_state ()
Brings the element to the lost state.
- public void lost_state_full (bool new_base_time)
Brings the element to the lost state.
- public void message_full (MessageType type, Quark domain, int code, owned string? text, owned string? debug, string file, string function, int line)
Post an error, warning or info message on the bus from inside an
element.
- public bool post_message (owned Message message)
Post a message on the element's
Bus.
- public virtual Clock? provide_clock ()
Get the clock provided by the given element.
- public bool provides_clock ()
Query if the element provides a clock.
- public virtual bool query (Query query)
Performs a query on the given element.
- public bool query_convert (Format src_format, int64 src_val, ref Format dest_format, out int64 dest_val)
Queries an element to convert src_val in src_format
to dest_format.
- public bool query_duration (ref Format format, out int64 duration)
Queries an element for the total stream duration.
- public bool query_position (ref Format format, out int64 cur)
Queries an element for the stream position.
- public virtual void release_pad (Pad pad)
- public void release_request_pad (Pad pad)
Makes the element free the previously requested pad as obtained with
get_request_pad.
- public bool remove_pad (Pad pad)
Removes pad from element.
- public virtual weak Pad request_new_pad (PadTemplate templ, string? name)
- public virtual weak Pad request_new_pad_full (PadTemplate templ, string name, Caps caps)
- public weak Pad request_pad (PadTemplate templ, string name, Caps caps)
Retrieves a request pad from the element according to the provided
template.
- public bool requires_clock ()
Query if the element requires a clock.
- public bool seek (double rate, Format format, SeekFlags flags, SeekType cur_type, int64 cur, SeekType stop_type, int64 stop)
Sends a seek event to an element.
- public bool seek_simple (Format format, SeekFlags seek_flags, int64 seek_pos)
Simple API to perform a seek on the given element, meaning it just seeks
to the given position relative to the start of the stream.
- public virtual bool send_event (owned Event event)
Sends an event to an element.
- public void set_base_time (ClockTime time)
Set the base time of an element.
- public virtual void set_bus (Bus? bus)
Sets the bus of the element.
- public virtual bool set_clock (Clock? clock)
Sets the clock for the element.
- public virtual void set_index (Index? index)
Set index on the element.
- public bool set_locked_state (bool locked_state)
Locks the state of an element, so state changes of the parent don't
affect this element anymore.
- public void set_start_time (ClockTime time)
Set the start time of an element.
- public virtual StateChangeReturn set_state (State state)
Sets the state of the element.
- public virtual void state_changed (State oldstate, State newstate, State pending)
- public bool sync_state_with_parent ()
Tries to change the state of the element to the same as its parent.
- public void unlink (Element dest)
Unlinks all source pads of the source element with all sink pads of the
sink element to which they are linked.
- public void unlink_many (Element element_2, ...)
Unlinks a series of elements.
- public void unlink_pads (string srcpadname, Element dest, string destpadname)
Unlinks the two named pads of the source and destination elements.