mirror of
https://github.com/giorgisio/goav.git
synced 2024-04-21 12:31:56 +00:00
26 lines
648 B
Go
26 lines
648 B
Go
// Use of this source code is governed by a MIT license that can be found in the LICENSE file.
|
|
// Giorgis (habtom@giorgis.io)
|
|
|
|
package avfilter
|
|
|
|
/*
|
|
#cgo pkg-config: libavfilter
|
|
#include <libavfilter/avfilter.h>
|
|
*/
|
|
import "C"
|
|
|
|
//Get a filter definition matching the given name.
|
|
func AvfilterGetByName(n string) *Filter {
|
|
return (*Filter)(C.avfilter_get_by_name(C.CString(n)))
|
|
}
|
|
|
|
//Register a filter.
|
|
func (f *Filter) AvfilterRegister() int {
|
|
return int(C.avfilter_register((*C.struct_AVFilter)(f)))
|
|
}
|
|
|
|
//Iterate over all registered filters.
|
|
func (f *Filter) AvfilterNext() *Filter {
|
|
return (*Filter)(C.avfilter_next((*C.struct_AVFilter)(f)))
|
|
}
|