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

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

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

00456     {
00457         if (mPackets != 0 && mPackets->Size() > 0)
00458         {
00459             const int packetNr = mFrames->Get2(frameNr);
00460             const int packetSize = mPackets->Get2(packetNr);
00461             if (mVao->CurrentPacketSize() != packetSize)
00462                 return false;
00463         }
00464 
00465         if (!CurrentHashMatchesFrame(frameNr))
00466             return false;
00467 
00468         if (trace && !PacketTraceMatchesFrame(*trace, frameNr))
00469         {
00470             ILOG_DEBUG("Packet trace does not match for frame " << frameNr);
00471             return false;
00472         }
00473 
00474         return true;
00475     }

Here is the call graph for this function:


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