Documentation
¶
Index ¶
- type Timecode
- func (tc *Timecode) Add(t *Timecode) *Timecode
- func (tc *Timecode) AddFrames(frames int) *Timecode
- func (tc *Timecode) AddSeconds(seconds float64) *Timecode
- func (tc *Timecode) AddString(t string) error
- func (tc *Timecode) Reset()
- func (tc *Timecode) SetDropFrame(drop bool)
- func (tc *Timecode) SetFrameRate(rate float64) error
- func (tc *Timecode) String() string
- func (tc *Timecode) Sub(t *Timecode) *Timecode
- func (tc *Timecode) SubFrames(frames int) *Timecode
- func (tc *Timecode) SubSeconds(seconds float64) *Timecode
- func (tc *Timecode) SubString(t string) error
- func (tc *Timecode) ToSeconds() float64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Timecode ¶
type Timecode struct {
// contains filtered or unexported fields
}
Timecode is an object for manipulating SMPTE timecodes
func NewTimecode ¶
NewTimecode returns a new Timecode. It takes the frame rate and a bool which flags it as using drop frame encoding
func (*Timecode) AddSeconds ¶
AddSeconds add seconds to the timecode
func (*Timecode) AddString ¶
AddString adds SMPTE strings in the following formats: timecode strings non-drop 'hh:mm:ss:ff', drop 'hh:mm:ss;ff', or milliseconds 'hh:mm:ss:mmm'
func (*Timecode) SetDropFrame ¶
SetDropFrame toggles the SMTPE drop frame encoding
func (*Timecode) SetFrameRate ¶
SetFrameRate sets the timecode's frame rate
func (*Timecode) SubSeconds ¶
SubSeconds subtract seconds from the timecode
Click to show internal directories.
Click to hide internal directories.