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

virtual bool Impala::Core::Stream::Lavc::VideoAccessStrategy::Jump ( const UInt64 target,
int  flags,
bool  mustBeKey = false,
int  flush = 0,
PacketTrace trace = 0 
) const [inline, protected, virtual]

Jumps to the specified target and attempts reading the first next (valid) frame; if requested, reading frames will continue until the first next (valid) *key* frame; 'target' is defined by 'flags', which consists of libavformat flags AVSEEK_FLAG_BACKWARD, AVSEEK_FLAG_BYTE and AVSEEK_FLAG_ANY ( see ffmpeg/avformat.h ).

Definition at line 369 of file VideoAccessStrategy.h.

References DecodeNextValidFrame(), Impala::Core::Stream::Lavc::VideoAccessObject::FlushCodecContext(), mVao, and Impala::Core::Stream::Lavc::VideoAccessObject::Seek().

Referenced by Impala::Core::Stream::Lavc::StrategyIgnoringNativeIndex::IsValidSeekTarget(), JumpToFramePosition(), and JumpValidForFrame().

00371     {
00372         if (flush & 1) // flush before seek
00373             mVao->FlushCodecContext();
00374 
00375         if (!mVao->Seek(target, flags))
00376             return false;
00377 
00378         if (flush & 2) // flush after seek
00379             mVao->FlushCodecContext();
00380 
00381         return DecodeNextValidFrame(mustBeKey, trace);
00382     }

Here is the call graph for this function:


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