Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

virtual void Impala::Core::VideoSet::Reporter::HandleNewFrame ( VideoSet vs,
int  fileId,
Stream::RgbDataSrc src 
) [inline, virtual]

Arrived at a new frame in a "normal" walk.

Reimplemented from Impala::Core::VideoSet::Listener.

Definition at line 119 of file Reporter.h.

References AllDoneFrame(), Impala::Core::Stream::RgbDataSrc::FrameNr(), ILOG_DEBUG, ILOG_INFO, Impala::Core::Array::ArraySystem::Instance(), Impala::Core::Stream::RgbDataSrc::LastFrame(), Impala::Core::Array::ArraySystem::MarkMemoryUsage(), mDoPrint, mMaster, mNrDone, and mReport.

00120     {
00121         if (mMaster)
00122         {
00123             int frameNr = (src) ? src->FrameNr() : 0;
00124             ILOG_DEBUG("..   new frame number = " << frameNr);
00125         }
00126         if (mMaster)
00127         {
00128             mMaster->AllDoneFrame();
00129             return;
00130         }
00131         mDoPrint = false;
00132         mNrDone++;
00133         if ((mReport > 0) && (mNrDone % mReport == 0))
00134             mDoPrint = true;
00135         if (mDoPrint)
00136         {
00137             int nrFiles = vs->NrFiles();
00138             int perc = (int) (((double) fileId / (double) nrFiles) * 100);
00139             if (src)
00140                 ILOG_INFO("--   frame " << src->FrameNr() << " of "
00141                           << src->LastFrame()+1 << ", at nr " << mNrDone
00142                           << " (at file " << fileId << " of "
00143                           << nrFiles << " = " << perc << "%)")
00144             else
00145                 ILOG_INFO("--   frame (no src available), at nr " << mNrDone
00146                           << " (at file " << fileId
00147                           << " of " << nrFiles << " = " << perc << "%)");
00148         }
00149         Array::ArraySystem::Instance().MarkMemoryUsage(false);
00150     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:31:11 2010 for ImpalaSrc by  doxygen 1.5.1