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

virtual int64_t Impala::Core::Stream::LavcProtocolImpl::Seek ( int64_t  offset,
int  whence 
) [inline, virtual]

Definition at line 27 of file LavcProtocolImpl.h.

References ILOG_DEBUG, mIOBuffer, Impala::Util::IOBuffer::Seek(), and Impala::Util::IOBuffer::Size().

00028     {
00029         ILOG_DEBUG("Seek: offset = " << offset << ", whence = " << whence);
00030 
00031         if (whence == 65536) // see AVSEEK_SIZE in libavformat/avio.h
00032         {
00033             int64_t fileLen = (int64_t) mIOBuffer->Size();
00034             ILOG_DEBUG("Seek: file length = " << fileLen);
00035             return fileLen;
00036         }
00037 
00038         int64_t newPos = (int64_t) mIOBuffer->Seek(offset, whence);
00039         ILOG_DEBUG("Seek: new position = " << newPos);
00040         return newPos;
00041     }

Here is the call graph for this function:


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