List of all members.
Public Member Functions |
| | SCDEVICE (cScDevicePlugin *DevPlugin, int Adapter, int Frontend, int cafd) |
| | SASC.
|
| | ~SCDEVICE () |
| bool | SetCaDescr (ca_descr_t *ca_descr, bool initial) |
| bool | SetCaPid (ca_pid_t *ca_pid) |
| void | DumpAV (void) |
| | OWN_SETCA.
|
| virtual bool | HasCi (void) |
| void | LateInit (void) |
| | OWN_FULLTS.
|
| void | EarlyShutdown (void) |
| bool | CheckFullTs (void) |
| | SCDEVICE (cScDevicePlugin *DevPlugin, int Adapter, int Frontend, int cafd) |
| | SASC.
|
| | ~SCDEVICE () |
| bool | SetCaDescr (ca_descr_t *ca_descr, bool initial) |
| bool | SetCaPid (ca_pid_t *ca_pid) |
| void | DumpAV (void) |
| virtual bool | HasCi (void) |
| void | LateInit (void) |
| void | EarlyShutdown (void) |
| bool | CheckFullTs (void) |
Protected Member Functions |
| virtual bool | Ready (void) |
| | SASC.
|
| virtual bool | SetPid (cPidHandle *Handle, int Type, bool On) |
| virtual bool | SetChannelDevice (const cChannel *Channel, bool LiveView) |
| virtual bool | OpenDvr (void) |
| virtual void | CloseDvr (void) |
| virtual bool | GetTSPacket (uchar *&Data) |
| virtual bool | Ready (void) |
| | SASC.
|
| virtual bool | SetPid (cPidHandle *Handle, int Type, bool On) |
| virtual bool | SetChannelDevice (const cChannel *Channel, bool LiveView) |
| virtual bool | OpenDvr (void) |
| virtual void | CloseDvr (void) |
| virtual bool | GetTSPacket (uchar *&Data) |
Detailed Description
Definition at line 22 of file device-tmpl.c.
Constructor & Destructor Documentation
| SCDEVICE::SCDEVICE |
( |
cScDevicePlugin * |
DevPlugin, |
|
|
int |
Adapter, |
|
|
int |
Frontend, |
|
|
int |
cafd |
|
) |
| |
SASC.
Definition at line 67 of file device-tmpl.c.
:DVBDEVICE(Adapter,Frontend,OWN_DEVPARAMS)
#else
:DVBDEVICE(Adapter,Frontend)
#endif //OWN_DEVPARAMS
#else
:DVBDEVICE(Adapter)
#endif //APIVERSNUM >= 10711
{
#ifndef SASC
tsBuffer=0; hwciadapter=0;
#endif
cam=0; devplugin=DevPlugin; softcsa=fullts=false;
fd_ca=cafd; fd_ca2=dup(fd_ca); fd_dvr=-1;
#if APIVERSNUM >= 10711
snprintf(devId,sizeof(devId),"%d/%d",Adapter,Frontend);
#else
snprintf(devId,sizeof(devId),"%d",Adapter);
#endif
#ifdef SASC
cam=new cCam(this,Adapter,0,devId,devplugin,softcsa,fullts);
#endif // !SASC
}
Definition at line 93 of file device-tmpl.c.
References EarlyShutdown().
{
#ifndef SASC
DetachAllReceivers();
Cancel(3);
EarlyShutdown();
#endif
if(fd_ca>=0) close(fd_ca);
if(fd_ca2>=0) close(fd_ca2);
#ifdef SASC
delete cam;
#endif
}
| SCDEVICE::SCDEVICE |
( |
cScDevicePlugin * |
DevPlugin, |
|
|
int |
Adapter, |
|
|
int |
Frontend, |
|
|
int |
cafd |
|
) |
| |
Member Function Documentation
| bool SCDEVICE::CheckFullTs |
( |
void |
| ) |
|
| bool SCDEVICE::CheckFullTs |
( |
void |
| ) |
|
| virtual void SCDEVICE::CloseDvr |
( |
void |
| ) |
[protected, virtual] |
| void SCDEVICE::CloseDvr |
( |
void |
| ) |
[protected, virtual] |
| void SCDEVICE::DumpAV |
( |
void |
| ) |
|
| void SCDEVICE::DumpAV |
( |
void |
| ) |
|
| void SCDEVICE::EarlyShutdown |
( |
void |
| ) |
|
| void SCDEVICE::EarlyShutdown |
( |
void |
| ) |
|
Definition at line 126 of file device-tmpl.c.
Referenced by ~SCDEVICE().
{
SetCamSlot(0);
delete cam; cam=0;
delete hwciadapter; hwciadapter=0;
}
| virtual bool SCDEVICE::GetTSPacket |
( |
uchar *& |
Data | ) |
[protected, virtual] |
| bool SCDEVICE::GetTSPacket |
( |
uchar *& |
Data | ) |
[protected, virtual] |
| virtual bool SCDEVICE::HasCi |
( |
void |
| ) |
[virtual] |
| bool SCDEVICE::HasCi |
( |
void |
| ) |
[virtual] |
| void SCDEVICE::LateInit |
( |
void |
| ) |
|
OWN_FULLTS.
Definition at line 140 of file device-tmpl.c.
References CheckFullTs(), DVB_DEV_SPEC, cScDevices::ForceBudget(), L_GEN_ERROR, L_GEN_INFO, and PRINTF.
{
int n=CardIndex();
if(DeviceNumber()!=n)
PRINTF(L_GEN_ERROR,"CardIndex - DeviceNumber mismatch! Put SC plugin first on VDR commandline!");
softcsa=(fd_ca<0);
if(softcsa) {
if(HasDecoder()) PRINTF(L_GEN_ERROR,"Card %s is a full-featured card but no ca device found!",devId);
}
else if(cScDevices::ForceBudget(n)) {
PRINTF(L_GEN_INFO,"Budget mode forced on card %s",devId);
softcsa=true;
}
if(softcsa) {
fullts=CheckFullTs();
if(fullts) PRINTF(L_GEN_INFO,"Enabling hybrid full-ts mode on card %s",devId);
else PRINTF(L_GEN_INFO,"Using software decryption on card %s",devId);
}
if(fd_ca2>=0) hwciadapter=cDvbCiAdapter::CreateCiAdapter(this,fd_ca2);
cam=new cCam(this,DVB_DEV_SPEC,devId,devplugin,softcsa,fullts);
}
| void SCDEVICE::LateInit |
( |
void |
| ) |
|
| virtual bool SCDEVICE::OpenDvr |
( |
void |
| ) |
[protected, virtual] |
| bool SCDEVICE::OpenDvr |
( |
void |
| ) |
[protected, virtual] |
| bool SCDEVICE::Ready |
( |
void |
| ) |
[protected, virtual] |
| virtual bool SCDEVICE::Ready |
( |
void |
| ) |
[protected, virtual] |
| bool SCDEVICE::SetCaDescr |
( |
ca_descr_t * |
ca_descr, |
|
|
bool |
initial |
|
) |
| |
| bool SCDEVICE::SetCaDescr |
( |
ca_descr_t * |
ca_descr, |
|
|
bool |
initial |
|
) |
| |
| bool SCDEVICE::SetCaPid |
( |
ca_pid_t * |
ca_pid | ) |
|
| bool SCDEVICE::SetCaPid |
( |
ca_pid_t * |
ca_pid | ) |
|
| virtual bool SCDEVICE::SetChannelDevice |
( |
const cChannel * |
Channel, |
|
|
bool |
LiveView |
|
) |
| [protected, virtual] |
| bool SCDEVICE::SetChannelDevice |
( |
const cChannel * |
Channel, |
|
|
bool |
LiveView |
|
) |
| [protected, virtual] |
| virtual bool SCDEVICE::SetPid |
( |
cPidHandle * |
Handle, |
|
|
int |
Type, |
|
|
bool |
On |
|
) |
| [protected, virtual] |
| bool SCDEVICE::SetPid |
( |
cPidHandle * |
Handle, |
|
|
int |
Type, |
|
|
bool |
On |
|
) |
| [protected, virtual] |
The documentation for this class was generated from the following files: