Documentation
¶
Overview ¶
Bindings for GStreamer API
Index ¶
- Constants
- Variables
- func Version() (int, int, int, int)
- func VersionString() string
- type Bin
- 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) SetFlushing(flushing bool)
- func (b *Bus) TimedPop(timeout uint64) *Message
- func (b *Bus) TimedPopFiltered(timeout uint64, types MessageType) *Message
- type Caps
- type Clock
- type Element
- func (e *Element) AddPad(p *Pad) bool
- func (e *Element) AsElement() *Element
- func (e *Element) GetBus() *Bus
- func (e *Element) GetPad(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) QueryPosition(format Format, cur *time.Duration) 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 Format
- type Fourcc
- type Fraction
- type GhostPad
- type GstObj
- type IntRange
- type Message
- type MessageType
- type Pad
- type PadDirection
- type PadLinkReturn
- type Pipeline
- type State
- type StateChangeReturn
- type VideoOverlay
- func (x *VideoOverlay) Expose()
- func (x *VideoOverlay) GotVideoWindowHandle(id uint)
- func (x *VideoOverlay) HandleEvents(handle_events bool)
- func (x *VideoOverlay) PrepareWindowId()
- func (o *VideoOverlay) SetRenderRectangle(x, y, width, height int) bool
- func (x *VideoOverlay) SetVideoWindowHandle(id uint)
- func (x *VideoOverlay) Type() glib.Type
Constants ¶
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 ( 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 ( 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) )
Variables ¶
View Source
var CLOCK_TIME_NONE = int64(C.GST_CLOCK_TIME_NONE)
View Source
var GST_VERSION_MICRO = int64(C.GST_VERSION_MICRO)
View Source
var GST_VERSION_MINOR = int64(C.GST_VERSION_MINOR)
View Source
var GST_VERSION_NANO = int64(C.GST_VERSION_NANO)
View Source
var TYPE_INT_RANGE, TYPE_FRACTION glib.Type
var TYPE_FOURCC,
Functions ¶
func VersionString ¶
func VersionString() string
Types ¶
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) 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 Element ¶
type Element struct {
GstObj
}
func ElementFactoryMake ¶
TODO: Move ElementFactoryMake to element_factory.go
func ParseLaunch ¶
func (*Element) GetState ¶
func (e *Element) GetState(timeout_ns int64) (state, pending State, ret StateChangeReturn)
func (*Element) GetStaticPad ¶
func (*Element) QueryPosition ¶
func (*Element) SetState ¶
func (e *Element) SetState(state State) StateChangeReturn
type Fourcc ¶
func MakeFourcc ¶
type GhostPad ¶
type GhostPad struct {
Pad
}
func NewGhostPad ¶
func NewGhostPadNoTarget ¶
func NewGhostPadNoTarget(name string, dir PadDirection) *GhostPad
func (*GhostPad) AsGhostPad ¶
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 Message ¶
type Message C.GstMessage
func (*Message) GetType ¶
func (m *Message) GetType() MessageType
type MessageType ¶
type MessageType C.GstMessageType
func (MessageType) String ¶
func (t MessageType) String() string
type Pad ¶
type Pad struct {
GstObj
}
func (*Pad) Link ¶
func (p *Pad) Link(sink_pad *Pad) PadLinkReturn
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 StateChangeReturn ¶
type StateChangeReturn C.GstStateChangeReturn
type VideoOverlay ¶
type VideoOverlay C.GstVideoOverlay
func VideoOverlayCast ¶
func VideoOverlayCast(o *GstObj) *VideoOverlay
func (*VideoOverlay) Expose ¶
func (x *VideoOverlay) Expose()
func (*VideoOverlay) GotVideoWindowHandle ¶
func (x *VideoOverlay) GotVideoWindowHandle(id uint)
func (*VideoOverlay) HandleEvents ¶
func (x *VideoOverlay) HandleEvents(handle_events bool)
func (*VideoOverlay) PrepareWindowId ¶
func (x *VideoOverlay) PrepareWindowId()
func (*VideoOverlay) SetRenderRectangle ¶
func (o *VideoOverlay) SetRenderRectangle(x, y, width, height int) bool
func (*VideoOverlay) SetVideoWindowHandle ¶
func (x *VideoOverlay) SetVideoWindowHandle(id uint)
func (*VideoOverlay) Type ¶
func (x *VideoOverlay) Type() glib.Type
Source Files
¶
Click to show internal directories.
Click to hide internal directories.