Documentation ¶
Index ¶
Constants ¶
const (
// GstCapsFilter cap we will rely on
GstCapsFilter = "GstCapsFilter"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Caps ¶
type Caps struct { Width int Height int Framerate int PixelFormat string Channels int Type string Name string }
Caps represents caps
type CommonSink ¶
type CommonSink struct {
Sinker
}
CommonSink represents a common sink (e.g. videosink, autovideosink or udpsink)
func NewCommonSink ¶
func NewCommonSink(cmds ...string) *CommonSink
NewCommonSink creates a new common sink (e.g. videosink, autovideosink or udpsink)
type Gstreamer ¶
type Gstreamer struct {
// contains filtered or unexported fields
}
Gstreamer represents a gstreamer pipe
func NewGstreamer ¶
NewGstreamer creates a new Gstreamer instance
func NewGstreamerFromPath ¶
NewGstreamerFromPath creates a new Gstreamer instance, uses given path to gst-launch binary
func (*Gstreamer) Add ¶
func (gp *Gstreamer) Add(p GstreamerPlugin) *Gstreamer
Add add a GstreamerPlugin to the pipe
func (*Gstreamer) AddStr ¶
AddStr Creates a GstreamerGenericPlugin from given string and adds it to the pipe
func (*Gstreamer) PipeString ¶
PipeString outputs the current pipe
type GstreamerGenericPlugin ¶
type GstreamerGenericPlugin struct {
// contains filtered or unexported fields
}
GstreamerGenericPlugin generic gstreamer plugin
func (GstreamerGenericPlugin) Cmds ¶
func (p GstreamerGenericPlugin) Cmds() []string
type GstreamerPlugin ¶
type GstreamerPlugin interface {
Cmds() []string
}
GstreamerPlugin gstreamer plugin interface
type Imager ¶
type Imager struct {
// contains filtered or unexported fields
}
Imager produces go image objects
type Sink ¶
type Sink interface { Gst() *Gstreamer Cmds() []string Run() Start(ctx context.Context) (*Caps, error) // contains filtered or unexported methods }
Sink generic sink interface