Versions in this module Expand all Collapse all v0 v0.1.1 Dec 13, 2020 Changes in this version + const GST_FLOW_EOS + const GST_FLOW_ERROR + const GST_FLOW_FLUSHING + const GST_FLOW_NOT_LINKED + const GST_FLOW_NOT_NEGOTIATED + const GST_FLOW_NOT_SUPPORTED + const GST_FLOW_OK + const MESSAGE_ANY + const MESSAGE_APPLICATION + const MESSAGE_ASYNC_DONE + const MESSAGE_ASYNC_START + const MESSAGE_BUFFERING + const MESSAGE_CLOCK_LOST + const MESSAGE_CLOCK_PROVIDE + const MESSAGE_DURATION + const MESSAGE_ELEMENT + const MESSAGE_EOS + const MESSAGE_ERROR + const MESSAGE_INFO + const MESSAGE_LATENCY + const MESSAGE_NEW_CLOCK + const MESSAGE_QOS + const MESSAGE_REQUEST_STATE + const MESSAGE_SEGMENT_DONE + const MESSAGE_SEGMENT_START + const MESSAGE_STATE_CHANGED + const MESSAGE_STATE_DIRTY + const MESSAGE_STEP_DONE + const MESSAGE_STEP_START + const MESSAGE_STREAM_STATUS + const MESSAGE_STRUCTURE_CHANGE + const MESSAGE_TAG + const MESSAGE_UNKNOWN + const MESSAGE_WARNING + const PAD_LINK_NOFORMAT + const PAD_LINK_NOSCHED + const PAD_LINK_OK + const PAD_LINK_REFUSED + const PAD_LINK_WAS_LINKED + const PAD_LINK_WRONG_DIRECTION + const PAD_LINK_WRONG_HIERARCHY + const PAD_SINK + const PAD_SRC + const PAD_UNKNOWN + const STATE_CHANGE_ASYNC + const STATE_CHANGE_FAILURE + const STATE_CHANGE_NO_PREROLL + const STATE_CHANGE_SUCCESS + const STATE_NULL + const STATE_PAUSED + const STATE_PLAYING + const STATE_READY + const STATE_VOID_PENDING + var CLOCK_TIME_NONE = int64(C.GST_CLOCK_TIME_NONE) — darwin/amd64 + var CLOCK_TIME_NONE = uint64(C.GST_CLOCK_TIME_NONE) — linux/amd64 + var TYPE_FOURCC glib.Type + var TYPE_FRACTION glib.Type + var TYPE_INT_RANGE glib.Type + func Free(ptr *Memory) + type AppSink struct + func NewAppSink(name string) *AppSink + func (a *AppSink) PullSample() *Sample + func (a *AppSink) Read() []byte + type AppSrc struct + func NewAppSrc(name string) *AppSrc + func (a *AppSrc) EOS() error + func (a *AppSrc) SetCaps(caps *Caps) + func (a *AppSrc) Write(d []byte) (int, error) + func (b *AppSrc) PushBuffer(buffer *Buffer) FlowReturn + type Bin struct + func NewBin(name string) *Bin + func (b *Bin) Add(els ...*Element) bool + func (b *Bin) AsBin() *Bin + func (b *Bin) GetByName(name string) *Element + func (b *Bin) Remove(els ...*Element) bool + type Buffer struct + GstBuffer *GstBufferStruct + func NewBuffer() *Buffer + func NewBufferAllocate(size uint) *Buffer + func (this *Buffer) AppendMemory(memory *Memory) + func (this *Buffer) DeepCopy() *Buffer + func (this *Buffer) ExtractAll() []byte + func (this *Buffer) Fill(offset uint, src unsafe.Pointer, size uint) int + func (this *Buffer) FillWithGoSlice(data []byte) int + func (this *Buffer) GetSize() uint + func (this *Buffer) MemSet(offset uint, val byte, size uint) int + func (this *Buffer) SetDTS(value uint64) + func (this *Buffer) SetDuration(value uint64) + func (this *Buffer) SetOffset(value uint64) + func (this *Buffer) SetOffsetEnd(value uint64) + func (this *Buffer) SetPTS(value uint64) + func (this *Buffer) Unref() + type BufferList C.GstBufferList + func NewBufferList() *BufferList + func (bl *BufferList) CalculateTotalSize() uint + func (bl *BufferList) GetBufferAt(idx uint) *Buffer + func (bl *BufferList) InsertBuffer(idx int, buffer *Buffer) + func (bl *BufferList) Length() uint + func (bl *BufferList) Remove(idx uint, length uint) + func (bl *BufferList) Unref() + type Bus struct + func NewBus() *Bus + func (b *Bus) AddSignalWatch() + func (b *Bus) AddSignalWatchFull(priority int) + func (b *Bus) AsBus() *Bus + func (b *Bus) DisableSyncMessageEmission() + func (b *Bus) EnableSyncMessageEmission() + func (b *Bus) HavePending() bool + func (b *Bus) Peek() *Message + func (b *Bus) Poll(events MessageType, timeout int64) *Message + func (b *Bus) Pop() *Message + func (b *Bus) PopFiltered(types MessageType) *Message + func (b *Bus) Post(msg *Message) bool + func (b *Bus) RemoveSignalWatch() + func (b *Bus) SetFlushing(flushing bool) + func (b *Bus) TimedPop(timeout uint64) *Message + func (b *Bus) TimedPopFiltered(timeout uint64, types MessageType) *Message + type Caps C.GstCaps + func CapsFromString(s string) *Caps + func NewCapsAny() *Caps + func NewCapsEmpty() *Caps + func NewCapsSimple(media_type string, fields glib.Params) *Caps + func (c *Caps) AppendStructure(media_type string, fields glib.Params) + func (c *Caps) GetSize() int + func (c *Caps) Ref() *Caps + func (c *Caps) RefCount() int + func (c *Caps) String() string + func (c *Caps) Unref() + type Clock struct + func (c *Clock) AsClock() *Clock + type Element struct + func ElementFactoryMake(factory_name, name string) *Element + func (e *Element) AddPad(p *Pad) bool + func (e *Element) AsElement() *Element + func (e *Element) GetBus() *Bus + func (e *Element) GetRequestPad(name string) *Pad + func (e *Element) GetState(timeout_ns int64) (state, pending State, ret StateChangeReturn) + func (e *Element) GetStaticPad(name string) *Pad + func (e *Element) Link(next ...*Element) bool + func (e *Element) LinkFiltered(dst *Element, filter *Caps) bool + func (e *Element) LinkPads(pad_name string, dst *Element, dst_pad_name string) bool + func (e *Element) SendEvent(event *Event) bool + func (e *Element) SetState(state State) StateChangeReturn + func (e *Element) Unlink(next ...*Element) + func (e *Element) UnlinkPads(pad_name string, dst *Element, dst_pad_name string) + type Event struct + GstEvent *GstEventStruct + func Eos() *Event + type FlowReturn C.GstFlowReturn + func (f FlowReturn) String() string + type Fourcc uint32 + func MakeFourcc(a, b, c, d byte) Fourcc + func StrFourcc(s string) Fourcc + func ValueFourcc(v *glib.Value) Fourcc + func (f Fourcc) String() string + func (f Fourcc) Type() glib.Type + func (f Fourcc) Value() *glib.Value + type Fraction struct + Denom int + Numer int + func ValueFraction(v *glib.Value) *Fraction + func (f *Fraction) Type() glib.Type + func (f *Fraction) Value() *glib.Value + func (r *Fraction) String() string + type GhostPad struct + func NewGhostPad(name string, target *Pad) *GhostPad + func NewGhostPadNoTarget(name string, dir PadDirection) *GhostPad + func (p *GhostPad) AsGhostPad() *GhostPad + func (p *GhostPad) Construct() bool + func (p *GhostPad) GetTarget() *Pad + func (p *GhostPad) SetTarget(new_target *Pad) bool + type GstBufferStruct C.GstBuffer + type GstEventStruct C.GstEvent + type GstObj struct + func (o *GstObj) AsGstObj() *GstObj + func (o *GstObj) GetName() string + func (o *GstObj) GetParent() *GstObj + func (o *GstObj) GetPathString() string + func (o *GstObj) SetName(name string) bool + func (o *GstObj) SetParent(p *GstObj) bool + func (o *GstObj) Unparent() + type IntRange struct + End int + Start int + func ValueRange(v *glib.Value) *IntRange + func (r *IntRange) String() string + func (r *IntRange) Type() glib.Type + func (r *IntRange) Value() *glib.Value + type Memory C.GstMemory + func Allocate(size uint32) *Memory + type Message C.GstMessage + func (m *Message) GetSrc() *GstObj + func (m *Message) GetStructure() (string, glib.Params) + func (m *Message) GetType() MessageType + func (m *Message) ParseError() (err *glib.Error, debug string) + func (m *Message) Ref() *Message + func (m *Message) Type() glib.Type + func (m *Message) Unref() + type MessageType C.GstMessageType + func (t MessageType) String() string + type Pad struct + func (p *Pad) AsPad() *Pad + func (p *Pad) CanLink(sink_pad *Pad) bool + func (p *Pad) Link(sink_pad *Pad) PadLinkReturn + type PadDirection C.GstPadDirection + func (p PadDirection) String() string + type PadLinkReturn C.GstPadLinkReturn + func (p PadLinkReturn) String() string + type Pipeline struct + func NewPipeline(name string) *Pipeline + func ParseLaunch(pipeline_description string) (*Pipeline, error) + func (p *Pipeline) AsPipeline() *Pipeline + func (p *Pipeline) Free() + type Sample C.GstSample + func NewSample(buffer *Buffer, caps *Caps) *Sample + func (s *Sample) GetBuffer() *Buffer + func (s *Sample) GetBufferList() *BufferList + func (s *Sample) GetCaps() *Caps + func (s *Sample) Unref() + type Sink struct + func (s *Sink) GetLastSample() *Sample + type State C.GstState + func (s State) String() string + type StateChangeReturn C.GstStateChangeReturn