Documentation
¶
Overview ¶
Package libavfilter 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 AvfilterPadCount(p *Pad) int
- func AvfilterPadGetName(p *Pad, pi int) string
- func AvfilterProcessCommand(f *Context, cmd, arg, res string, l, fl int) int
- 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 ¶
AvfilterConfigLinks Negotiate the media format, dimensions, etc of all inputs to a filter.
func AvfilterConfiguration ¶
func AvfilterConfiguration() string
AvfilterConfiguration Return the libavfilter build-time configuration.
func AvfilterGraphCreateFilter ¶
AvfilterGraphCreateFilter Create and add a filter instance into an existing graph.
func AvfilterInoutFree ¶
func AvfilterInoutFree(i *Input)
AvfilterInoutFree Free the supplied list of Input and set *inout to NULL.
func AvfilterInsertFilter ¶
AvfilterInsertFilter Insert a filter in the middle of an existing link.
func AvfilterLicense ¶
func AvfilterLicense() string
AvfilterLicense Return the libavfilter license.
func AvfilterLink ¶
AvfilterLink Link two filters together.
func AvfilterLinkFree ¶
func AvfilterLinkFree(l **Link)
AvfilterLinkFree Free the link in *link, and set its pointer to NULL.
func AvfilterPadCount ¶
AvfilterPadCount Get the number of elements in a NULL-terminated array of Pads (e.g.
func AvfilterPadGetName ¶
AvfilterPadGetName Get the name of an Pad.
func AvfilterProcessCommand ¶
AvfilterProcessCommand Make the filter instance process a command.
func AvfilterVersion ¶
func AvfilterVersion() uint
AvfilterVersion Return the LIBAvFILTER_VERSION_INT constant.
Types ¶
type Class ¶
type Class C.struct_AVClass
type Context ¶
type Context C.struct_AVFilterContext
func (*Context) AvfilterFree ¶
func (ctx *Context) AvfilterFree()
AvfilterFree Free a filter context.
func (*Context) AvfilterInitDict ¶
func (ctx *Context) AvfilterInitDict(o **Dictionary) int
AvfilterInitDict Initialize a filter with the supplied dictionary of options.
func (*Context) AvfilterInitStr ¶
AvfilterInitStr Initialize a filter with the supplied parameters.
type Dictionary ¶
type Dictionary C.struct_AVDictionary
type Filter ¶
type Filter C.struct_AVFilter
func AvfilterGetByName ¶
AvfilterGetByName Get a filter definition matching the given name.
type Graph ¶
type Graph C.struct_AVFilterGraph
func AvfilterGraphAlloc ¶
func AvfilterGraphAlloc() *Graph
AvfilterGraphAlloc Allocate a filter graph.
func (*Graph) AvfilterGraphAllocFilter ¶
AvfilterGraphAllocFilter Create a new filter instance in a filter graph.
func (*Graph) AvfilterGraphConfig ¶
AvfilterGraphConfig Check validity and configure all the links and formats in the graph.
func (*Graph) AvfilterGraphDump ¶
AvfilterGraphDump Dump a graph into a human-readable string representation.
func (*Graph) AvfilterGraphFree ¶
func (g *Graph) AvfilterGraphFree()
AvfilterGraphFree Free a graph, destroy its links, and set *graph to NULL.
func (*Graph) AvfilterGraphGetFilter ¶
AvfilterGraphGetFilter Get a filter instance identified by instance name from graph.
func (*Graph) AvfilterGraphParse ¶
AvfilterGraphParse Add a graph described by a string to a graph.
func (*Graph) AvfilterGraphParse2 ¶
AvfilterGraphParse2 Add a graph described by a string to a graph.
func (*Graph) AvfilterGraphParsePtr ¶
AvfilterGraphParsePtr Add a graph described by a string to a graph.
func (*Graph) AvfilterGraphQueueCommand ¶
AvfilterGraphQueueCommand Queue a command for one or more filter instances.
func (*Graph) AvfilterGraphRequestOldestlink ¶
AvfilterGraphRequestOldestlink Request a frame on the oldest sink
func (*Graph) AvfilterGraphSendCommand ¶
AvfilterGraphSendCommand Send a command to one or more filter instances.
func (*Graph) AvfilterGraphSetAutoConvert ¶
AvfilterGraphSetAutoConvert Enable or disable automatic format conversion inside the graph.
type Input ¶
type Input C.struct_AVFilterInOut
func AvfilterInoutAlloc ¶
func AvfilterInoutAlloc() *Input
AvfilterInoutAlloc Allocate a single Input entry.
type Link ¶
type Link C.struct_AVFilterLink
type MediaType ¶
type MediaType C.enum_AVMediaType
func AvfilterPadGetType ¶
AvfilterPadGetType Get the type of an Pad.
type Pad ¶
type Pad C.struct_AVFilterPad