Пример #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
//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)))
}