gstcheck.global

Global functions for gstcheck1 library

Functions 31

fngst.buffer.Buffer bufferStrawGetBuffer(gst.element.Element bin, gst.pad.Pad pad)Get 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...
fnvoid bufferStrawStartPipeline(gst.element.Element bin, gst.pad.Pad pad)Sets up a pipeline for buffer sucking. This will allow you to call [gstcheck.global.bufferStrawGetBuffer] to access buffers as they pass over pad.
fnvoid bufferStrawStopPipeline(gst.element.Element bin, gst.pad.Pad pad)Set bin to #GSTSTATENULL and release resource allocated in [gstcheck.global.bufferStrawStartPipeline].
fnvoid checkAbiList(gstcheck.check_abistruct.CheckABIStruct list, bool haveAbiSizes)Verifies that reference values and current values are equals in list.
fnvoid checkBufferData(gst.buffer.Buffer buffer, const(void) * data, size_t size)Compare the buffer contents with data and size.
fnvoid checkCapsEqual(gst.caps.Caps caps1, gst.caps.Caps caps2)Compare two caps with gstcapsis_equal and fail unless they are equal.
fngst.types.FlowReturn checkChainFunc(gst.pad.Pad pad, gst.object.ObjectWrap parent, gst.buffer.Buffer buffer)A fake chain function that appends the buffer to the internal list of buffers.
fnvoid checkClearLogFilter()Clear all filters added by gstcheckaddlogfilter.
fnvoid checkDropBuffers()Unref and remove all buffers that are in the global buffers GList, emptying the list.
fnvoid checkElementPushBuffer(string elementName, gst.buffer.Buffer bufferIn, gst.caps.Caps capsIn, gst.buffer.Buffer bufferOut, gst.caps.Caps capsOut)Create an element using the factory providing the elementname and push the bufferin to this element. The element should create one buffer and this will be compared with buffer_out. We only check th...
fnvoid checkObjectDestroyedOnUnref(void * objectToUnref = null)Unrefs objecttounref and checks that is has properly been destroyed.
fnvoid checkRemoveLogFilter(gstcheck.types.CheckLogFilter filter)Remove a filter that has been added by gstcheckaddlogfilter.
fngst.element.Element checkSetupElement(string factory)setup an element for a filter test with mysrcpad and mysinkpad
fnvoid checkSetupEvents(gst.pad.Pad srcpad, gst.element.Element element, gst.caps.Caps caps, gst.types.Format format)Push 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, ...
fnvoid checkSetupEventsWithStreamId(gst.pad.Pad srcpad, gst.element.Element element, gst.caps.Caps caps, gst.types.Format format, string streamId)Push stream-start, caps and segment event, which consist of the minimum required events to allow streaming. Caps is optional to allow raw src testing.
fngst.pad.Pad checkSetupSinkPad(gst.element.Element element, gst.static_pad_template.StaticPadTemplate tmpl)Does the same as #gstchecksetupsinkpadbyname with the <emphasis> name </emphasis> parameter equal to "src".
fngst.pad.Pad checkSetupSinkPadByName(gst.element.Element element, gst.static_pad_template.StaticPadTemplate tmpl, string name)Creates 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...
fngst.pad.Pad checkSetupSrcPad(gst.element.Element element, gst.static_pad_template.StaticPadTemplate tmpl)Does the same as #gstchecksetupsrcpadbyname with the <emphasis> name </emphasis> parameter equal to "sink".
fngst.pad.Pad checkSetupSrcPadByName(gst.element.Element element, gst.static_pad_template.StaticPadTemplate tmpl, string name)Creates 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 #...
fnvoid checkTeardownPadByName(gst.element.Element element, string name)
fnbool consistencyCheckerAddPad(gstcheck.types.StreamConsistency consist, gst.pad.Pad pad)Sets up a data probe on the given pad which will raise assertions if the data flow is inconsistent.
fnvoid consistencyCheckerFree(gstcheck.types.StreamConsistency consist)Frees the allocated data and probes associated with consist.
fnvoid consistencyCheckerReset(gstcheck.types.StreamConsistency consist)Reset the stream checker's internal variables.