Documentation ¶
Overview ¶
Package avfilter contains methods that deal with ffmpeg filters filters in the same linear chain are separated by commas, and distinct linear chains of filters are separated by semicolons. FFmpeg is enabled through the "C" libavfilter library
Index ¶
- func AvfilterConfigLinks(f *Context) int
- func AvfilterConfiguration() string
- func AvfilterGraphCreateFilter(cx **Context, f *Filter, n, a string, o int, g *Graph) int
- func AvfilterInoutFree(i *Input)
- func AvfilterInsertFilter(l *Link, f *Context, fsi, fdi uint) int
- func AvfilterLicense() string
- func AvfilterLink(s *Context, sp uint, d *Context, dp uint) int
- func AvfilterLinkFree(l **Link)
- func AvfilterLinkGetChannels(l *Link) int
- func AvfilterLinkSetClosed(l *Link, c int)
- func AvfilterPadCount(p *Pad) int
- func AvfilterPadGetName(p *Pad, pi int) string
- func AvfilterProcessCommand(f *Context, cmd, arg, res string, l, fl int) int
- func AvfilterRegisterAll()
- func AvfilterVersion() uint
- type Class
- type Context
- type Dictionary
- type Filter
- type Graph
- func (g *Graph) AvfilterGraphAllocFilter(f *Filter, n string) *Context
- func (g *Graph) AvfilterGraphConfig(l int) int
- func (g *Graph) AvfilterGraphDump(o string) string
- func (g *Graph) AvfilterGraphFree()
- func (g *Graph) AvfilterGraphGetFilter(n string) *Context
- func (g *Graph) AvfilterGraphParse(f string, i, o *Input, l int) int
- func (g *Graph) AvfilterGraphParse2(f string, i, o **Input) int
- func (g *Graph) AvfilterGraphParsePtr(f string, i, o **Input, l int) int
- func (g *Graph) AvfilterGraphQueueCommand(t, cmd, arg string, f int, ts C.double) int
- func (g *Graph) AvfilterGraphRequestOldestlink() int
- func (g *Graph) AvfilterGraphSendCommand(t, cmd, arg, res string, resl, f int) int
- func (g *Graph) AvfilterGraphSetAutoConvert(f uint)
- type Input
- type Link
- type MediaType
- type Pad
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AvfilterConfigLinks ¶
Negotiate the media format, dimensions, etc of all inputs to a filter.
func AvfilterConfiguration ¶
func AvfilterConfiguration() string
Return the libavfilter build-time configuration.
func AvfilterGraphCreateFilter ¶
Create and add a filter instance into an existing graph.
func AvfilterInoutFree ¶
func AvfilterInoutFree(i *Input)
Free the supplied list of Input and set *inout to NULL.
func AvfilterInsertFilter ¶
Insert a filter in the middle of an existing link.
func AvfilterLink ¶
Link two filters together.
func AvfilterLinkFree ¶
func AvfilterLinkFree(l **Link)
Free the link in *link, and set its pointer to NULL.
func AvfilterLinkGetChannels ¶
Get the number of channels of a link.
func AvfilterLinkSetClosed ¶
Set the closed field of a link.
func AvfilterPadCount ¶
Get the number of elements in a NULL-terminated array of Pads (e.g.
func AvfilterProcessCommand ¶
Make the filter instance process a command.
Types ¶
type Class ¶
type Class C.struct_AVClass
type Context ¶
type Context C.struct_AVFilterContext
func (*Context) AvfilterInitDict ¶
func (ctx *Context) AvfilterInitDict(o **Dictionary) int
Initialize a filter with the supplied dictionary of options.
func (*Context) AvfilterInitStr ¶
Initialize a filter with the supplied parameters.
type Dictionary ¶
type Dictionary C.struct_AVDictionary
type Filter ¶
type Filter C.struct_AVFilter
func AvfilterGetByName ¶
Get a filter definition matching the given name.
func (*Filter) AvfilterNext ¶
Iterate over all registered filters.
type Graph ¶
type Graph C.struct_AVFilterGraph
func (*Graph) AvfilterGraphAllocFilter ¶
Create a new filter instance in a filter graph.
func (*Graph) AvfilterGraphConfig ¶
Check validity and configure all the links and formats in the graph.
func (*Graph) AvfilterGraphDump ¶
Dump a graph into a human-readable string representation.
func (*Graph) AvfilterGraphFree ¶
func (g *Graph) AvfilterGraphFree()
Free a graph, destroy its links, and set *graph to NULL.
func (*Graph) AvfilterGraphGetFilter ¶
Get a filter instance identified by instance name from graph.
func (*Graph) AvfilterGraphParse ¶
Add a graph described by a string to a graph.
func (*Graph) AvfilterGraphParse2 ¶
Add a graph described by a string to a graph.
func (*Graph) AvfilterGraphParsePtr ¶
Add a graph described by a string to a graph.
func (*Graph) AvfilterGraphQueueCommand ¶
Queue a command for one or more filter instances.
func (*Graph) AvfilterGraphRequestOldestlink ¶
Request a frame on the oldest sink
func (*Graph) AvfilterGraphSendCommand ¶
Send a command to one or more filter instances.
func (*Graph) AvfilterGraphSetAutoConvert ¶
Enable or disable automatic format conversion inside the graph.
type Input ¶
type Input C.struct_AVFilterInOut
type Link ¶
type Link C.struct_AVFilterLink
type MediaType ¶
type MediaType C.enum_AVMediaType
type Pad ¶
type Pad C.struct_AVFilterPad