JPEGProgressByFilter Class Reference

Provides progress update callback for the IJG library JPEG Filters using the Update member of the Filter class. More...

#include <jpgprgrs.h>

Inheritance diagram for JPEGProgressByFilter:

JPEGProgressMonitor List of all members.

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

Filterm_pFilterForUpdate
UINT32 m_uLastScanLineDone
UINT32 m_uImportSize

Detailed Description

Provides progress update callback for the IJG library JPEG Filters using the Update member of the Filter class.

Author:
Colin_Barfoot (Xara Group Ltd) <camelotdev@xara.com>
Date:
10/08/96

Definition at line 181 of file jpgprgrs.h.


Constructor & Destructor Documentation

JPEGProgressByFilter::JPEGProgressByFilter libJPEG::j_decompress_ptr  cinfo,
Filter pFilterToUse,
UINT32  ImportSize
 


Member Function Documentation

void JPEGProgressByFilter::OnUpdate  )  [protected, virtual]
 

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.

Author:
Colin_Barfoot (Xara Group Ltd) <camelotdev@xara.com>
Date:
02/08/96

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 }


Member Data Documentation

Filter* JPEGProgressByFilter::m_pFilterForUpdate [protected]
 

Definition at line 191 of file jpgprgrs.h.

UINT32 JPEGProgressByFilter::m_uImportSize [protected]
 

Definition at line 193 of file jpgprgrs.h.

UINT32 JPEGProgressByFilter::m_uLastScanLineDone [protected]
 

Definition at line 192 of file jpgprgrs.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 03:55:37 2007 for Camelot by  doxygen 1.4.4