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

bool Impala::Core::Stream::RgbDataSrcLavc::CheckMD5Hash ( int  frameNr  )  const [inline, private]

Definition at line 500 of file RgbDataSrcLavc.h.

References CalcHash(), Impala::Core::Stream::RgbDataSrcInfo::FrameHash(), FrameIsStable(), ILOG_ERROR, Impala::Core::Stream::RgbDataSrc::mIndexExists, and Impala::Core::Stream::RgbDataSrc::mIsFrameAccurate.

Referenced by ReadFrameData().

00501     {
00502         if (!mIndexExists)
00503             return true;
00504 
00505         if (!FrameIsStable(frameNr))
00506             return true;
00507 
00508         const String refHash = FrameHash(frameNr);
00509         const String hash = CalcHash();
00510         mIsFrameAccurate = (hash == refHash);
00511         if (mIsFrameAccurate)
00512         {
00513             //ILOG_DEBUG("Hash match for frame " << frameNr << ": " << refHash);
00514             return true;
00515         }
00516 
00517         ILOG_ERROR("No hash match for frame " << frameNr << "; expected " <<
00518             refHash << " but found " << hash);
00519         return false;
00520     }

Here is the call graph for this function:


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