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

UInt64 Impala::Core::Stream::Lavc::VideoAccessObject::CurrentFilePosition (  )  const [inline]

Definition at line 397 of file VideoAccessObject.h.

References ILOG_ERROR, and mFormatCtx.

Referenced by Impala::Core::Stream::Lavc::VideoAccessStrategy::DecodeNextFrame(), and Impala::Core::Stream::Lavc::StrategyIgnoringNativeIndex::ProcessPacket().

00398     {
00399         const ByteIOContext* const b = 
00400 #ifdef FFMPEG_52
00401             mFormatCtx->pb;
00402 #else
00403             &(mFormatCtx->pb);
00404 #endif
00405         Int64 pos = b->pos - (b->buf_end - b->buf_ptr);
00406         if (pos < 0)
00407         {
00408             ILOG_ERROR("Negative file position " << pos << 
00409                 " unexpected (should fit in UInt64)");
00410             return 0;
00411         }
00412         return pos;
00413     }


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