fixed naming of 'last' to 'next'

This commit is contained in:
BroodjeAap 2020-07-07 18:23:55 +00:00
parent d3f79abcae
commit b8ea9750bf

View file

@ -107,17 +107,17 @@ func (s Stream) IMReadCurrent() gocv.Mat {
return gocv.IMRead(s.GetCurrentInstantPath(), gocv.IMReadGrayScale) return gocv.IMRead(s.GetCurrentInstantPath(), gocv.IMReadGrayScale)
} }
// GetLastInstantPath returns filepath.Join(s.GetStreamDirPath(), s.base64, "last.jpg") // GetNextInstantPath returns filepath.Join(s.GetStreamDirPath(), s.base64, "last.jpg")
func (s Stream) GetLastInstantPath() string { func (s Stream) GetNextInstantPath() string {
return filepath.Join(s.GetStreamDirPath(), s.base64, "last.jpg") return filepath.Join(s.GetStreamDirPath(), s.base64, "last.jpg")
} }
// LastInstantPathExists returns FileExists(GetLastInstantPath()) // NextInstantPathExists returns FileExists(GetNextInstantPath())
func (s Stream) LastInstantPathExists() bool { func (s Stream) NextInstantPathExists() bool {
return FileExists(s.GetLastInstantPath()) return FileExists(s.GetNextInstantPath())
} }
// IMReadLast returns gocv.IMRead(GetLastInstantPath(), gocv.IMReadGrayScale) // IMReadNext returns gocv.IMRead(GetNextInstantPath(), gocv.IMReadGrayScale)
func (s Stream) IMReadLast() gocv.Mat { func (s Stream) IMReadNext() gocv.Mat {
return gocv.IMRead(s.GetLastInstantPath(), gocv.IMReadGrayScale) return gocv.IMRead(s.GetNextInstantPath(), gocv.IMReadGrayScale)
} }