示例#1
0
文件: swresample.go 项目: hyhy01/goav
//AVFrame based API
//int swr_convert_frame (SwrContext *swr, AVFrame *output, const AVFrame *input)
//Convert the samples in the input AVFrame and write them to the output AVFrame.
func Swr_convert_frame(s *SwrContext, o, i *AVFrame) int {
	return int(C.swr_convert_frame((*C.struct_SwrContext)(s), (*C.struct_AVFrame)(o), (*C.struct_AVFrame)(i)))
}
示例#2
0
文件: context.go 项目: gale320/goav
//Frame based API. Convert the samples in the input Frame and write them to the output Frame.
func (s *Context) SwrConvertFrame(o, i *Frame) int {
	return int(C.swr_convert_frame((*C.struct_SwrContext)(s), (*C.struct_AVFrame)(o), (*C.struct_AVFrame)(i)))
}