00001 #ifndef __plucker_h 00002 #define __plucker_h 00003 00004 #include "plucker_base.h" 00005 00006 #ifdef LOCALPICTURES 00007 class QScrollView; 00008 class QWidget; 00009 #endif 00010 00011 class CPlucker : public CPlucker_base 00012 { 00013 bool isEndOfSection(int thisrec) 00014 { 00015 return !m_bufferisreserved; 00016 } 00017 unsigned long NEFstartSection(); 00018 unsigned long NEFendSection(); 00019 void start2endSection(); 00020 void setbuffersize() 00021 { 00022 compressedbuffersize = buffersize = 32*1024; 00023 } 00024 int HeaderSize(); 00025 void GetHeader(UInt16& uid, UInt16& nParagraphs, UInt32& size, UInt8& type, UInt8& reserved); 00026 int bgetch(); 00027 tchar getch(bool fast); 00028 UInt8 EOPPhase; 00029 00030 00031 00032 bool CorrectDecoder(); // Virtual 00033 void setlink(QString&, const QString&); // Virtual 00034 QImage* imagefromdata(UInt8*, UInt32); // virtual 00035 public: 00036 CPlucker(); 00037 QString about() { return CPlucker_base::about()+QString("\nPlucker codec (c) Tim Wentford - Image reading code based on unpluck by Bill Janssen"); } 00038 }; 00039 #endif
1.4.2