#include <jpgprgrs.h>
Inheritance diagram for JPEGProgressByFilter:
Public Member Functions | |
JPEGProgressByFilter (libJPEG::j_decompress_ptr cinfo, Filter *pFilterToUse, UINT32 ImportSize) | |
Protected Member Functions | |
virtual void | OnUpdate () |
Called by JPEGProgressMonitor::Update() to provide feedback on the filter progress. Derived classes should provide an implementation for this. JPEGProgressByFilter calls the contained Filter's Update member with the number of scanlines processed. | |
Protected Attributes | |
Filter * | m_pFilterForUpdate |
UINT32 | m_uLastScanLineDone |
UINT32 | m_uImportSize |
Definition at line 181 of file jpgprgrs.h.
|
|
|
Called by JPEGProgressMonitor::Update() to provide feedback on the filter progress. Derived classes should provide an implementation for this. JPEGProgressByFilter calls the contained Filter's Update member with the number of scanlines processed.
Implements JPEGProgressMonitor. Definition at line 309 of file jpgprgrs.cpp. 00310 { 00311 INT32 Difference = m_pcinfo->output_scanline - m_uLastScanLineDone; 00312 if (Difference > 0) 00313 { 00314 UINT32 PerLineIncrement = m_uImportSize / m_pcinfo->output_height; 00315 m_pFilterForUpdate->IncProgressBarCount(Difference * PerLineIncrement); 00316 m_uLastScanLineDone += Difference; 00317 } 00318 }
|
|
Definition at line 191 of file jpgprgrs.h. |
|
Definition at line 193 of file jpgprgrs.h. |
|
Definition at line 192 of file jpgprgrs.h. |