Exemple #1
0
func (ctx *Context) InitWithDictionary(options *avutil.Dictionary) error {
	var cOptions **C.AVDictionary
	if options != nil {
		cOptions = (**C.AVDictionary)(unsafe.Pointer(&options.CAVDictionary))
	}
	code := C.avfilter_init_dict(ctx.CAVFilterContext, cOptions)
	if code < 0 {
		return avutil.NewErrorFromCode(avutil.ErrorCode(code))
	}
	return nil
}
Exemple #2
0
//Initialize a filter with the supplied dictionary of options.
func (ctx *Context) AvfilterInitDict(o **Dictionary) int {
	return int(C.avfilter_init_dict((*C.struct_AVFilterContext)(ctx), (**C.struct_AVDictionary)(unsafe.Pointer(o))))
}
Exemple #3
0
//int 	avfilter_init_dict (AVFilterContext *ctx, AVDictionary **options)
//Initialize a filter with the supplied dictionary of options.
func Avfilter_init_dict(f *AVFilterContext, o **AVDictionary) int {
	return int(C.avfilter_init_dict((*C.struct_AVFilterContext)(f), (**C.struct_AVDictionary)(unsafe.Pointer(o))))
}