mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 07:51:11 +02:00
reworked CA menu code
* added support for internal cardreaders for future conax support
* added inactivity shutdown timer for EuP
WARNING: new libcoolstream and libOpenThreads needed.
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@925 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Branch: ni/coolstream
Commit: b8c1fa5cc1
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2010-12-07 (Tue, 07 Dec 2010)
Origin message was:
------------------
* reworked CA menu code
* added support for internal cardreaders for future conax support
* added inactivity shutdown timer for EuP
WARNING: new libcoolstream and libOpenThreads needed.
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@925 e54a6e83-5905-42d5-8d5c-058d10e6a962
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
/*******************************************************************************/
|
||||
/* */
|
||||
/* libcoolstream/cszapper/demux.h */
|
||||
/* ZAP interface for neutrino frontend */
|
||||
/* libcoolstream/dmx_cs.h */
|
||||
/* Public header for demux API */
|
||||
/* */
|
||||
/* (C) 2008 CoolStream International */
|
||||
/* */
|
||||
/*******************************************************************************/
|
||||
#ifndef __DEMUX_CS_H
|
||||
#define __DEMUX_CS_H
|
||||
#ifndef __DEMUX_CS_H_
|
||||
#define __DEMUX_CS_H_
|
||||
|
||||
#include <string>
|
||||
|
||||
#define DEMUX_POLL_TIMEOUT 0 // timeout in ms
|
||||
#define MAX_FILTER_LENGTH 16 // maximum number of filters
|
||||
#define MAX_FILTER_LENGTH 12 // maximum number of filters
|
||||
#ifndef DMX_FILTER_SIZE
|
||||
#define DMX_FILTER_SIZE MAX_FILTER_LENGTH
|
||||
#endif
|
||||
@@ -38,7 +38,6 @@ class cDemux {
|
||||
private:
|
||||
int timeout;
|
||||
unsigned short pid;
|
||||
unsigned char tid[MAX_FILTER_LENGTH], mask[MAX_FILTER_LENGTH];
|
||||
bool nb; // non block
|
||||
pthread_cond_t read_cond;
|
||||
pthread_mutex_t mutex;
|
||||
@@ -48,7 +47,7 @@ private:
|
||||
int unit;
|
||||
|
||||
DMX_CHANNEL_TYPE type;
|
||||
CS_DMX_PDATA * privateData;
|
||||
CS_DMX_PDATA *privateData;
|
||||
public:
|
||||
cDemux(int num = 0);
|
||||
~cDemux();
|
||||
@@ -60,8 +59,10 @@ public:
|
||||
int Read(unsigned char *buff, int len, int Timeout = 0);
|
||||
void SignalRead(int len);
|
||||
unsigned short GetPID(void) { return pid; }
|
||||
const unsigned char *GetFilterTID(void) { return tid; }
|
||||
const unsigned char *GetFilterMask(void) { return mask; }
|
||||
const unsigned char *GetFilterTID(u8 FilterIndex = 0);
|
||||
const unsigned char *GetFilterMask(u8 FilterIndex = 0);
|
||||
const unsigned int GetFilterLength(u8 FilterIndex = 0);
|
||||
bool AddSectionFilter(unsigned short Pid, const unsigned char * const Filter, const unsigned char * const Mask, int len, const unsigned char * const nMask = NULL);
|
||||
bool sectionFilter(unsigned short Pid, const unsigned char * const Tid, const unsigned char * const Mask, int len, int Timeout = DEMUX_POLL_TIMEOUT, const unsigned char * const nMask = NULL);
|
||||
bool pesFilter(const unsigned short Pid);
|
||||
void SetSyncMode(AVSYNC_TYPE SyncMode);
|
||||
@@ -70,6 +71,7 @@ public:
|
||||
DMX_CHANNEL_TYPE getChannelType(void);
|
||||
void addPid(unsigned short Pid);
|
||||
void getSTC(int64_t *STC);
|
||||
int getUnit(void);
|
||||
//
|
||||
};
|
||||
#endif //__DEMUX_H
|
||||
#endif //__DMX_CS_H_
|
||||
|
Reference in New Issue
Block a user