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

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

Caller assumes responsibility for the returned object.

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

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

Here is the call graph for this function:


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