- bufferStrawGetBuffer
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 to fail out in the case that a
buffer never arrives.
- bufferStrawStartPipeline
void bufferStrawStartPipeline(gst.element.Element bin, gst.pad.Pad pad)
- bufferStrawStopPipeline
void bufferStrawStopPipeline(gst.element.Element bin, gst.pad.Pad pad)
- checkAbiList
void checkAbiList(gstcheck.check_abistruct.CheckABIStruct list, bool haveAbiSizes)
Verifies that reference values and current values are equals in list.
- checkBufferData
void checkBufferData(gst.buffer.Buffer buffer, const(void)* data, size_t size)
Compare the buffer contents with data and size.
- checkCapsEqual
void checkCapsEqual(gst.caps.Caps caps1, gst.caps.Caps caps2)
Compare two caps with gst_caps_is_equal and fail unless they are
equal.
- checkChainFunc
gst.types.FlowReturn checkChainFunc(gst.pad.Pad pad, gst.object.ObjectGst parent, gst.buffer.Buffer buffer)
A fake chain function that appends the buffer to the internal list of
buffers.
- checkClearLogFilter
void checkClearLogFilter()
Clear all filters added by gst_check_add_log_filter.
- checkDropBuffers
void checkDropBuffers()
Unref and remove all buffers that are in the global buffers GList,
emptying the list.
- checkElementPushBuffer
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 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 the caps
and the data of the buffers. This function unrefs the buffers.
- checkMessageError
void checkMessageError(gst.message.Message message, gst.types.MessageType type, glib.types.Quark domain, int code)
- checkObjectDestroyedOnUnref
void checkObjectDestroyedOnUnref(void* objectToUnref)
Unrefs object_to_unref and checks that is has properly been
destroyed.
- checkRemoveLogFilter
void checkRemoveLogFilter(gstcheck.types.CheckLogFilter filter)
Remove a filter that has been added by gst_check_add_log_filter.
- checkSetupElement
gst.element.Element checkSetupElement(string factory)
setup an element for a filter test with mysrcpad and mysinkpad
- checkSetupEvents
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, use
gstcheck.global.checkSetupEventsWithStreamId instead.
- checkSetupEventsWithStreamId
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.
- checkSetupSinkPad
gst.pad.Pad checkSetupSinkPad(gst.element.Element element, gst.static_pad_template.StaticPadTemplate tmpl)
Does the same as #gst_check_setup_sink_pad_by_name with the <emphasis> name </emphasis> parameter equal to "src".
- checkSetupSinkPadByName
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 output of the element.
- checkSetupSinkPadByNameFromTemplate
gst.pad.Pad checkSetupSinkPadByNameFromTemplate(gst.element.Element element, gst.pad_template.PadTemplate tmpl, string name)
- checkSetupSinkPadFromTemplate
gst.pad.Pad checkSetupSinkPadFromTemplate(gst.element.Element element, gst.pad_template.PadTemplate tmpl)
- checkSetupSrcPad
gst.pad.Pad checkSetupSrcPad(gst.element.Element element, gst.static_pad_template.StaticPadTemplate tmpl)
Does the same as #gst_check_setup_src_pad_by_name with the <emphasis> name </emphasis> parameter equal to "sink".
- checkSetupSrcPadByName
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 #gst_check_setup_events on the created src pad.
- checkSetupSrcPadByNameFromTemplate
gst.pad.Pad checkSetupSrcPadByNameFromTemplate(gst.element.Element element, gst.pad_template.PadTemplate tmpl, string name)
- checkSetupSrcPadFromTemplate
gst.pad.Pad checkSetupSrcPadFromTemplate(gst.element.Element element, gst.pad_template.PadTemplate tmpl)
- checkTeardownElement
void checkTeardownElement(gst.element.Element element)
- checkTeardownPadByName
void checkTeardownPadByName(gst.element.Element element, string name)
- checkTeardownSinkPad
void checkTeardownSinkPad(gst.element.Element element)
- checkTeardownSrcPad
void checkTeardownSrcPad(gst.element.Element element)
- consistencyCheckerAddPad
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.
- consistencyCheckerFree
void consistencyCheckerFree(gstcheck.types.StreamConsistency consist)
Frees the allocated data and probes associated with consist.
- consistencyCheckerReset
void consistencyCheckerReset(gstcheck.types.StreamConsistency consist)
Reset the stream checker's internal variables.