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:
|