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

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

Arrived at given DB_FILE in a "normal" walk.

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

Definition at line 41 of file CheckNrFrames.h.

References Impala::Core::VideoSet::Segmentation::GetNrFramesVideo(), ILOG_ERROR, ILOG_INFO, Impala::Core::Stream::RgbDataSrc::LastFrame(), mMargin, and mSegmentation.

00042     {
00043         if (!mSegmentation)
00044         {
00045             ILOG_ERROR("No segmentation given");
00046             return;
00047         }
00048         int srcNr = src->LastFrame() + 1;
00049         int segNr = mSegmentation->GetNrFramesVideo(fileId);
00050         int d = abs(srcNr - segNr);
00051         if (d > mMargin)
00052         {
00053             ILOG_ERROR("Frame difference is " << d << " for file " <<
00054                        vs->GetFile(fileId) << " (src says " << srcNr <<
00055                        ", segmentation says " << segNr << ")");
00056         }
00057         if ((d > 0) && (mMargin != 0))
00058             ILOG_INFO("Frame difference is " << d << " for file " <<
00059                        vs->GetFile(fileId) << " (src says " << srcNr <<
00060                        ", segmentation says " << segNr << ")");
00061     }

Here is the call graph for this function:


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