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)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...fn
void 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.fn
void bufferStrawStopPipeline(gst.element.Element bin, gst.pad.Pad pad)Set bin to #GSTSTATENULL and release resource allocated in [gstcheck.global.bufferStrawStartPipeline].fn
void checkAbiList(gstcheck.check_abistruct.CheckABIStruct list, bool haveAbiSizes)Verifies that reference values and current values are equals in list.fn
void checkBufferData(gst.buffer.Buffer buffer, const(void) * data, size_t size)Compare the buffer contents with data and size.fn
void checkCapsEqual(gst.caps.Caps caps1, gst.caps.Caps caps2)Compare two caps with gstcapsis_equal and fail unless they are equal.fn
gst.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.fn
void checkDropBuffers()Unref 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)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...fn
void checkMessageError(gst.message.Message message, gst.types.MessageType type, glib.types.Quark domain, int code)fn
void checkObjectDestroyedOnUnref(void * objectToUnref = null)Unrefs objecttounref and checks that is has properly been destroyed.fn
void checkRemoveLogFilter(gstcheck.types.CheckLogFilter filter)Remove a filter that has been added by gstcheckaddlogfilter.fn
gst.element.Element checkSetupElement(string factory)setup 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)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, ...fn
void 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.fn
gst.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".fn
gst.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...fn
gst.pad.Pad checkSetupSinkPadByNameFromTemplate(gst.element.Element element, gst.pad_template.PadTemplate tmpl, string name)fn
gst.pad.Pad checkSetupSinkPadFromTemplate(gst.element.Element element, gst.pad_template.PadTemplate tmpl)fn
gst.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".fn
gst.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 #...fn
gst.pad.Pad checkSetupSrcPadByNameFromTemplate(gst.element.Element element, gst.pad_template.PadTemplate tmpl, string name)fn
gst.pad.Pad checkSetupSrcPadFromTemplate(gst.element.Element element, gst.pad_template.PadTemplate tmpl)fn
void checkTeardownElement(gst.element.Element element)fn
void checkTeardownPadByName(gst.element.Element element, string name)fn
void checkTeardownSinkPad(gst.element.Element element)fn
void checkTeardownSrcPad(gst.element.Element element)fn
bool 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.fn
void consistencyCheckerFree(gstcheck.types.StreamConsistency consist)Frees the allocated data and probes associated with consist.fn
void consistencyCheckerReset(gstcheck.types.StreamConsistency consist)Reset the stream checker's internal variables.