Documentation
¶
Overview ¶
Package vmaf measures a distorted video against its reference as Netflix's VMAF does: libvmaf's integer feature extractors (VIF at four scales, ADM, motion) ported to Go, and its v0.6.1 models (the 1080p one, and the 4K one for pictures above 1080 lines). The ports follow libvmaf's arithmetic step for step, so the features and the score are the ones its vmaf tool gives.
libvmaf is Netflix's, under the BSD+Patent license, a copy of which is in LICENSE.libvmaf.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Model ¶
type Model struct {
Name string
// Transform applies the model's score transform (libvmaf's
// enable_transform), which its tool leaves off unless asked.
Transform bool
// contains filtered or unexported fields
}
Model is a VMAF model.
type Pooled ¶
type Pooled struct {
Mean, Harmonic, Min, P1 float64
}
Pooled is a measure over a video: its mean, its harmonic mean (VMAF's usual pooling for a single number weighs the bad pictures more), the worst picture's and the 1st percentile's (from the worst).
type Score ¶
type Score struct {
VMAF float64
PSNR float64 // luma, dB
SSIM float64
ADM2 float64
Motion2 float64
VIF [4]float64
}
Score is a picture's measures.
type Scorer ¶
type Scorer struct {
// contains filtered or unexported fields
}
Scorer measures a distorted video against its reference, a picture pair at a time, on every CPU: the pictures are measured as they come, VMAF once the next picture's motion is known (Scores).