git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ci fixes (TODO: build reel ci resource handling.. at moment the first service get...
[enigma2.git]
/
lib
/
dvb
/
tstools.h
diff --git
a/lib/dvb/tstools.h
b/lib/dvb/tstools.h
index 4ec4b66aa9902dfbac9e09d9e759e858f5349e0c..509946de6edcdfb2ffc942dda5a790bd3a2328c9 100644
(file)
--- a/
lib/dvb/tstools.h
+++ b/
lib/dvb/tstools.h
@@
-9,7
+9,7
@@
* thus we're not evaluating PES headers, not adaption fields.
*/
* thus we're not evaluating PES headers, not adaption fields.
*/
-typedef
unsigned
long long pts_t;
+typedef long long pts_t;
class eDVBTSTools
{
class eDVBTSTools
{
@@
-26,11
+26,15
@@
public:
/* get first PTS *after* the given offset. */
int getPTS(off_t &offset, pts_t &pts);
/* 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);
void calcBegin();
void calcEnd();
int calcLen(pts_t &len);
+ int calcBitrate(); /* in bits/sec */
+
private:
int m_fd, m_pid;
int m_maxrange;
private:
int m_fd, m_pid;
int m_maxrange;