Documentation
¶
Overview ¶
Bindings for GStreamer API
Bindings for GStreamer API
Index ¶
- Constants
- Variables
- func FilenameToURI(filename string) (string, error)
- func Free(ptr *Memory)
- func GetFilenameToUri(file string) (string, error)
- func GetVersion() (int, int, int, int)
- type AppSink
- type AppSrc
- type Bin
- type Buffer
- func (b *Buffer) AppendMemory(memory *Memory)
- func (b *Buffer) BufferMap(flags MapFlags) *MapInfo
- func (b *Buffer) Bytes() []byte
- func (b *Buffer) Copy() *Buffer
- func (b *Buffer) Fill(offset uint, src unsafe.Pointer, size uint) int
- func (b *Buffer) FillWithGoSlice(data []byte) int
- func (b *Buffer) GetSize() uint
- func (b *Buffer) MemSet(offset uint, val byte, size uint) int
- func (b *Buffer) SetDTS(value uint64)
- func (b *Buffer) SetDuration(value uint64)
- func (b *Buffer) SetOffset(value uint64)
- func (b *Buffer) SetOffsetEnd(value uint64)
- func (b *Buffer) SetPTS(value uint64)
- func (b *Buffer) Unmap()
- func (b *Buffer) Unref()
- type 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) RemoveWatch()
- func (b *Bus) SetFlushing(flushing bool)
- func (b *Bus) TimedPop(timeout uint64) *Message
- func (b *Bus) TimedPopFiltered(timeout uint64, types MessageType) *Message
- type Caps
- type Clock
- type Discoverer
- type DiscovererInfo
- type DiscovererResult
- type Element
- func (e *Element) AddGhostPad(p *GhostPad) bool
- func (e *Element) AddPad(p *Pad) bool
- func (e *Element) AsElement() *Element
- func (e *Element) ElementQuery(q *Query) bool
- func (e *Element) ElementQueryPosition(f Format) int64
- func (e *Element) ElementSeekSimple(format Format, f SeekFlag, pos int64) bool
- func (e *Element) GetActivePad(name string) *Pad
- 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) SetCaps(caps string)
- 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
- type EventType
- type FlowReturn
- type Format
- type Fourcc
- type Fraction
- type GValueArray
- type GhostPad
- type GstBufferStruct
- type GstEventStruct
- type GstObj
- type IntRange
- type MapFlags
- type MapInfo
- type Memory
- type Message
- func (m *Message) GetSrc() *GstObj
- func (m *Message) GetStructure() (string, glib.Params)
- func (m *Message) GetType() MessageType
- func (m *Message) GetValueFromStructure(param string) GValueArray
- func (m *Message) ParseError() (err *glib.Error, debug string)
- func (m *Message) ParseStateChanged() (oldState, newState, pending string)
- func (m *Message) Ref() *Message
- func (m *Message) Type() glib.Type
- func (m *Message) Unref()
- type MessageType
- type Pad
- func (p *Pad) AddProbe(mask PadProbeType, f PadProbeCallback, ptr unsafe.Pointer) uint64
- func (p *Pad) AsPad() *Pad
- func (p *Pad) CanLink(sink_pad *Pad) bool
- func (p *Pad) GetCurrentCaps() *Caps
- func (p *Pad) Link(sink_pad *Pad) PadLinkReturn
- func (p *Pad) RemoveProbe(id uint64)
- func (p *Pad) SendEvent(event *Event) bool
- func (p *Pad) SetActive(active bool) bool
- func (p *Pad) Unlink(sink_pad *Pad) bool
- type PadDirection
- type PadLinkReturn
- type PadProbeCallback
- type PadProbeInfo
- type PadProbeReturn
- type PadProbeType
- type Pipeline
- type Query
- type Sample
- type SeekFlag
- type Socket
- type State
- type StateChangeReturn
- type UserData
Constants ¶
View Source
const ( GST_FLOW_OK = FlowReturn(C.GST_FLOW_OK) GST_FLOW_FLUSHING = FlowReturn(C.GST_FLOW_FLUSHING) GST_FLOW_NOT_LINKED = FlowReturn(C.GST_FLOW_NOT_LINKED) GST_FLOW_NOT_NEGOTIATED = FlowReturn(C.GST_FLOW_NOT_NEGOTIATED) GST_FLOW_ERROR = FlowReturn(C.GST_FLOW_ERROR) GST_FLOW_NOT_SUPPORTED = FlowReturn(C.GST_FLOW_NOT_SUPPORTED) )
View Source
const ( DISCOVERER_OK = DiscovererResult(C.GST_DISCOVERER_OK) DISCOVERER_URI_INVALID = DiscovererResult(C.GST_DISCOVERER_URI_INVALID) DISCOVERER_ERROR = DiscovererResult(C.GST_DISCOVERER_ERROR) DISCOVERER_TIMEOUT = DiscovererResult(C.GST_DISCOVERER_TIMEOUT) DISCOVERER_BUSY = DiscovererResult(C.GST_DISCOVERER_BUSY) DISCOVERER_MISSING_PLUGINS = DiscovererResult(C.GST_DISCOVERER_MISSING_PLUGINS) )
View Source
const ( FORMAT_UNDEFINED = Format(C.GST_FORMAT_UNDEFINED) FORMAT_DEFAULT = Format(C.GST_FORMAT_DEFAULT) FORMAT_BYTES = Format(C.GST_FORMAT_BYTES) FORMAT_TIME = Format(C.GST_FORMAT_TIME) FORMAT_BUFFERS = Format(C.GST_FORMAT_BUFFERS) FORMAT_PERCENT = Format(C.GST_FORMAT_PERCENT) )
View Source
const ( STATE_VOID_PENDING = State(C.GST_STATE_VOID_PENDING) STATE_NULL = State(C.GST_STATE_NULL) STATE_READY = State(C.GST_STATE_READY) STATE_PAUSED = State(C.GST_STATE_PAUSED) STATE_PLAYING = State(C.GST_STATE_PLAYING) )
View Source
const ( STATE_CHANGE_FAILURE = StateChangeReturn(C.GST_STATE_CHANGE_FAILURE) STATE_CHANGE_SUCCESS = StateChangeReturn(C.GST_STATE_CHANGE_SUCCESS) STATE_CHANGE_ASYNC = StateChangeReturn(C.GST_STATE_CHANGE_ASYNC) STATE_CHANGE_NO_PREROLL = StateChangeReturn(C.GST_STATE_CHANGE_NO_PREROLL) )
View Source
const ( MESSAGE_UNKNOWN = MessageType(C.GST_MESSAGE_UNKNOWN) MESSAGE_EOS = MessageType(C.GST_MESSAGE_EOS) MESSAGE_ERROR = MessageType(C.GST_MESSAGE_ERROR) MESSAGE_WARNING = MessageType(C.GST_MESSAGE_WARNING) MESSAGE_INFO = MessageType(C.GST_MESSAGE_INFO) MESSAGE_TAG = MessageType(C.GST_MESSAGE_TAG) MESSAGE_BUFFERING = MessageType(C.GST_MESSAGE_BUFFERING) MESSAGE_STATE_CHANGED = MessageType(C.GST_MESSAGE_STATE_CHANGED) MESSAGE_STATE_DIRTY = MessageType(C.GST_MESSAGE_STATE_DIRTY) MESSAGE_STEP_DONE = MessageType(C.GST_MESSAGE_STEP_DONE) MESSAGE_CLOCK_PROVIDE = MessageType(C.GST_MESSAGE_CLOCK_PROVIDE) MESSAGE_CLOCK_LOST = MessageType(C.GST_MESSAGE_CLOCK_LOST) MESSAGE_NEW_CLOCK = MessageType(C.GST_MESSAGE_NEW_CLOCK) MESSAGE_STRUCTURE_CHANGE = MessageType(C.GST_MESSAGE_STRUCTURE_CHANGE) MESSAGE_STREAM_STATUS = MessageType(C.GST_MESSAGE_STREAM_STATUS) MESSAGE_APPLICATION = MessageType(C.GST_MESSAGE_APPLICATION) MESSAGE_ELEMENT = MessageType(C.GST_MESSAGE_ELEMENT) MESSAGE_SEGMENT_START = MessageType(C.GST_MESSAGE_SEGMENT_START) MESSAGE_SEGMENT_DONE = MessageType(C.GST_MESSAGE_SEGMENT_DONE) MESSAGE_DURATION = MessageType(C.GST_MESSAGE_DURATION) MESSAGE_LATENCY = MessageType(C.GST_MESSAGE_LATENCY) MESSAGE_ASYNC_START = MessageType(C.GST_MESSAGE_ASYNC_START) MESSAGE_ASYNC_DONE = MessageType(C.GST_MESSAGE_ASYNC_DONE) MESSAGE_REQUEST_STATE = MessageType(C.GST_MESSAGE_REQUEST_STATE) MESSAGE_STEP_START = MessageType(C.GST_MESSAGE_STEP_START) MESSAGE_QOS = MessageType(C.GST_MESSAGE_QOS) MESSAGE_PROGRESS = MessageType(C.GST_MESSAGE_PROGRESS) MESSAGE_ANY = MessageType(C.GST_MESSAGE_ANY) )
View Source
const ( PAD_LINK_OK = PadLinkReturn(C.GST_PAD_LINK_OK) PAD_LINK_WRONG_HIERARCHY = PadLinkReturn(C.GST_PAD_LINK_WRONG_HIERARCHY) PAD_LINK_WAS_LINKED = PadLinkReturn(C.GST_PAD_LINK_WAS_LINKED) PAD_LINK_WRONG_DIRECTION = PadLinkReturn(C.GST_PAD_LINK_WRONG_DIRECTION) PAD_LINK_NOFORMAT = PadLinkReturn(C.GST_PAD_LINK_NOFORMAT) PAD_LINK_NOSCHED = PadLinkReturn(C.GST_PAD_LINK_NOSCHED) PAD_LINK_REFUSED = PadLinkReturn(C.GST_PAD_LINK_REFUSED) )
View Source
const ( PAD_UNKNOWN = PadDirection(C.GST_PAD_UNKNOWN) PAD_SRC = PadDirection(C.GST_PAD_SRC) PAD_SINK = PadDirection(C.GST_PAD_SINK) )
View Source
const ( SEEK_FLAG_NONE = SeekFlag(C.GST_SEEK_FLAG_NONE) SEEK_FLAG_FLUSH = SeekFlag(C.GST_SEEK_FLAG_FLUSH) SEEK_FLAG_ACCURATE = SeekFlag(C.GST_SEEK_FLAG_ACCURATE) SEEK_FLAG_KEY_UNIT = SeekFlag(C.GST_SEEK_FLAG_KEY_UNIT) SEEK_FLAG_SEGMENT = SeekFlag(C.GST_SEEK_FLAG_SEGMENT) SEEK_FLAG_TRICKMODE = SeekFlag(C.GST_SEEK_FLAG_TRICKMODE) SEEK_FLAG_SKIP = SeekFlag(C.GST_SEEK_FLAG_SKIP) SEEK_FLAG_SNAP_BEFORE = SeekFlag(C.GST_SEEK_FLAG_SNAP_BEFORE) SEEK_FLAG_SNAP_AFTER = SeekFlag(C.GST_SEEK_FLAG_SNAP_AFTER) SEEK_FLAG_SNAP_NEAREST = SeekFlag(C.GST_SEEK_FLAG_SNAP_NEAREST) SEEK_FLAG_TRICKMODE_KEY_UNITS = SeekFlag(C.GST_SEEK_FLAG_TRICKMODE_KEY_UNITS) SEEK_FLAG_TRICKMODE_NO_AUDIO = SeekFlag(C.GST_SEEK_FLAG_TRICKMODE_NO_AUDIO) )
Variables ¶
View Source
var CLOCK_TIME_NONE = uint64(C.GST_CLOCK_TIME_NONE)
View Source
var TYPE_FOURCC, TYPE_INT_RANGE, TYPE_FRACTION glib.Type
Functions ¶
func GetFilenameToUri ¶ added in v0.2.0
Types ¶
type AppSink ¶ added in v0.3.0
type AppSink struct {
*Element
}
func NewAppSink ¶ added in v0.3.0
func (*AppSink) PullSample ¶ added in v0.3.0
type Bin ¶
type Bin struct {
Element
}
func ParseBinFromDescription ¶
Similar to gst_parse_launch, but makes a bin instead of a pipeline
type Buffer ¶
type Buffer struct {
GstBuffer *GstBufferStruct
GstMapInfo *MapInfo
}
func NewBufferAllocate ¶
func (*Buffer) AppendMemory ¶
func (*Buffer) FillWithGoSlice ¶
func (*Buffer) SetDuration ¶
func (*Buffer) SetOffsetEnd ¶
type Bus ¶
type Bus struct {
GstObj
}
func (*Bus) AddSignalWatch ¶
func (b *Bus) AddSignalWatch()
func (*Bus) AddSignalWatchFull ¶
func (*Bus) DisableSyncMessageEmission ¶
func (b *Bus) DisableSyncMessageEmission()
func (*Bus) EnableSyncMessageEmission ¶
func (b *Bus) EnableSyncMessageEmission()
func (*Bus) HavePending ¶
func (*Bus) PopFiltered ¶
func (b *Bus) PopFiltered(types MessageType) *Message
func (*Bus) RemoveSignalWatch ¶
func (b *Bus) RemoveSignalWatch()
func (*Bus) RemoveWatch ¶ added in v0.4.0
func (b *Bus) RemoveWatch()
func (*Bus) SetFlushing ¶
func (*Bus) TimedPopFiltered ¶
func (b *Bus) TimedPopFiltered(timeout uint64, types MessageType) *Message
type Caps ¶
func CapsFromString ¶
func NewCapsAny ¶
func NewCapsAny() *Caps
func NewCapsEmpty ¶
func NewCapsEmpty() *Caps
func (*Caps) AppendStructure ¶
type Discoverer ¶ added in v0.2.0
type Discoverer struct {
GstObj
}
func NewDiscoverer ¶ added in v0.2.0
func NewDiscoverer(timeout int64) (*Discoverer, error)
func (*Discoverer) DiscoverUri ¶ added in v0.2.0
func (d *Discoverer) DiscoverUri(uri string) (*DiscovererInfo, error)
type DiscovererInfo ¶ added in v0.2.0
type DiscovererInfo C.GstDiscovererInfo
func (*DiscovererInfo) GetDuration ¶ added in v0.2.0
func (i *DiscovererInfo) GetDuration() time.Duration
func (*DiscovererInfo) GetResult ¶ added in v0.2.0
func (i *DiscovererInfo) GetResult() DiscovererResult
type DiscovererResult ¶ added in v0.2.0
type DiscovererResult C.GstDiscovererResult
func (DiscovererResult) String ¶ added in v0.3.0
func (s DiscovererResult) String() string
type Element ¶
type Element struct {
GstObj
}
func ElementFactoryMake ¶
TODO: Move ElementFactoryMake to element_factory.go
func (*Element) AddGhostPad ¶
func (*Element) ElementQuery ¶ added in v0.5.0
func (*Element) ElementQueryPosition ¶ added in v0.5.0
func (*Element) ElementSeekSimple ¶ added in v0.5.0
func (*Element) GetActivePad ¶ added in v0.5.0
func (*Element) GetRequestPad ¶
func (*Element) GetState ¶
func (e *Element) GetState(timeout_ns int64) (state, pending State, ret StateChangeReturn)
func (*Element) GetStaticPad ¶
func (*Element) SetState ¶
func (e *Element) SetState(state State) StateChangeReturn
type EventType ¶ added in v0.4.0
type EventType int
EventType casts GstEventType
const ( EventUnknown EventType = C.GST_EVENT_UNKNOWN // (0) – unknown event EventFlushStart EventType = C.GST_EVENT_FLUSH_START // (2564) EventFlushStop EventType = C.GST_EVENT_FLUSH_STOP // (5127) EventStreamStart EventType = C.GST_EVENT_STREAM_START // (10254) EventCaps EventType = C.GST_EVENT_CAPS // (12814) EventSegment EventType = C.GST_EVENT_SEGMENT // (17934) EventTag EventType = C.GST_EVENT_TAG // (20510) EventBuffersize EventType = C.GST_EVENT_BUFFERSIZE // (23054) EventSinkMessage EventType = C.GST_EVENT_SINK_MESSAGE // (25630) EventEos EventType = C.GST_EVENT_EOS // (28174) EventToc EventType = C.GST_EVENT_TOC EventProtection EventType = C.GST_EVENT_PROTECTION EventSegmentDone EventType = C.GST_EVENT_SEGMENT_DONE EventGap EventType = C.GST_EVENT_GAP EventQos EventType = C.GST_EVENT_QOS EventSeek EventType = C.GST_EVENT_SEEK EventLatency EventType = C.GST_EVENT_LATENCY EventStep EventType = C.GST_EVENT_STEP EventReconfigure EventType = C.GST_EVENT_RECONFIGURE EvnetTocSelect EventType = C.GST_EVENT_TOC_SELECT EventCustomUpstream EventType = C.GST_EVENT_CUSTOM_UPSTREAM EventCustomDownstream EventType = C.GST_EVENT_CUSTOM_DOWNSTREAM EventCustomDownstreamOob EventType = C.GST_EVENT_CUSTOM_DOWNSTREAM_OOB EventCustomDownstreamSticky EventType = C.GST_EVENT_CUSTOM_DOWNSTREAM_STICKY EventCustomBoth EventType = C.GST_EVENT_CUSTOM_BOTH EventCustomBothOob EventType = C.GST_EVENT_CUSTOM_BOTH_OOB )
Type castrings of EventTypes
func GetEventType ¶ added in v0.4.0
type FlowReturn ¶
type FlowReturn C.GstFlowReturn
func (FlowReturn) String ¶
func (f FlowReturn) String() string
type GhostPad ¶
type GhostPad struct {
Pad
}
func NewGhostPad ¶
func NewGhostPadNoTarget ¶
func NewGhostPadNoTarget(name string, dir PadDirection) *GhostPad
func (*GhostPad) AsGhostPad ¶
type GstBufferStruct ¶
type GstEventStruct ¶
type GstObj ¶
func (*GstObj) GetParent ¶
Returns the parent of o. Increases the refcount of the parent object so you should Unref it after usage.
func (*GstObj) GetPathString ¶
Generates a string describing the path of object in the object hierarchy. Only useful (or used) for debugging.
type MapFlags ¶ added in v0.5.2
type MapFlags int
const ( MapRead MapFlags = C.GST_MAP_READ // (1) – map for read access MapWrite MapFlags = C.GST_MAP_WRITE // (2) - map for write access MapFlagLast MapFlags = C.GST_MAP_FLAG_LAST // (65536) – first flag that can be used for custom purposes )
Type casting of the map flag types
type MapInfo ¶ added in v0.5.2
type MapInfo struct {
// contains filtered or unexported fields
}
MapInfo is a go representation of a GstMapInfo.
type Message ¶
type Message C.GstMessage
func (*Message) GetType ¶
func (m *Message) GetType() MessageType
func (*Message) GetValueFromStructure ¶
func (m *Message) GetValueFromStructure(param string) GValueArray
func (*Message) ParseStateChanged ¶
type MessageType ¶
type MessageType C.GstMessageType
func (MessageType) String ¶
func (t MessageType) String() string
type Pad ¶
type Pad struct {
GstObj
}
func (*Pad) AddProbe ¶ added in v0.4.0
func (p *Pad) AddProbe(mask PadProbeType, f PadProbeCallback, ptr unsafe.Pointer) uint64
func (*Pad) GetCurrentCaps ¶
func (*Pad) Link ¶
func (p *Pad) Link(sink_pad *Pad) PadLinkReturn
func (*Pad) RemoveProbe ¶ added in v0.4.0
type PadDirection ¶
type PadDirection C.GstPadDirection
func (PadDirection) String ¶
func (p PadDirection) String() string
type PadLinkReturn ¶
type PadLinkReturn C.GstPadLinkReturn
func (PadLinkReturn) String ¶
func (p PadLinkReturn) String() string
type PadProbeCallback ¶ added in v0.4.0
type PadProbeCallback func(*Pad, *PadProbeInfo, unsafe.Pointer) PadProbeReturn
type PadProbeInfo ¶ added in v0.4.0
type PadProbeInfo struct {
// contains filtered or unexported fields
}
func (*PadProbeInfo) GetBuffer ¶ added in v0.4.0
func (p *PadProbeInfo) GetBuffer() *Buffer
func (*PadProbeInfo) GetData ¶ added in v0.4.0
func (p *PadProbeInfo) GetData() unsafe.Pointer
func (*PadProbeInfo) GetEvent ¶ added in v0.4.0
func (p *PadProbeInfo) GetEvent() *Event
func (*PadProbeInfo) ID ¶ added in v0.4.0
func (p *PadProbeInfo) ID() uint32
func (*PadProbeInfo) Offset ¶ added in v0.4.0
func (p *PadProbeInfo) Offset() uint64
func (*PadProbeInfo) Size ¶ added in v0.4.0
func (p *PadProbeInfo) Size() uint64
func (*PadProbeInfo) Type ¶ added in v0.4.0
func (p *PadProbeInfo) Type() PadProbeType
type PadProbeReturn ¶
type PadProbeReturn int
PadProbeReturn casts GstPadProbeReturn
const ( PadProbeDrop PadProbeReturn = C.GST_PAD_PROBE_DROP // (0) – drop data in data probes. For push mode this means that the data item is not sent downstream. For pull mode, it means that the data item is not passed upstream. In both cases, no other probes are called for this item and GST_FLOW_OK or TRUE is returned to the caller. PadProbeOK PadProbeReturn = C.GST_PAD_PROBE_OK // (1) – normal probe return value. This leaves the probe in place, and defers decisions about dropping or passing data to other probes, if any. If there are no other probes, the default behaviour for the probe type applies ('block' for blocking probes, and 'pass' for non-blocking probes). PadProbeRemove PadProbeReturn = C.GST_PAD_PROBE_REMOVE // (2) – remove this probe. PadProbePass PadProbeReturn = C.GST_PAD_PROBE_PASS // (3) – pass the data item in the block probe and block on the next item. PadProbeUnhandled PadProbeReturn = C.GST_PAD_PROBE_HANDLED // (4) – Data has been handled in the probe and will not be forwarded further. For events and buffers this is the same behaviour as GST_PAD_PROBE_DROP (except that in this case you need to unref the buffer or event yourself). For queries it will also return TRUE to the caller. The probe can also modify the GstFlowReturn value by using the GST_PAD_PROBE_INFO_FLOW_RETURN() accessor. Note that the resulting query must contain valid entries. Since: 1.6 )
Type castings of ProbeReturns
type PadProbeType ¶
type PadProbeType int
PadProbeType casts GstPadProbeType
const ( PadProbeTypeInvalid PadProbeType = C.GST_PAD_PROBE_TYPE_INVALID // (0) – invalid probe type PadProbeTypeIdle PadProbeType = C.GST_PAD_PROBE_TYPE_IDLE // (1) – probe idle pads and block while the callback is called PadProbeTypeBlock PadProbeType = C.GST_PAD_PROBE_TYPE_BLOCK // (2) – probe and block pads PadProbeTypeBuffer PadProbeType = C.GST_PAD_PROBE_TYPE_BUFFER // (16) – probe buffers PadProbeTypeBufferList PadProbeType = C.GST_PAD_PROBE_TYPE_BUFFER_LIST // (32) – probe buffer lists PadProbeTypeEventDownstream PadProbeType = C.GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM // (64) – probe downstream events PadProbeTypeEventUpstream PadProbeType = C.GST_PAD_PROBE_TYPE_EVENT_UPSTREAM // (128) – probe upstream events PadProbeTypeEventFlush PadProbeType = C.GST_PAD_PROBE_TYPE_EVENT_FLUSH // (256) – probe flush events. This probe has to be explicitly enabled and is not included in the @GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM or @GST_PAD_PROBE_TYPE_EVENT_UPSTREAM probe types. PadProbeTypeQueryDownstream PadProbeType = C.GST_PAD_PROBE_TYPE_QUERY_DOWNSTREAM // (512) – probe downstream queries PadProbeTypeQueryUpstream PadProbeType = C.GST_PAD_PROBE_TYPE_QUERY_UPSTREAM // (1024) – probe upstream queries PadProbeTypePush PadProbeType = C.GST_PAD_PROBE_TYPE_PUSH // (4096) – probe push PadProbeTypePull PadProbeType = C.GST_PAD_PROBE_TYPE_PULL // (8192) – probe pull PadProbeTypeBlocking PadProbeType = C.GST_PAD_PROBE_TYPE_BLOCKING // (3) – probe and block at the next opportunity, at data flow or when idle PadProbeTypeDataDownstream PadProbeType = C.GST_PAD_PROBE_TYPE_DATA_DOWNSTREAM // (112) – probe downstream data (buffers, buffer lists, and events) PadProbeTypeDataUpstream PadProbeType = C.GST_PAD_PROBE_TYPE_DATA_UPSTREAM // (128) – probe upstream data (events) PadProbeTypeDataBoth PadProbeType = C.GST_PAD_PROBE_TYPE_DATA_BOTH // (240) – probe upstream and downstream data (buffers, buffer lists, and events) PadProbeTypeBlockDownstream PadProbeType = C.GST_PAD_PROBE_TYPE_BLOCK_DOWNSTREAM // (114) – probe and block downstream data (buffers, buffer lists, and events) PadProbeTypeBlockUpstream PadProbeType = C.GST_PAD_PROBE_TYPE_BLOCK_UPSTREAM // (130) – probe and block upstream data (events) PadProbeTypeEventBoth PadProbeType = C.GST_PAD_PROBE_TYPE_EVENT_BOTH // (192) – probe upstream and downstream events PadProbeTypeQueryBoth PadProbeType = C.GST_PAD_PROBE_TYPE_QUERY_BOTH // (1536) – probe upstream and downstream queries PadProbeTypeAllBoth PadProbeType = C.GST_PAD_PROBE_TYPE_ALL_BOTH // (1776) – probe upstream events and queries and downstream buffers, buffer lists, events and queries PadProbeTypeScheduling PadProbeType = C.GST_PAD_PROBE_TYPE_SCHEDULING // (12288) – probe push and pull )
Type castings of PadProbeTypes
type Pipeline ¶
type Pipeline struct {
Bin
}
func NewPipeline ¶
func ParseLaunch ¶
func (*Pipeline) AsPipeline ¶
type SeekFlag ¶ added in v0.5.0
type SeekFlag C.GstSeekFlags
type StateChangeReturn ¶
type StateChangeReturn C.GstStateChangeReturn
Source Files
¶
Click to show internal directories.
Click to hide internal directories.