mirror of
https://github.com/asticode/go-astiav.git
synced 2025-10-05 16:16:50 +08:00
13 lines
329 B
Go
13 lines
329 B
Go
package astiav
|
|
|
|
//#include <libavutil/mathematics.h>
|
|
import "C"
|
|
|
|
func RescaleQ(a int64, b Rational, c Rational) int64 {
|
|
return int64(C.av_rescale_q(C.int64_t(a), b.c, c.c))
|
|
}
|
|
|
|
func RescaleQRnd(a int64, b Rational, c Rational, r Rounding) int64 {
|
|
return int64(C.av_rescale_q_rnd(C.int64_t(a), b.c, c.c, C.enum_AVRounding(r)))
|
|
}
|