aboutsummaryrefslogtreecommitdiff
path: root/lib/dvb
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2005-05-06 14:27:49 +0000
committerFelix Domke <tmbinc@elitedvb.net>2005-05-06 14:27:49 +0000
commitc617034514475f360e3415502f2d96f8623ecb07 (patch)
tree8cc003f50aada42f57787233399ffd68857b5cc3 /lib/dvb
parent4220c7211df32b7c5baff6f48b375b79dcf9c328 (diff)
downloadenigma2-c617034514475f360e3415502f2d96f8623ecb07.tar.gz
enigma2-c617034514475f360e3415502f2d96f8623ecb07.zip
- add missing file
Diffstat (limited to 'lib/dvb')
-rw-r--r--lib/dvb/idemux.h83
1 files changed, 83 insertions, 0 deletions
diff --git a/lib/dvb/idemux.h b/lib/dvb/idemux.h
new file mode 100644
index 00000000..9267d005
--- /dev/null
+++ b/lib/dvb/idemux.h
@@ -0,0 +1,83 @@
+#ifndef __dvb_idemux_h
+#define __dvb_idemux_h
+
+#include <lib/dvb/idvb.h>
+
+#ifndef DMX_FILTER_SIZE
+#define DMX_FILTER_SIZE 16
+#endif
+
+struct eDVBSectionFilterMask
+{
+ int pid;
+ /* mode is 0 for positive, 1 for negative filtering */
+ __u8 data[DMX_FILTER_SIZE], mask[DMX_FILTER_SIZE], mode[DMX_FILTER_SIZE];
+ enum {
+ rfCRC=1,
+ rfNoAbort=2
+ };
+ int flags;
+};
+
+struct eDVBTableSpec
+{
+ int pid, tid, tidext;
+ int version;
+ int timeout; /* timeout in ms */
+ enum
+ {
+ tfInOrder=1,
+ /*
+ tfAnyVersion filter ANY version
+ 0 filter all EXCEPT given version (negative filtering)
+ tfThisVersion filter only THIS version
+ */
+ tfAnyVersion=2,
+ tfThisVersion=4,
+ tfHaveTID=8,
+ tfHaveTIDExt=16,
+ tfCheckCRC=32,
+ tfHaveTimeout=64,
+ };
+ int flags;
+};
+
+class iDVBSectionReader: public iObject
+{
+public:
+ virtual RESULT start(const eDVBSectionFilterMask &mask)=0;
+ virtual RESULT stop()=0;
+ virtual RESULT connectRead(const Slot1<void,const __u8*> &read, ePtr<eConnection> &conn)=0;
+ virtual ~iDVBSectionReader() { };
+};
+
+ /* records a given set of pids into a file descriptor. */
+ /* the FD must not be modified between start() and stop() ! */
+class iDVBTSRecorder: public iObject
+{
+public:
+ virtual RESULT start() = 0;
+ virtual RESULT addPID(int pid) = 0;
+ virtual RESULT removePID(int pid) = 0;
+
+ /* include timestamps? ... */
+ virtual RESULT setFormat(int pid) = 0;
+
+ virtual RESULT setTargetFD(int fd) = 0;
+ virtual RESULT setBoundary(off_t max) = 0;
+
+ virtual RESULT stop() = 0;
+
+ enum {
+ eventWriteError,
+ /* a write error has occured. data won't get lost if fd is writable after return. */
+ /* you MUST respond with either stop() or fixing the problems, else you get the error */
+ /* again. */
+ eventReachedBoundary,
+ /* the programmed boundary was reached. you might set a new target fd. you can close the */
+ /* old one. */
+ };
+ virtual RESULT connectEvent(const Slot1<void,int> &event, ePtr<eConnection> &conn)=0;
+};
+
+#endif