gstcheck.global
Global functions for gstcheck1 library
fn bufferStrawGetBuffer bufferStrawStartPipeline bufferStrawStopPipeline checkAbiList checkBufferData checkCapsEqual checkChainFunc checkClearLogFilter checkDropBuffers checkElementPushBuffer checkMessageError checkObjectDestroyedOnUnref checkRemoveLogFilter checkSetupElement checkSetupEvents checkSetupEventsWithStreamId checkSetupSinkPad checkSetupSinkPadByName checkSetupSinkPadByNameFromTemplate checkSetupSinkPadFromTemplate checkSetupSrcPad checkSetupSrcPadByName checkSetupSrcPadByNameFromTemplate checkSetupSrcPadFromTemplate checkTeardownElement checkTeardownPadByName checkTeardownSinkPad checkTeardownSrcPad consistencyCheckerAddPad consistencyCheckerFree consistencyCheckerReset
Functions 31
fn
gst.buffer.Buffer bufferStrawGetBuffer(gst.element.Element bin, gst.pad.Pad pad) nothrowGet one buffer from pad. Implemented via buffer probes. This function will block until the pipeline passes a buffer over pad, so for robust behavior in unit tests, you need to use check's timeout t...fn
void bufferStrawStartPipeline(gst.element.Element bin, gst.pad.Pad pad) nothrowSets up a pipeline for buffer sucking. This will allow you to call [gstcheck.global.bufferStrawGetBuffer] to access buffers as they pass over pad.fn
void bufferStrawStopPipeline(gst.element.Element bin, gst.pad.Pad pad) nothrowSet bin to #GST_STATE_NULL and release resource allocated in [gstcheck.global.bufferStrawStartPipeline].fn
void checkAbiList(gstcheck.check_abistruct.CheckABIStruct list, bool haveAbiSizes) nothrowVerifies that reference values and current values are equals in list.fn
void checkBufferData(gst.buffer.Buffer buffer, const(void) * data, size_t size) nothrowCompare the buffer contents with data and size.fn
void checkCapsEqual(gst.caps.Caps caps1, gst.caps.Caps caps2) nothrowCompare two caps with gst_caps_is_equal and fail unless they are equal.fn
gst.types.FlowReturn checkChainFunc(gst.pad.Pad pad, gst.object.ObjectWrap parent, gst.buffer.Buffer buffer) nothrowA fake chain function that appends the buffer to the internal list of buffers.fn
void checkDropBuffers() nothrowUnref and remove all buffers that are in the global buffers GList, emptying the list.fn
void checkElementPushBuffer(string elementName, gst.buffer.Buffer bufferIn, gst.caps.Caps capsIn, gst.buffer.Buffer bufferOut, gst.caps.Caps capsOut) nothrowCreate an element using the factory providing the element_name and push the buffer_in to this element. The element should create one buffer and this will be compared with buffer_out. We only check ...fn
void checkMessageError(gst.message.Message message, gst.types.MessageType type, glib.types.Quark domain, int code) nothrowfn
void checkObjectDestroyedOnUnref(void * objectToUnref = null) nothrowUnrefs object_to_unref and checks that is has properly been destroyed.fn
void checkRemoveLogFilter(gstcheck.types.CheckLogFilter filter) nothrowRemove a filter that has been added by gst_check_add_log_filter.fn
gst.element.Element checkSetupElement(string factory) nothrowsetup an element for a filter test with mysrcpad and mysinkpadfn
void checkSetupEvents(gst.pad.Pad srcpad, gst.element.Element element, gst.caps.Caps caps, gst.types.Format format) nothrowPush stream-start, caps and segment event, which consist of the minimum required events to allow streaming. Caps is optional to allow raw src testing. If element has more than one src or sink pad, ...fn
void checkSetupEventsWithStreamId(gst.pad.Pad srcpad, gst.element.Element element, gst.caps.Caps caps, gst.types.Format format, string streamId) nothrowPush stream-start, caps and segment event, which consist of the minimum required events to allow streaming. Caps is optional to allow raw src testing.fn
gst.pad.Pad checkSetupSinkPad(gst.element.Element element, gst.static_pad_template.StaticPadTemplate tmpl) nothrowDoes the same as #gst_check_setup_sink_pad_by_name with the <emphasis> name </emphasis> parameter equal to "src".fn
gst.pad.Pad checkSetupSinkPadByName(gst.element.Element element, gst.static_pad_template.StaticPadTemplate tmpl, string name) nothrowCreates a new sink pad (based on the given tmpl) and links it to the given element src pad (the pad that matches the given name). You can set event/chain/query functions on this pad to check the ou...fn
gst.pad.Pad checkSetupSinkPadByNameFromTemplate(gst.element.Element element, gst.pad_template.PadTemplate tmpl, string name) nothrowfn
gst.pad.Pad checkSetupSinkPadFromTemplate(gst.element.Element element, gst.pad_template.PadTemplate tmpl) nothrowfn
gst.pad.Pad checkSetupSrcPad(gst.element.Element element, gst.static_pad_template.StaticPadTemplate tmpl) nothrowDoes the same as #gst_check_setup_src_pad_by_name with the <emphasis> name </emphasis> parameter equal to "sink".fn
gst.pad.Pad checkSetupSrcPadByName(gst.element.Element element, gst.static_pad_template.StaticPadTemplate tmpl, string name) nothrowCreates a new src pad (based on the given tmpl) and links it to the given element sink pad (the pad that matches the given name). Before using the src pad to push data on element you need to call #...fn
gst.pad.Pad checkSetupSrcPadByNameFromTemplate(gst.element.Element element, gst.pad_template.PadTemplate tmpl, string name) nothrowfn
gst.pad.Pad checkSetupSrcPadFromTemplate(gst.element.Element element, gst.pad_template.PadTemplate tmpl) nothrowfn
bool consistencyCheckerAddPad(gstcheck.types.StreamConsistency consist, gst.pad.Pad pad) nothrowSets up a data probe on the given pad which will raise assertions if the data flow is inconsistent.fn
void consistencyCheckerFree(gstcheck.types.StreamConsistency consist) nothrowFrees the allocated data and probes associated with consist.fn
void consistencyCheckerReset(gstcheck.types.StreamConsistency consist) nothrowReset the stream checker's internal variables.