Ejemplo n.º 1
0
//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)))
}
Ejemplo n.º 2
0
//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)))
}