Documentation ¶
Index ¶
- func Version() string
- type ModelConfiguration
- type ModelFlags
- type OutputFormat
- type PoolingMethod
- type VMAF
- func (v *VMAF) Close()
- func (v *VMAF) FeatureScoreAtIndex(featureName string, index uint) (float64, error)
- func (v *VMAF) Output(path string, format OutputFormat) error
- func (v *VMAF) ReadPictures(reference, distorted frame.Frame, index uint) error
- func (v *VMAF) ReadStreams(reference, distorted *frame.Stream) (uint, error)
- func (v *VMAF) ScoreAtIndex(index uint) (float64, error)
- func (v *VMAF) ScorePooled(method PoolingMethod, indexLow, indexHigh uint) (float64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ModelConfiguration ¶
type ModelConfiguration struct { Name string Version string Flags ModelFlags }
func NewModelDefault ¶
func NewModelDefault() *ModelConfiguration
type ModelFlags ¶
type ModelFlags uint64
const ( ModelFlagsDefault ModelFlags = C.VMAF_MODEL_FLAGS_DEFAULT ModelFlagDisableClip ModelFlags = C.VMAF_MODEL_FLAG_DISABLE_CLIP ModelFlagEnableTransform ModelFlags = C.VMAF_MODEL_FLAG_ENABLE_TRANSFORM ModelFlagDisableTransform ModelFlags = C.VMAF_MODEL_FLAG_DISABLE_TRANSFORM )
type OutputFormat ¶
type OutputFormat uint32
const ( OutputFormatNone OutputFormat = C.VMAF_OUTPUT_FORMAT_NONE OutputFormatXml OutputFormat = C.VMAF_OUTPUT_FORMAT_XML OutputFormatJson OutputFormat = C.VMAF_OUTPUT_FORMAT_JSON OutputFormatCsv OutputFormat = C.VMAF_OUTPUT_FORMAT_CSV OutputFormatSub OutputFormat = C.VMAF_OUTPUT_FORMAT_SUB )
type PoolingMethod ¶
type PoolingMethod uint32
const ( PoolingMethodUnknown PoolingMethod = C.VMAF_POOL_METHOD_UNKNOWN PoolingMethodMinimum PoolingMethod = C.VMAF_POOL_METHOD_MIN PoolingMethodMaximum PoolingMethod = C.VMAF_POOL_METHOD_MAX PoolingMethodMean PoolingMethod = C.VMAF_POOL_METHOD_MEAN PoolingMethodHarmonicMean PoolingMethod = C.VMAF_POOL_METHOD_HARMONIC_MEAN PoolingMethodNB PoolingMethod = C.VMAF_POOL_METHOD_NB )
type VMAF ¶
type VMAF struct {
// contains filtered or unexported fields
}
func (*VMAF) FeatureScoreAtIndex ¶
func (*VMAF) ReadPictures ¶
ReadPictures Read a pair of frame.Frame and queue them for eventual feature extraction. When you're done reading pictures call this function again with both reference and distorted set to nil
func (*VMAF) ReadStreams ¶
ReadStreams Read a pair of frame.Stream and queues each frame.Frame via ReadPictures for eventual feature extraction, and flushes at the end. Returns the count of frame.Frame used (indexes will be up to count - 1).
func (*VMAF) ScorePooled ¶
func (v *VMAF) ScorePooled(method PoolingMethod, indexLow, indexHigh uint) (float64, error)
Click to show internal directories.
Click to hide internal directories.