Versions in this module Expand all Collapse all v1 v1.3.1 Oct 23, 2024 v1.2.2 Oct 23, 2024 Changes in this version + var ErrEOS = errors.New("pipeline has reached end-of-stream") + type Sink struct + func NewAppSink() (*Sink, error) + func SinkFromElement(elem *gst.Element) *Sink + func (a *Sink) GetBufferListSupport() bool + func (a *Sink) GetCaps() *gst.Caps + func (a *Sink) GetDrop() bool + func (a *Sink) GetEmitSignals() bool + func (a *Sink) GetMaxBuffers() uint + func (a *Sink) GetWaitOnEOS() bool + func (a *Sink) Instance() *C.GstAppSink + func (a *Sink) IsEOS() bool + func (a *Sink) PullPreroll() *gst.Sample + func (a *Sink) PullSample() *gst.Sample + func (a *Sink) SetBufferListSupport(enabled bool) + func (a *Sink) SetCallbacks(cbs *SinkCallbacks) + func (a *Sink) SetCaps(caps *gst.Caps) + func (a *Sink) SetDrop(drop bool) + func (a *Sink) SetEmitSignals(emit bool) + func (a *Sink) SetMaxBuffers(max uint) + func (a *Sink) SetWaitOnEOS(wait bool) + func (a *Sink) TryPullPreroll(timeout gst.ClockTime) *gst.Sample + func (a *Sink) TryPullSample(timeout gst.ClockTime) *gst.Sample + type SinkCallbacks struct + EOSFunc func(appSink *Sink) + NewPrerollFunc func(appSink *Sink) gst.FlowReturn + NewSampleFunc func(appSink *Sink) gst.FlowReturn + type Source struct + func NewAppSrc() (*Source, error) + func SrcFromElement(elem *gst.Element) *Source + func (a *Source) EndStream() gst.FlowReturn + func (a *Source) GetCaps() *gst.Caps + func (a *Source) GetCurrentLevelBytes() uint64 + func (a *Source) GetDuration() gst.ClockTime + func (a *Source) GetEmitSignals() bool + func (a *Source) GetLatency() (min, max uint64) + func (a *Source) GetMaxBytes() uint64 + func (a *Source) GetSize() int64 + func (a *Source) GetStreamType() StreamType + func (a *Source) Instance() *C.GstAppSrc + func (a *Source) PushBuffer(buf *gst.Buffer) gst.FlowReturn + func (a *Source) PushBufferList(bufList *gst.BufferList) gst.FlowReturn + func (a *Source) PushSample(sample *gst.Sample) gst.FlowReturn + func (a *Source) SetCallbacks(cbs *SourceCallbacks) + func (a *Source) SetCaps(caps *gst.Caps) + func (a *Source) SetDuration(dur gst.ClockTime) + func (a *Source) SetEmitSignals(emit bool) + func (a *Source) SetLatency(min, max uint64) + func (a *Source) SetMaxBytes(max uint64) + func (a *Source) SetSize(size int64) + func (a *Source) SetStreamType(streamType StreamType) + type SourceCallbacks struct + EnoughDataFunc func(src *Source) + NeedDataFunc func(src *Source, length uint) + SeekDataFunc func(src *Source, offset uint64) bool + type StreamType int + const AppStreamTypeRandomAccess + const AppStreamTypeSeekable + const AppStreamTypeStream