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

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

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

00122     {
00123         const int currentFrameCount = mLastFrame + 1;
00124         const int currentBadFramesCount = BadFrames();
00125         const int currentLeadingBadCount = LeadingBadFrames();
00126         const bool wasRead = ReadInfo(silent);
00127 
00128         //if (wasRead)
00129         //{
00130         //    // do some sanity checks:
00131         //    if (mLastFrame != currentFrameCount - 1)
00132         //    {
00133         //        ILOG_ERROR("Number of frames according to info file (" << 
00134         //            (mLastFrame + 1) << ") does not match previously " <<
00135         //            " established value (" << currentFrameCount << ")");
00136         //        return false;
00137         //    }
00138         //    if (BadFrames() != currentBadFramesCount)
00139         //    {
00140         //        ILOG_ERROR("Number of bad frames according to " <<
00141         //            "info file (" << LeadingBadFrames() << ") does not match " <<
00142         //            "previously established value (" << 
00143         //            currentBadFramesCount << ")")
00144         //        return false;
00145         //    }
00146         //    if (LeadingBadFrames() != currentLeadingBadCount)
00147         //    {
00148         //        ILOG_ERROR("Number of leading bad frames according to " <<
00149         //            "info file (" << LeadingBadFrames() << ") does not match " <<
00150         //            "previously established value (" << 
00151         //            currentLeadingBadCount << ")")
00152         //        return false;
00153         //    }
00154         //}
00155         return wasRead;
00156     }

Here is the call graph for this function:


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