NewBasicFilter to NewBasic as we already know its a filter

This commit is contained in:
Ella Pietraroia 2020-01-31 14:23:33 +10:30
parent 40b282f39d
commit e107b682bb
2 changed files with 4 additions and 3 deletions

View File

@ -66,7 +66,7 @@ type Basic struct {
}
// NewBasicFilter returns a pointer to a new Basic filter struct.
func NewBasicFilter(dst io.WriteCloser, debug bool) *Basic {
func NewBasic(dst io.WriteCloser, debug bool) *Basic {
bwImg := image.NewRGBA(image.Rect(0, 0, 0, 0))
var file io.WriteCloser
var err error
@ -122,7 +122,8 @@ func (bf *Basic) Write(f []byte) (int, error) {
}
// Use 4x goroutines to each process one row of pixels.
j := 0
var j int
j = 0
var wg *sync.WaitGroup
for j < bf.h {

View File

@ -349,7 +349,7 @@ func (r *Revid) setupPipeline(mtsEnc func(dst io.WriteCloser, rate float64) (io.
case config.FilterDifference:
r.filters[i] = filter.NewDifference(dst, r.cfg.ShowWindows, r.cfg.DiffThreshold)
case config.FilterBasic:
r.filters[i] = filter.NewBasicFilter(dst, r.cfg.ShowWindows)
r.filters[i] = filter.NewBasic(dst, r.cfg.ShowWindows)
default:
panic("Undefined Filter")
}