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)
}
// GetLastInstantPath returns filepath.Join(s.GetStreamDirPath(), s.base64, "last.jpg")
func (s Stream) GetLastInstantPath() string {
// GetNextInstantPath returns filepath.Join(s.GetStreamDirPath(), s.base64, "last.jpg")
func (s Stream) GetNextInstantPath() string {
return filepath.Join(s.GetStreamDirPath(), s.base64, "last.jpg")
}
// LastInstantPathExists returns FileExists(GetLastInstantPath())
func (s Stream) LastInstantPathExists() bool {
return FileExists(s.GetLastInstantPath())
// NextInstantPathExists returns FileExists(GetNextInstantPath())
func (s Stream) NextInstantPathExists() bool {
return FileExists(s.GetNextInstantPath())
}
// IMReadLast returns gocv.IMRead(GetLastInstantPath(), gocv.IMReadGrayScale)
func (s Stream) IMReadLast() gocv.Mat {
return gocv.IMRead(s.GetLastInstantPath(), gocv.IMReadGrayScale)
// IMReadNext returns gocv.IMRead(GetNextInstantPath(), gocv.IMReadGrayScale)
func (s Stream) IMReadNext() gocv.Mat {
return gocv.IMRead(s.GetNextInstantPath(), gocv.IMReadGrayScale)
}