#ifndef __lib_dvb_tstools_h
#define __lib_dvb_tstools_h
+#include <config.h>
#include <sys/types.h>
/*
* thus we're not evaluating PES headers, not adaption fields.
*/
+typedef long long pts_t;
+
class eDVBTSTools
{
public:
- typedef unsigned long long pts_t;
eDVBTSTools();
~eDVBTSTools();
/* get first PTS *after* the given offset. */
int getPTS(off_t &offset, pts_t &pts);
+ int getPosition(off_t &offset, pts_t &pts);
+
void calcBegin();
void calcEnd();
int calcLen(pts_t &len);
+ int calcBitrate(); /* in bits/sec */
+
private:
int m_fd, m_pid;
int m_maxrange;
off_t m_offset_begin, m_offset_end;
};
-
#endif