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

bool Impala::Core::Stream::Lavc::VideoAccessStrategy::CurrentHashMatchesFrame ( int  frameNr  )  const [inline, protected]

Definition at line 495 of file VideoAccessStrategy.h.

References Impala::Core::Stream::Lavc::VideoAccessObject::CurrentHash(), Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::GetColumn5(), HASH_SIZE, ILOG_DEBUG, mFrames, and mVao.

Referenced by CurrentFrameMatchesFrame(), Impala::Core::Stream::Lavc::StrategyIgnoringNativeIndex::NextFrameMatchesFrame(), and ProcessFrame().

00496     {
00497         bool matched = false;
00498         const String currentHash = mVao->CurrentHash();
00499         if (currentHash.size() == HASH_SIZE)
00500         {
00501             const char* currentHashStr = currentHash.c_str();
00502             const char* frameHash = 
00503                 mFrames->GetColumn5()->GetVectorData(frameNr);
00504             matched = true;
00505             for (int i = 0; i < HASH_SIZE; i++)
00506                 if (frameHash[i] != currentHashStr[i])
00507                 {
00508                     matched = false;
00509                     break;
00510                 }
00511         }
00512 
00513         if (!matched)
00514             ILOG_DEBUG("Hash does not match for frame " << 
00515                 frameNr << "; found: " << mVao->CurrentHash());
00516         return matched;
00517     }

Here is the call graph for this function:


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