mirror of https://bitbucket.org/ausocean/av.git
NewBasicFilter to NewBasic as we already know its a filter
This commit is contained in:
parent
40b282f39d
commit
e107b682bb
|
@ -66,7 +66,7 @@ type Basic struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewBasicFilter returns a pointer to a new Basic filter 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))
|
bwImg := image.NewRGBA(image.Rect(0, 0, 0, 0))
|
||||||
var file io.WriteCloser
|
var file io.WriteCloser
|
||||||
var err error
|
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.
|
// Use 4x goroutines to each process one row of pixels.
|
||||||
j := 0
|
var j int
|
||||||
|
j = 0
|
||||||
var wg *sync.WaitGroup
|
var wg *sync.WaitGroup
|
||||||
|
|
||||||
for j < bf.h {
|
for j < bf.h {
|
||||||
|
|
|
@ -349,7 +349,7 @@ func (r *Revid) setupPipeline(mtsEnc func(dst io.WriteCloser, rate float64) (io.
|
||||||
case config.FilterDifference:
|
case config.FilterDifference:
|
||||||
r.filters[i] = filter.NewDifference(dst, r.cfg.ShowWindows, r.cfg.DiffThreshold)
|
r.filters[i] = filter.NewDifference(dst, r.cfg.ShowWindows, r.cfg.DiffThreshold)
|
||||||
case config.FilterBasic:
|
case config.FilterBasic:
|
||||||
r.filters[i] = filter.NewBasicFilter(dst, r.cfg.ShowWindows)
|
r.filters[i] = filter.NewBasic(dst, r.cfg.ShowWindows)
|
||||||
default:
|
default:
|
||||||
panic("Undefined Filter")
|
panic("Undefined Filter")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue