![]() |
KSquare Utilities
|
Used to buffer one Frame of Scanner Data for use by 'ScannerFileBuffered'. More...
#include <ScannerFrame.h>
Public Types | |
| typedef ScannerFrame * | ScannerFramePtr |
Public Member Functions | |
| ScannerFrame (ScannerClockPtr _clock, kkint32 _scanLinesPerFrame, kkint32 _pixelsPerScanLine) | |
| Construct a frame with the dimensions (Height = _scanLinesPerFrame) and (Width = _pixelsPerScanLine). More... | |
| ~ScannerFrame () | |
| kkint32 | FrameNum () const |
| void | FrameNum (kkint32 _frameNum) |
| kkint32 | ScanLineFirst () const |
| void | ScanLineFirst (kkint32 _scanLineFirst) |
| kkint32 | ScanLineLast () const |
| void | ScanLineLast (kkint32 _scanLineLast) |
| uchar ** | ScanLines () |
| void | ScanLines (uchar **_scanLines) |
| kkint32 | Time () const |
| void | Time (kkint32 _time) |
Used to buffer one Frame of Scanner Data for use by 'ScannerFileBuffered'.
Each access to 'ScanLines' will cause the 'time' variable to increment by one. This will allow the 'ScannerFleBufered' class know how old its Buffered frames are. With this knowledge it will be able to keep the more currently accessed frames in memory.
Definition at line 16 of file ScannerFrame.h.
Definition at line 19 of file ScannerFrame.h.
| ScannerFrame::ScannerFrame | ( | ScannerClockPtr | _clock, |
| kkint32 | _scanLinesPerFrame, | ||
| kkint32 | _pixelsPerScanLine | ||
| ) |
Construct a frame with the dimensions (Height = _scanLinesPerFrame) and (Width = _pixelsPerScanLine).
| [in] | _clock | A ScannerClock instance that is shared by all instances of 'ScannerFrame' that are used by the same instance of 'ScannerFleBuffered'. |
| [in] | _scanLinesPerFrame | Height of the frame. |
| [in] | _pixelsPerScanLine | Width of the frame. |
Definition at line 15 of file ScannerFrame.cpp.
| ScannerFrame::~ScannerFrame | ( | ) |
Definition at line 35 of file ScannerFrame.cpp.
|
inline |
Definition at line 35 of file ScannerFrame.h.
|
inline |
Definition at line 42 of file ScannerFrame.h.
|
inline |
Definition at line 37 of file ScannerFrame.h.
|
inline |
Definition at line 44 of file ScannerFrame.h.
|
inline |
Definition at line 38 of file ScannerFrame.h.
|
inline |
Definition at line 45 of file ScannerFrame.h.
| uchar ** ScannerFrame::ScanLines | ( | ) |
Will return scan-lines and increment 'time' by one.
Definition at line 62 of file ScannerFrame.cpp.
References KKLSC::ScannerClock::Time().
| void ScannerFrame::ScanLines | ( | uchar ** | _scanLines | ) |
Definition at line 70 of file ScannerFrame.cpp.
References KKLSC::ScannerClock::Time().
|
inline |
The higher 'time' the more recently this frame has been accessed.
Definition at line 39 of file ScannerFrame.h.
|
inline |
Definition at line 46 of file ScannerFrame.h.