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

bool Impala::Core::Stream::RgbDataSrcLavc::Scan ( Lavc::VideoAccessStrategy accessStrategy  )  [inline, private]

Definition at line 357 of file RgbDataSrcLavc.h.

References Impala::Core::Stream::Lavc::VideoAccessStrategy::FrameIsValid(), ILOG_ERROR, Impala::Core::Stream::Lavc::VideoAccessStrategy::LeadingBadFrames(), Impala::Core::Stream::RgbDataSrcInfo::MarkBadFrame(), Impala::Core::Stream::RgbDataSrc::mLastFrame, Impala::Core::Stream::RgbDataSrc::mSrcName, Impala::Core::Stream::Lavc::VideoAccessStrategy::NrOfFrames(), Impala::Core::Stream::Lavc::VideoAccessStrategy::Scan(), and Impala::Core::Stream::RgbDataSrc::SetLeadingBadFrames().

Referenced by Init(), and PopulateIndex().

00358     {
00359         if (!accessStrategy.Scan())
00360         {
00361             ILOG_ERROR("Failed while scanning: " << mSrcName);
00362             return false;
00363         }
00364 
00365         const int frameCnt = accessStrategy.NrOfFrames();
00366         mLastFrame = frameCnt - 1;  // may yet change when using native index??
00367         for (int f = 0; f < frameCnt; f++)
00368             if (!accessStrategy.FrameIsValid(f))
00369                 MarkBadFrame(f);
00370         SetLeadingBadFrames(accessStrategy.LeadingBadFrames());
00371         return true;
00372     }

Here is the call graph for this function:


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