Documentation ¶
Index ¶
- Constants
- func BufferGetData(gstBuffer *Buffer) (data []byte, err error)
- func CheckPlugins(plugins []string) error
- type Bin
- type Buffer
- type Bus
- type Caps
- type Clock
- type Element
- func (e *Element) AddPad(pad *Pad) bool
- func (e *Element) GetClock() (gstClock *Clock)
- func (e *Element) GetClockBaseTime() uint64
- func (e *Element) GetPadTemplate(name string) (padTemplate *PadTemplate)
- func (e *Element) GetRequestPad(padTemplate *PadTemplate, name string, caps *Caps) (pad *Pad)
- func (e *Element) GetRequestPad2(name string) (pad *Pad)
- func (e *Element) GetState(timeout_ns int64) (state, pending State, ret StateChangeReturn)
- func (e *Element) GetStaticPad(name string) (pad *Pad)
- func (e *Element) IsEOS() bool
- func (e *Element) Link(dst *Element) bool
- func (e *Element) LinkFileterd(dst *Element, gstCaps *Caps) bool
- func (e *Element) Name() (name string)
- func (e *Element) PullSample() (sample *Sample, err error)
- func (e *Element) PushBuffer(data []byte) (err error)
- func (e *Element) RemovePad(pad *Pad) bool
- func (e *Element) SetObject(name string, value interface{})
- func (e *Element) SetPadAddedCallback(callback PadAddedCallback)
- func (e *Element) SetRtpBinFecDecSignal(pt int)
- func (e *Element) SetRtpBinNewRtpJitterSignal(params string)
- func (e *Element) SetRtpBinNewStorageSignal(latency int)
- func (e *Element) SetRtpBinRequestptmapSignal()
- func (e *Element) SetState(state State) StateChangeReturn
- func (e *Element) UnLink(dst *Element)
- type GMainLoop
- type Message
- type MessageType
- type Pad
- func (p *Pad) GetCurrentCaps() (gstCaps *Caps)
- func (p *Pad) IsEOS() bool
- func (p *Pad) IsLinked() bool
- func (p *Pad) Link(sink *Pad) (padLinkReturn PadLinkReturn)
- func (p *Pad) Name() string
- func (p *Pad) SetObject(name string, value interface{})
- func (p *Pad) Unlink(sink *Pad) (padLinkReturn PadLinkReturn)
- type PadAddedCallback
- type PadDirection
- type PadLinkReturn
- type PadTemplate
- type Pipeline
- func (p *Pipeline) GetBus() (bus *Bus)
- func (p *Pipeline) GetClock() (clock *Clock)
- func (p *Pipeline) GetDelay() uint64
- func (p *Pipeline) GetLatency() uint64
- func (p *Pipeline) GetState(timeout_ns int64) (state, pending State, ret StateChangeReturn)
- func (p *Pipeline) SeekSimple(millisec int64) bool
- func (p *Pipeline) SetLatency(latency uint64)
- func (p *Pipeline) SetState(state State) StateChangeReturn
- type Sample
- type State
- type StateChangeReturn
- type Structure
Constants ¶
View Source
const ( StateVoidPending = State(C.GST_STATE_VOID_PENDING) StateNull = State(C.GST_STATE_NULL) StateReady = State(C.GST_STATE_READY) StatePaused = State(C.GST_STATE_PAUSED) StatePlaying = 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 ( PAD_UNKNOWN = PadDirection(C.GST_PAD_UNKNOWN) PAD_SRC = PadDirection(C.GST_PAD_SRC) PAD_SINK = PadDirection(C.GST_PAD_SINK) )
View Source
const ( PadLinkOk PadLinkReturn = C.GST_PAD_LINK_OK PadLinkWrongHierarchy = C.GST_PAD_LINK_WRONG_HIERARCHY PadLinkWasLinked = C.GST_PAD_LINK_WAS_LINKED PadLinkWrongDirection = C.GST_PAD_LINK_WRONG_DIRECTION PadLinkNoFormat = C.GST_PAD_LINK_NOFORMAT PadLinkNoSched = C.GST_PAD_LINK_NOSCHED PadLinkRefused = C.GST_PAD_LINK_REFUSED )
Variables ¶
This section is empty.
Functions ¶
func BufferGetData ¶
func CheckPlugins ¶
Types ¶
type Bin ¶
type Bin struct {
Element
}
func ParseBinFromDescription ¶
func (*Bin) RemoveMany ¶ added in v0.0.7
type Bus ¶
func (*Bus) HavePending ¶
func (*Bus) PopFiltered ¶ added in v0.0.8
func (b *Bus) PopFiltered(messageType MessageType) (message *Message)
func (*Bus) Pull ¶
func (b *Bus) Pull(messageType MessageType) (message *Message)
type Clock ¶
func (*Clock) GetClockTime ¶
type Element ¶
type Element struct { GstElement *C.GstElement // contains filtered or unexported fields }
func ElementFactoryMake ¶
func (*Element) GetClockBaseTime ¶
func (*Element) GetPadTemplate ¶
func (e *Element) GetPadTemplate(name string) (padTemplate *PadTemplate)
func (*Element) GetRequestPad ¶
func (e *Element) GetRequestPad(padTemplate *PadTemplate, name string, caps *Caps) (pad *Pad)
func (*Element) GetRequestPad2 ¶ added in v0.0.9
func (*Element) GetState ¶ added in v0.0.7
func (e *Element) GetState(timeout_ns int64) (state, pending State, ret StateChangeReturn)
func (*Element) GetStaticPad ¶
func (*Element) LinkFileterd ¶ added in v0.0.7
func (*Element) PullSample ¶
func (*Element) PushBuffer ¶
func (*Element) SetPadAddedCallback ¶
func (e *Element) SetPadAddedCallback(callback PadAddedCallback)
func (*Element) SetRtpBinFecDecSignal ¶ added in v0.1.0
func (*Element) SetRtpBinNewRtpJitterSignal ¶ added in v0.1.0
func (*Element) SetRtpBinNewStorageSignal ¶ added in v0.1.0
func (*Element) SetRtpBinRequestptmapSignal ¶ added in v0.1.0
func (e *Element) SetRtpBinRequestptmapSignal()
func (*Element) SetState ¶ added in v0.0.6
func (e *Element) SetState(state State) StateChangeReturn
type GMainLoop ¶
func MainLoopNew ¶
func MainLoopNew() (loop *GMainLoop)
type Message ¶
type Message struct {
C *C.GstMessage
}
func (*Message) GetStructure ¶
func (*Message) GetType ¶
func (message *Message) GetType() (messageType MessageType)
type MessageType ¶
type MessageType C.GstMessageType
const ( MessageUnknown MessageType = C.GST_MESSAGE_UNKNOWN MessageEos MessageType = C.GST_MESSAGE_EOS MessageError MessageType = C.GST_MESSAGE_ERROR MessageWarning MessageType = C.GST_MESSAGE_WARNING MessageInfo MessageType = C.GST_MESSAGE_INFO MessageTag MessageType = C.GST_MESSAGE_TAG MessageBuffering MessageType = C.GST_MESSAGE_BUFFERING MessageStateChanged MessageType = C.GST_MESSAGE_STATE_CHANGED MessageStateDirty MessageType = C.GST_MESSAGE_STATE_DIRTY MessageStepDone MessageType = C.GST_MESSAGE_STEP_DONE MessageClockProvide MessageType = C.GST_MESSAGE_CLOCK_PROVIDE MessageClockLost MessageType = C.GST_MESSAGE_CLOCK_LOST MessageStructureChange MessageType = C.GST_MESSAGE_STREAM_STATUS MessageApplication MessageType = C.GST_MESSAGE_APPLICATION MessageElement MessageType = C.GST_MESSAGE_ELEMENT MessageSegmentStart MessageType = C.GST_MESSAGE_SEGMENT_START MessageSegmentDone MessageType = C.GST_MESSAGE_SEGMENT_DONE MessageDurationChanged MessageType = C.GST_MESSAGE_DURATION_CHANGED MessageLatency MessageType = C.GST_MESSAGE_LATENCY MessageAsyncStart MessageType = C.GST_MESSAGE_ASYNC_START MessageAsyncDone MessageType = C.GST_MESSAGE_ASYNC_DONE MessageRequestState MessageType = C.GST_MESSAGE_REQUEST_STATE MessageStepStart MessageType = C.GST_MESSAGE_STEP_START MessageQos MessageType = C.GST_MESSAGE_QOS MessageProgress MessageType = C.GST_MESSAGE_PROGRESS MessageToc MessageType = C.GST_MESSAGE_TOC MessageResetTime MessageType = C.GST_MESSAGE_RESET_TIME MessageStreamStart MessageType = C.GST_MESSAGE_STREAM_START MessageNeedContext MessageType = C.GST_MESSAGE_NEED_CONTEXT MessageHaveContext MessageType = C.GST_MESSAGE_HAVE_CONTEXT MessageExtended MessageType = C.GST_MESSAGE_EXTENDED MessageDeviceAdded MessageType = C.GST_MESSAGE_DEVICE_ADDED MessageDeviceRemoved MessageType = C.GST_MESSAGE_DEVICE_REMOVED //MessagePropertyNotify MessageType = C.GST_MESSAGE_PROPERTY_NOTIFY //MessageStreamCollection MessageType = C.GST_MESSAGE_STREAM_COLLECTION //MessageStreamsSelected MessageType = C.GST_MESSAGE_STREAMS_SELECTED //MessageRedirect MessageType = C.GST_MESSAGE_REDIRECT MessageAny MessageType = C.GST_MESSAGE_ANY )
type Pad ¶
type Pad struct {
// contains filtered or unexported fields
}
func (*Pad) GetCurrentCaps ¶
func (*Pad) Link ¶
func (p *Pad) Link(sink *Pad) (padLinkReturn PadLinkReturn)
func (*Pad) Unlink ¶
func (p *Pad) Unlink(sink *Pad) (padLinkReturn PadLinkReturn)
type PadAddedCallback ¶
type PadDirection ¶
type PadDirection C.GstPadDirection
func (PadDirection) String ¶
func (p PadDirection) String() string
type PadLinkReturn ¶
type PadLinkReturn int
type PadTemplate ¶
type PadTemplate struct {
C *C.GstPadTemplate
}
type Pipeline ¶
type Pipeline struct {
Bin
}
func ParseLaunch ¶
func PipelineNew ¶
func (*Pipeline) GetLatency ¶
func (*Pipeline) GetState ¶ added in v0.0.7
func (p *Pipeline) GetState(timeout_ns int64) (state, pending State, ret StateChangeReturn)
func (*Pipeline) SeekSimple ¶ added in v0.1.0
func (*Pipeline) SetLatency ¶
func (*Pipeline) SetState ¶
func (p *Pipeline) SetState(state State) StateChangeReturn
type StateChangeReturn ¶ added in v0.0.7
type StateChangeReturn C.GstStateChangeReturn
type Structure ¶
type Structure struct {
C *C.GstStructure
}
func NewStructure ¶
func StructureFromString ¶ added in v0.0.9
func (*Structure) GetDoubleArrayValue ¶ added in v0.1.0
func (*Structure) GetStructureName ¶ added in v0.1.0
Click to show internal directories.
Click to hide internal directories.