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

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

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

00479     {
00480         bool matched = false;
00481         const String currentHash = mVao->CurrentHash();
00482         if (currentHash.size() == HASH_SIZE)
00483         {
00484             const char* currentHashStr = currentHash.c_str();
00485             const char* frameHash = 
00486                 mFrames->GetColumn5()->GetVectorData(frameNr);
00487             matched = true;
00488             for (int i = 0; i < HASH_SIZE; i++)
00489                 if (frameHash[i] != currentHashStr[i])
00490                 {
00491                     matched = false;
00492                     break;
00493                 }
00494         }
00495 
00496         if (!matched)
00497             ILOG_DEBUG("Hash does not match for frame " << 
00498                 frameNr << "; found: " << mVao->CurrentHash());
00499         return matched;
00500     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:18:53 2010 for ImpalaSrc by  doxygen 1.5.1