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

bool Impala::Core::Stream::Lavc::StrategyIgnoringNativeIndex::FindSeekPosition ( int  frameNr,
UInt64 seekPos,
int *  refPacket 
) const [inline, private]

Definition at line 318 of file StrategyIgnoringNativeIndex.h.

References FindCandidateSeekPosition(), ILOG_DEBUG, and IsValidSeekTarget().

Referenced by ConstructIndexProtected().

00319     {
00320         // find: the first next file position suitable for seeking the frame
00321         bool foundCandSeekPos = FindCandidateSeekPosition(seekPos, refPacket);
00322         if (!foundCandSeekPos || !IsValidSeekTarget(frameNr, *seekPos))
00323         {
00324             ILOG_DEBUG("No valid seek position found for frame " << frameNr);
00325             return false;
00326         }
00327 
00328         // optimize: check whether the next candidate position is also valid
00329         UInt64 nextSeekTarget;
00330         int tempRefPacket = *refPacket;
00331         while (true)
00332         {
00333             foundCandSeekPos = 
00334                 FindCandidateSeekPosition(&nextSeekTarget, &tempRefPacket);
00335             if (!foundCandSeekPos || !IsValidSeekTarget(frameNr, nextSeekTarget))
00336                 break;
00337             *seekPos = nextSeekTarget;
00338             *refPacket = tempRefPacket;
00339         }
00340         return true;
00341     }

Here is the call graph for this function:


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