 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- type Timecode
- func NewTimecodeFromFrames(inputFrameIdx int64, frameRate float64, isDropframe bool) (*Timecode, error)
- func NewTimecodeFromString(inputTimecode string, frameRate float64) (*Timecode, error)
- func ParseStringToTimecode(in string, fps float64, excludeLastTimecode bool, dropFrame bool) (*Timecode, error)
 
- type TimecodeSpan
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Timecode ¶
func NewTimecodeFromFrames ¶
func NewTimecodeFromFrames(inputFrameIdx int64, frameRate float64, isDropframe bool) (*Timecode, error)
NewTimecodeFromFrames will create a Timecode object for given frames. The only time it will return an error is if DF is specified for a non-DF framerate.
func NewTimecodeFromString ¶
func ParseStringToTimecode ¶
func ParseStringToTimecode(in string, fps float64, excludeLastTimecode bool, dropFrame bool) (*Timecode, error)
ParseStringToTimecode Will take a string that is either a timecode string or a frame count string and return a bonefied timecode object. This is only used in the context of calculate where we know if it's df or ndf. This dropframeness is ignored if it's a timecode string excludeLastTimecode will only work for inputs that are a timecode string - not a frame count.
func (*Timecode) GetFrameCount ¶
func (*Timecode) GetFrameIdx ¶
func (*Timecode) GetFramerateString ¶
func (*Timecode) GetTimecode ¶
type TimecodeSpan ¶
type TimecodeSpan struct {
	StartTimecode *Timecode
	LastTimecode  *Timecode
	Framerate     float64
	Dropframe     bool
}
    func NewTimecodeSpan ¶
func NewTimecodeSpan(firstTimecode, lastTimecode *Timecode) (*TimecodeSpan, error)
func (*TimecodeSpan) GetSpanRealtime ¶
func (t *TimecodeSpan) GetSpanRealtime() string
func (*TimecodeSpan) GetSpanTimecode ¶
func (t *TimecodeSpan) GetSpanTimecode() string
func (*TimecodeSpan) GetTotalFrames ¶
func (t *TimecodeSpan) GetTotalFrames() int
func (*TimecodeSpan) GetTotalSeconds ¶
func (t *TimecodeSpan) GetTotalSeconds() float64
TOdo: This calc appears to be wrong
 Click to show internal directories. 
   Click to hide internal directories.