metric

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrRecordNotFound = errors.New("record not found")

Functions

This section is empty.

Types

type ID

type ID int64

type Record

type Record struct {
	Name             string
	SourceFile       string
	CompressedFile   string
	VQMResultFile    string
	Cmd              string
	HStime           string
	HUtime           string
	HElapsed         string
	Stime            time.Duration
	Utime            time.Duration
	Elapsed          time.Duration
	MaxRss           int64
	VideoDuration    float64
	AvgEncodingSpeed float64

	PSNRMin          float64
	PSNRMax          float64
	PSNRMean         float64
	PSNRHarmonicMean float64
	PSNRStDev        float64
	PSNRVariance     float64

	MS_SSIMMin          float64
	MS_SSIMMax          float64
	MS_SSIMMean         float64
	MS_SSIMHarmonicMean float64
	MS_SSIMStDev        float64
	MS_SSIMVariance     float64

	VMAFMin          float64
	VMAFMax          float64
	VMAFMean         float64
	VMAFHarmonicMean float64
	VMAFStDev        float64
	VMAFVariance     float64
}

Need to create a huge record.

type Store

type Store struct {
	// contains filtered or unexported fields
}

func NewStore

func NewStore() *Store

func (*Store) Delete

func (s *Store) Delete(id ID) error

func (*Store) Exists

func (s *Store) Exists(id ID) bool

func (*Store) Get

func (s *Store) Get(id ID) (Record, error)

func (*Store) GetIDs

func (s *Store) GetIDs() []ID

func (*Store) Insert

func (s *Store) Insert(r Record) ID

func (*Store) Update

func (s *Store) Update(id ID, r Record) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL