1 #if !defined(_SCANNERFILE2BITENCODED_) 2 #define _SCANNERFILE2BITENCODED_ 89 void AllocateEncodedBuff ();
91 static void ExitCleanUp ();
93 void GetNextScanLine (
uchar* lineBuff,
97 void WriteNextScanLine (
const uchar* buffer,
102 static uchar* convTable2BitTo8Bit;
103 static uchar* convTable8BitTo2Bit;
104 static uchar* compensationTable;
108 static void BuildConversionTables ();
124 typedef OpRec* OpRecPtr;
128 void ProcessTextBlock (
const OpRec& rec);
129 void AllocateRawPixelRecBuffer (
kkuint32 size);
130 void ProcessRawPixelRecs (
kkuint16 numRawPixels,
142 void AddCurRunLenToOutputBuffer ();
144 void AddCurRawStrToOutputBuffer ();
146 void AddRawStrPixelsToEncodedBuffer (
kkuint16& nextCp,
150 void AllocateRawStr (
kkuint16 size);
152 void ReSizeEncodedBuff (
kkuint32 newSize);
154 typedef enum {csNull, csRunLen, csRaw} CompStatus;
156 OpRecPtr encodedBuff;
158 OpRecPtr encodedBuffNext;
168 CompStatus curCompStatus;
virtual kkint64 SkipToNextFrame()
Skip to start of next frame returning back byte offset of that frame.
virtual Format FileFormat() const
virtual ~ScannerFile2BitEncoded()
unsigned __int16 kkuint16
16 bit unsigned integer.
Implements a 2 bit Encoded format.
virtual void WriteTextBlock(const uchar *txtBlock, kkuint32 txtBlockLen)
unsigned __int32 kkuint32
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.
kkuint32 ReadBufferFrame()
Read on one Scanner File Frame.
static const uchar * CompensationTable()
ScannerFile2BitEncoded(const KKStr &_fileName, kkuint32 _pixelsPerScanLine, kkuint32 _frameHeight, RunLog &_log)
ScannerFile2BitEncoded(const KKStr &_fileName, RunLog &_log)
Used for logging messages.
virtual void ScanRate(float _scanRate)
virtual void WriteBufferFrame()
Write the contents of 'frameBuffer' to he end of the scanner file.
ScannerFile2BitEncoded * ScannerFile2BitEncodedPtr