gstreamer-check-1.0
Description:
GStreamer Check Unit Testing
- Home: https://gstreamer.freedesktop.org/
- C-Documentation: https://gstreamer.freedesktop.org/documentation/check/index.html
- Devhelp-Package download
Content:
Namespaces:
- Gst
- Check
- HarnessThread - Opaque handle representing a GstHarness stress testing thread.
- LogFilter - Opaque structure containing data about a log filter function.
- StreamConsistency - Opaque consistency checker handle.
- TestClock - GstTestClock is an implementation of Clock which has different behaviour compared to SystemClock.
- public delegate Buffer HarnessPrepareBufferFunc (Harness h, void* data)
- public delegate Event HarnessPrepareEventFunc (Harness h, void* data)
- public delegate bool LogFilterFunc (string log_domain, LogLevelFlags log_level, string message)
A function that is called for messages matching the filter added by
gst_check_add_log_filter
. - public void abi_list (ABIStruct list, bool have_abi_sizes)
Verifies that reference values and current values are equals in
list
. - public void buffer_data (Buffer buffer, void* data, size_t size)
Compare the buffer contents with
data
andsize
. - public Buffer buffer_straw_get_buffer (Element bin, Pad pad)
Get one buffer from
pad
. - public void buffer_straw_start_pipeline (Element bin, Pad pad)
Sets up a pipeline for buffer sucking.
- public void buffer_straw_stop_pipeline (Element bin, Pad pad)
Set
bin
to NULL and release resource allocated in buffer_straw_start_pipeline. - public void caps_equal (Caps caps1, Caps caps2)
Compare two caps with gst_caps_is_equal and fail unless they are equal.
- public FlowReturn chain_func (Pad pad, Object parent, Buffer buffer)
A fake chain function that appends the buffer to the internal list of buffers.
- public void clear_log_filter ()
Clear all filters added by
gst_check_add_log_filter
. - public void drop_buffers ()
Unref and remove all buffers that are in the global
buffers
GList, emptying the list. - public void element_push_buffer (string element_name, Buffer buffer_in, Caps caps_in, Buffer buffer_out, Caps caps_out)
Create an element using the factory providing the
element_name
and push thebuffer_in
to this element. - public void element_push_buffer_list (string element_name, owned List<Buffer> buffer_in, Caps caps_in, owned List<Buffer> buffer_out, Caps caps_out, FlowReturn last_flow_return)
Create an element using the factory providing the
element_name
and push the buffers inbuffer_in
to this element. - public uint harness_stress_thread_stop (HarnessThread t)
- public void init (int argc, string argv)
- public void message_error (Message message, MessageType type, Quark domain, int code)
- public void object_destroyed_on_unref (void* object_to_unref)
Unrefs
object_to_unref
and checks that is has properly been destroyed. - public void remove_log_filter (LogFilter filter)
Remove a filter that has been added by
gst_check_add_log_filter
. - public Element setup_element (string factory)
setup an element for a filter test with mysrcpad and mysinkpad
- public void setup_events (Pad srcpad, Element element, Caps? caps, Format format)
Push stream-start, caps and segment event, which consist of the minimum required events to allow streaming.
- public void setup_events_with_stream_id (Pad srcpad, Element element, Caps? caps, Format format, string stream_id)
Push stream-start, caps and segment event, which consist of the minimum required events to allow streaming.
- public Pad setup_sink_pad (Element element, StaticPadTemplate tmpl)
Does the same as setup_sink_pad_by_name with the
name
parameter equal to "src". - public Pad setup_sink_pad_by_name (Element element, StaticPadTemplate tmpl, string name)
Creates a new sink pad (based on the given
tmpl
) and links it to the givenelement
src pad (the pad that matches the givenname
). - public Pad setup_sink_pad_by_name_from_template (Element element, PadTemplate tmpl, string name)
- public Pad setup_sink_pad_from_template (Element element, PadTemplate tmpl)
- public Pad setup_src_pad (Element element, StaticPadTemplate tmpl)
Does the same as setup_src_pad_by_name with the
name
parameter equal to "sink". - public Pad setup_src_pad_by_name (Element element, StaticPadTemplate tmpl, string name)
Creates a new src pad (based on the given
tmpl
) and links it to the givenelement
sink pad (the pad that matches the givenname
). - public Pad setup_src_pad_by_name_from_template (Element element, PadTemplate tmpl, string name)
- public Pad setup_src_pad_from_template (Element element, PadTemplate tmpl)
- public void teardown_element (Element element)
- public void teardown_pad_by_name (Element element, string name)
- public void teardown_sink_pad (Element element)
- public void teardown_src_pad (Element element)