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

bool Impala::Core::Stream::RgbDataSrcLavc::ReadIndex ( bool  silent  )  [inline, private]

Definition at line 103 of file RgbDataSrcLavc.h.

References Impala::Core::Stream::RgbDataSrcInfo::BadFrames(), Impala::Core::Stream::RgbDataSrc::LeadingBadFrames(), Impala::Core::Stream::RgbDataSrc::mLastFrame, and Impala::Core::Stream::RgbDataSrcInfo::ReadInfo().

Referenced by Init().

00104     {
00105         const int currentFrameCount = mLastFrame + 1;
00106         const int currentBadFramesCount = BadFrames();
00107         const int currentLeadingBadCount = LeadingBadFrames();
00108         const bool wasRead = ReadInfo(silent);
00109 
00110         //if (wasRead)
00111         //{
00112         //    // do some sanity checks:
00113         //    if (mLastFrame != currentFrameCount - 1)
00114         //    {
00115         //        ILOG_ERROR("Number of frames according to info file (" << 
00116         //            (mLastFrame + 1) << ") does not match previously " <<
00117         //            " established value (" << currentFrameCount << ")");
00118         //        return false;
00119         //    }
00120         //    if (BadFrames() != currentBadFramesCount)
00121         //    {
00122         //        ILOG_ERROR("Number of bad frames according to " <<
00123         //            "info file (" << LeadingBadFrames() << ") does not match " <<
00124         //            "previously established value (" << 
00125         //            currentBadFramesCount << ")")
00126         //        return false;
00127         //    }
00128         //    if (LeadingBadFrames() != currentLeadingBadCount)
00129         //    {
00130         //        ILOG_ERROR("Number of leading bad frames according to " <<
00131         //            "info file (" << LeadingBadFrames() << ") does not match " <<
00132         //            "previously established value (" << 
00133         //            currentLeadingBadCount << ")")
00134         //        return false;
00135         //    }
00136         //}
00137         return wasRead;
00138     }

Here is the call graph for this function:


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