Changeset View
Changeset View
Standalone View
Standalone View
src/ksanepreviewthread.h
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Line(s) | 51 | public: | |||
---|---|---|---|---|---|
68 | 68 | | |||
69 | QMutex imgMutex; | 69 | QMutex imgMutex; | ||
70 | 70 | | |||
71 | private: | 71 | private: | ||
72 | void readData(); | 72 | void readData(); | ||
73 | void copyToPreviewImg(int readBytes); | 73 | void copyToPreviewImg(int readBytes); | ||
74 | 74 | | |||
75 | SANE_Byte m_readData[PREVIEW_READ_CHUNK_SIZE]; | 75 | SANE_Byte m_readData[PREVIEW_READ_CHUNK_SIZE]; | ||
76 | SANE_Handle m_saneHandle; | ||||
76 | int m_frameSize; | 77 | int m_frameSize; | ||
77 | int m_frameRead; | 78 | int m_frameRead; | ||
78 | int m_dataSize; | | |||
79 | int m_frame_t_count; | 79 | int m_frame_t_count; | ||
80 | int m_dataSize; | ||||
80 | SANE_Parameters m_params; | 81 | SANE_Parameters m_params; | ||
81 | SANE_Handle m_saneHandle; | | |||
82 | bool m_invertColors; | | |||
83 | SANE_Status m_saneStatus; | 82 | SANE_Status m_saneStatus; | ||
84 | ReadStatus m_readStatus; | 83 | ReadStatus m_readStatus; | ||
85 | // int m_scanProgress; | 84 | // int m_scanProgress; | ||
86 | bool m_saneStartDone; | 85 | bool m_saneStartDone; | ||
86 | bool m_invertColors; | ||||
87 | KSanePreviewImageBuilder m_imageBuilder; | 87 | KSanePreviewImageBuilder m_imageBuilder; | ||
88 | }; | 88 | }; | ||
89 | } | 89 | } | ||
90 | 90 | | |||
91 | #endif | 91 | #endif |