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

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

Definition at line 375 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().

00376     {
00377         if (!accessStrategy.Scan())
00378         {
00379             ILOG_ERROR("Failed while scanning: " << mSrcName);
00380             return false;
00381         }
00382 
00383         const int frameCnt = accessStrategy.NrOfFrames();
00384         mLastFrame = frameCnt - 1;  // may yet change when using native index??
00385         for (int f = 0; f < frameCnt; f++)
00386             if (!accessStrategy.FrameIsValid(f))
00387                 MarkBadFrame(f);
00388         SetLeadingBadFrames(accessStrategy.LeadingBadFrames());
00389         return true;
00390     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:20:33 2011 for ImpalaSrc by  doxygen 1.5.1