Пример #1
0
func (ctx *Context) FrameRate() *avutil.Rational {
	r := C.av_buffersink_get_frame_rate(ctx.CAVFilterContext)
	return avutil.NewRationalFromC(unsafe.Pointer(&r))
}
Пример #2
0
func (l *Link) FrameRate() *avutil.Rational {
	return avutil.NewRationalFromC(unsafe.Pointer(&l.CAVFilterLink.frame_rate))
}
Пример #3
0
func (l *Link) TimeBase() *avutil.Rational {
	return avutil.NewRationalFromC(unsafe.Pointer(&l.CAVFilterLink.time_base))
}
Пример #4
0
func (l *Link) SampleAspectRatio() *avutil.Rational {
	return avutil.NewRationalFromC(unsafe.Pointer(&l.CAVFilterLink.sample_aspect_ratio))
}
Пример #5
0
func (s *Stream) RealFrameRate() *avutil.Rational {
	r := C.av_stream_get_r_frame_rate(s.CAVStream)
	return avutil.NewRationalFromC(unsafe.Pointer(&r))
}
Пример #6
0
func (s *Stream) AverageFrameRate() *avutil.Rational {
	return avutil.NewRationalFromC(unsafe.Pointer(&s.CAVStream.avg_frame_rate))
}