Files
go-astiencoder/libav/descriptor.go
2022-02-20 11:26:26 +01:00

23 lines
412 B
Go

package astilibav
import (
"github.com/asticode/go-astiav"
)
// Descriptor is an object that can describe a set of parameters
type Descriptor interface {
TimeBase() astiav.Rational
}
func NewDescriptor(timeBase astiav.Rational) Descriptor {
return descriptor{timeBase: timeBase}
}
type descriptor struct {
timeBase astiav.Rational
}
func (d descriptor) TimeBase() astiav.Rational {
return d.timeBase
}