示例#1
0
func (ctx *Context) Link(srcPad uint, dst *Context, dstPad uint) error {
	cSrc := ctx.CAVFilterContext
	cDst := dst.CAVFilterContext
	code := C.avfilter_link(cSrc, C.uint(srcPad), cDst, C.uint(dstPad))
	if code < 0 {
		return avutil.NewErrorFromCode(avutil.ErrorCode(code))
	}
	return nil
}
示例#2
0
文件: avfilter.go 项目: ovr/goav
//Link two filters together.
func AvfilterLink(s *Context, sp uint, d *Context, dp uint) int {
	return int(C.avfilter_link((*C.struct_AVFilterContext)(s), C.uint(sp), (*C.struct_AVFilterContext)(d), C.uint(dp)))
}