Definition at line 317 of file StrategyIgnoringNativeIndex.h. References FindCandidateSeekPosition(), ILOG_DEBUG, and IsValidSeekTarget(). Referenced by ConstructIndexProtected(). 00318 { 00319 // find: the first next file position suitable for seeking the frame 00320 bool foundCandSeekPos = FindCandidateSeekPosition(seekPos, refPacket); 00321 if (!foundCandSeekPos || !IsValidSeekTarget(frameNr, *seekPos)) 00322 { 00323 ILOG_DEBUG("No valid seek position found for frame " << frameNr); 00324 return false; 00325 } 00326 00327 // optimize: check whether the next candidate position is also valid 00328 UInt64 nextSeekTarget; 00329 int tempRefPacket = *refPacket; 00330 while (true) 00331 { 00332 foundCandSeekPos = 00333 FindCandidateSeekPosition(&nextSeekTarget, &tempRefPacket); 00334 if (!foundCandSeekPos || !IsValidSeekTarget(frameNr, nextSeekTarget)) 00335 break; 00336 *seekPos = nextSeekTarget; 00337 *refPacket = tempRefPacket; 00338 } 00339 return true; 00340 }
Here is the call graph for this function:
|