Documentation
¶
Index ¶
- type Progress
- type WorkItem
- func (w *WorkItem) AddSourceStats(stats ffmpeg.VideoStats)
- func (w *WorkItem) AddTargetStats(stats ffmpeg.VideoStats)
- func (w *WorkItem) CompletedFormatted() string
- func (w *WorkItem) RemainingFormatted() string
- func (w *WorkItem) SetStatus(status WorkStatus, err error)
- func (w *WorkItem) SourceVideoStats() ffmpeg.VideoStats
- func (w *WorkItem) Status() (WorkStatus, error)
- func (w *WorkItem) TargetVideoStats() ffmpeg.VideoStats
- type WorkList
- func (wl *WorkList) Active() bool
- func (wl *WorkList) Add(filename string) *WorkItem
- func (wl *WorkList) All() iter.Seq[*WorkItem]
- func (wl *WorkList) List() []*WorkItem
- func (wl *WorkList) NextToConvert() *WorkItem
- func (wl *WorkList) Queue(item *WorkItem)
- func (wl *WorkList) SetActive(active bool)
- func (wl *WorkList) Size() int
- func (wl *WorkList) ToggleActive()
- type WorkStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WorkItem ¶
func (*WorkItem) AddSourceStats ¶
func (w *WorkItem) AddSourceStats(stats ffmpeg.VideoStats)
func (*WorkItem) AddTargetStats ¶
func (w *WorkItem) AddTargetStats(stats ffmpeg.VideoStats)
func (*WorkItem) CompletedFormatted ¶
func (*WorkItem) RemainingFormatted ¶
func (*WorkItem) SetStatus ¶
func (w *WorkItem) SetStatus(status WorkStatus, err error)
func (*WorkItem) SourceVideoStats ¶
func (w *WorkItem) SourceVideoStats() ffmpeg.VideoStats
func (*WorkItem) Status ¶
func (w *WorkItem) Status() (WorkStatus, error)
func (*WorkItem) TargetVideoStats ¶
func (w *WorkItem) TargetVideoStats() ffmpeg.VideoStats
type WorkList ¶
type WorkList struct {
// contains filtered or unexported fields
}
func (*WorkList) List ¶
List returns all WorkItem records in the list. This clones the contained slice. For performance reasons, this should only be used for testing. Use All(), which returns an iterator, instead.
func (*WorkList) NextToConvert ¶
func (*WorkList) Queue ¶
Queue adds an item ready to be converted. This item will be processed, regardless of whether the queue is active or not.
func (*WorkList) ToggleActive ¶
func (wl *WorkList) ToggleActive()
type WorkStatus ¶
type WorkStatus int
const ( Waiting WorkStatus = iota Inspecting Skipped Rejected Inspected Converting Converted Failed )
func (WorkStatus) String ¶
func (ws WorkStatus) String() string
Click to show internal directories.
Click to hide internal directories.