From b8ea9750bf5b47951fabd584b94c2edcff4f79ef Mon Sep 17 00:00:00 2001 From: BroodjeAap Date: Tue, 7 Jul 2020 18:23:55 +0000 Subject: [PATCH] fixed naming of 'last' to 'next' --- stream.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/stream.go b/stream.go index e06d342..9a1cc57 100755 --- a/stream.go +++ b/stream.go @@ -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) }