Add first time getter.

This commit is contained in:
Bartosz Taudul 2023-03-03 21:37:10 +01:00
parent b89bfd44f1
commit c91b052c80
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3
2 changed files with 8 additions and 0 deletions

View File

@ -2173,6 +2173,13 @@ bool Worker::AreFramesUsed() const
return m_data.framesBase->frames.size() > 2;
}
int64_t Worker::GetFirstTime() const
{
if( m_data.frameOffset == 0 ) return 0;
assert( m_data.framesBase->frames.size() >= 2 );
return m_data.framesBase->frames[2].start;
}
int64_t Worker::GetFrameTime( const FrameData& fd, size_t idx ) const
{
if( fd.continuous )

View File

@ -461,6 +461,7 @@ public:
size_t GetFrameCount( const FrameData& fd ) const { return fd.frames.size(); }
size_t GetFullFrameCount( const FrameData& fd ) const;
bool AreFramesUsed() const;
int64_t GetFirstTime() const;
int64_t GetLastTime() const { return m_data.lastTime; }
uint64_t GetZoneCount() const { return m_data.zonesCnt; }
uint64_t GetZoneExtraCount() const { return m_data.zoneExtra.size() - 1; }