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

bool Impala::Core::Stream::Lavc::VideoAccessStrategy::CurrentFrameMatchesFrame ( int  frameNr,
const PacketTrace trace = 0 
) const [inline, protected]

Definition at line 472 of file VideoAccessStrategy.h.

References CurrentHashMatchesFrame(), Impala::Core::Stream::Lavc::VideoAccessObject::CurrentPacketSize(), Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::Get2(), ILOG_DEBUG, mFrames, mPackets, mVao, PacketTraceMatchesFrame(), and Impala::Core::Table::Table::Size().

Referenced by Impala::Core::Stream::Lavc::StrategyUsingNativeIndex::ConstructIndexProtected(), Impala::Core::Stream::Lavc::StrategyIgnoringNativeIndex::IsValidSeekTarget(), JumpValidForFrame(), and Impala::Core::Stream::Lavc::StrategyIgnoringNativeIndex::ScanProtected().

00473     {
00474         if (mPackets != 0 && mPackets->Size() > 0)
00475         {
00476             const int packetNr = mFrames->Get2(frameNr);
00477             const int packetSize = mPackets->Get2(packetNr);
00478             if (mVao->CurrentPacketSize() != packetSize)
00479                 return false;
00480         }
00481 
00482         if (!CurrentHashMatchesFrame(frameNr))
00483             return false;
00484 
00485         if (trace && !PacketTraceMatchesFrame(*trace, frameNr))
00486         {
00487             ILOG_DEBUG("Packet trace does not match for frame " << frameNr);
00488             return false;
00489         }
00490 
00491         return true;
00492     }

Here is the call graph for this function:


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