use samples for more accurate jumps when .ap files are not available
[vuplus_dvbapp] / lib / dvb / tstools.h
index b6a275d..1aa10c7 100644 (file)
@@ -51,6 +51,8 @@ public:
        
        int calcBitrate(); /* in bits/sec */
        
+       void takeSamples();
+       
 private:
        int m_pid;
        int m_maxrange;
@@ -61,6 +63,10 @@ private:
        pts_t m_pts_begin, m_pts_end;
        off_t m_offset_begin, m_offset_end;
        
+               /* for simple linear interpolation */
+       std::map<pts_t, off_t> m_samples;
+       int m_samples_taken;
+       
        eMPEGStreamInformation m_streaminfo;
        int m_use_streaminfo;
 };