Home || Architecture || Video Search || Visual Search || Scripts || Applications || 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 354 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().

00356     {
00357         if (flush & 1) // flush before seek
00358             mVao->FlushCodecContext();
00359 
00360         if (!mVao->Seek(target, flags))
00361             return false;
00362 
00363         if (flush & 2) // flush after seek
00364             mVao->FlushCodecContext();
00365 
00366         return DecodeNextValidFrame(mustBeKey, trace);
00367     }

Here is the call graph for this function:


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