27 #include <com/avpkit/ferry/Logger.h>
28 #include <com/avpkit/core/IndexEntry.h>
33 VS_LOG_SETUP(VS_CPP_PACKAGE);
35 namespace com {
namespace avpkit {
namespace core
38 IndexEntry :: IndexEntry()
42 IndexEntry :: ~IndexEntry()
56 return mEntry.timestamp;
74 return mEntry.min_distance;
80 return mEntry.flags & AVINDEX_KEYFRAME;
84 IndexEntry::make(int64_t position, int64_t timeStamp,
85 int32_t flags, int32_t size, int32_t minDistance)
89 retval->mEntry.pos = position;
90 retval->mEntry.timestamp = timeStamp;
91 retval->mEntry.flags = flags;
92 retval->mEntry.size = size;
93 retval->mEntry.min_distance = minDistance;
virtual int32_t getMinDistance()
Minimum number of index entries between this index entry and the last keyframe in the index,...
virtual int64_t getTimeStamp()
The actual time stamp, in units of IStream#getTimeBase(), of the frame this entry points to.
virtual int64_t getPosition()
The position in bytes of the frame corresponding to this index entry in the IContainer.
virtual int32_t getSize()
The size of bytes of the frame this index entry points to.
virtual bool isKeyFrame()
Is this index entry pointing to a key frame.
virtual int32_t getFlags()
Flags set for this entry.
WARNING: Do not use logging in this class, and do not set any static file variables to values other t...