30 using namespace KKLSC;
69 memset (frameBuffer, 0, frameBufferSize);
74 frameBufferLen = fread (frameBuffer, 1, frameBufferSize, file);
88 kkint32 returnCd = osFSEEK (file, nextFrameByteOffset - 1, SEEK_SET);
91 returnCd = fread (buff, 1, 1, file);
95 return nextFrameByteOffset;
105 fwrite (frameBuffer, 1, frameBufferSpaceUsed, file);
108 if (paddingNeeded > 0)
111 memset (buff, 0, paddingNeeded);
112 fwrite (buff, 1, paddingNeeded, file);
129 log.Level (-1) << endl
130 <<
"ScannerFileSimple::WriteTextBlock ***ERROR*** The SimpleFormat does not support TextBlocks" << endl
kkint64 frameBufferFileOffsetLast
kkint64 frameBufferFileOffsetNext
kkint64 osFTELL(FILE *f)
Calls the appropriate 64 bit function for operating system.
static const uchar * CompensationTable()
virtual void WriteTextBlock(const uchar *txtBlock, kkuint32 txtBlockLen)
virtual void WriteBufferFrame()
Write the contents of 'frameBuffer' to he end of the scanner file.
unsigned __int32 kkuint32
ScannerFileSimple(const KKStr &_fileName, kkuint32 _pixelsPerScanLine, kkuint32 _frameHeight, RunLog &_log)
virtual kkint64 SkipToNextFrame()
Skip to start of next frame returning back byte offset of that frame.
unsigned char uchar
Unsigned character.
static KKStr Concat(const std::vector< std::string > &values)
Concatenates the list of 'std::string' strings.
Contains Classes that are specific to Cameras physical characteristics.
virtual ~ScannerFileSimple()
kkuint32 frameBufferNextLine
kkuint32 pixelsPerScanLine
Used for logging messages.
ScannerFileSimple(const KKStr &_fileName, RunLog &_log)
ScannerFile(const KKStr &_fileName, kkuint32 _pixelsPerScanLine, kkuint32 _frameHeight, RunLog &_log)
Maintains one instance of a GoalKeeper object that can be used anywhere in the application.
ScannerFile(const KKStr &_fileName, RunLog &_log)
virtual kkuint32 ReadBufferFrame()
Read in one Scanner File Frame return number of actual scan-lines read.