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

VideoIndex* Impala::Core::Stream::Lavc::VideoAccessStrategy::ConstructIndex (  )  [inline]

Caller assumes responsibility for the returned object.

Definition at line 163 of file VideoAccessStrategy.h.

References ConstructIndexPrivate(), ILOG_ERROR, ILOG_INFO, Impala::Core::Stream::Lavc::VideoIndex::MaxNonTargetFrameReads(), mScanDataPresent, Impala::Core::Stream::Lavc::VideoIndex::NrOfEntries(), NrOfFrames(), Impala::Core::Stream::Lavc::VideoIndex::NrOfSeekableFrames(), and ResetVideoSrc().

Referenced by Impala::Core::Stream::RgbDataSrcLavc::PopulateIndex().

00164     {
00165         if (!mScanDataPresent)
00166         {
00167             ILOG_ERROR("[ConstructIndex] No scan data");
00168             return 0;
00169         }
00170 
00171         ResetVideoSrc();
00172         VideoIndex* videoIndex = ConstructIndexPrivate();
00173         if (videoIndex == 0)
00174             return 0;
00175 
00176         const double percIndexedFrames = 100.0 *
00177             videoIndex->NrOfEntries() / NrOfFrames();
00178         const double percentageSeekable = 100.0 * 
00179             videoIndex->NrOfSeekableFrames() / videoIndex->NrOfEntries();
00180         const int maxNonTargetFrameReads = videoIndex->MaxNonTargetFrameReads();
00181 
00182         ILOG_INFO("Number of entries in index: " << 
00183             videoIndex->NrOfEntries() << " (" << percIndexedFrames <<
00184             " %)");
00185         ILOG_INFO("Number of seekable entries in index: " << 
00186             videoIndex->NrOfSeekableFrames() << " (" << percentageSeekable <<
00187             " %)");
00188         ILOG_INFO("Max. frame reads required to get to any frame: " << 
00189             maxNonTargetFrameReads + 1);
00190 
00191         return videoIndex;
00192     }

Here is the call graph for this function:


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