|
SASC
DVBSoftCAM
|
#include <cam.h>
Inheritance diagram for cPrg:Public Member Functions | |
| cPrg (void) | |
| cPrg (int Sid, bool IsUpdate) | |
| bool | IsUpdate (void) const |
| bool | HasPidCaDescr (void) const |
| void | SetPidCaDescr (bool val) |
| bool | SimplifyCaDescr (void) |
| void | DumpCaDescr (int c) |
| cPrg (void) | |
| cPrg (int Sid, bool IsUpdate) | |
| bool | IsUpdate (void) const |
| bool | HasPidCaDescr (void) const |
| void | SetPidCaDescr (bool val) |
| bool | SimplifyCaDescr (void) |
| void | DumpCaDescr (int c) |
Public Attributes | |
| int | sid |
| int | source |
| int | transponder |
| cSimpleList< cPrgPid > | pids |
| cCaDescr | caDescr |
| cPrg::cPrg | ( | int | Sid, |
| bool | IsUpdate | ||
| ) |
| cPrg::cPrg | ( | void | ) |
| cPrg::cPrg | ( | int | Sid, |
| bool | IsUpdate | ||
| ) |
| void cPrg::DumpCaDescr | ( | int | c | ) |
Definition at line 826 of file cam.c.
References caDescr, cSimpleList< T >::First(), cSimpleList< T >::Next(), pid::pid, pids, PRINTF, and cCaDescr::ToString().
Referenced by SimplifyCaDescr().
| void cPrg::DumpCaDescr | ( | int | c | ) |
| bool cPrg::HasPidCaDescr | ( | void | ) | const [inline] |
Definition at line 128 of file cam.h.
Referenced by cEcmHandler::SetPrg(), and SimplifyCaDescr().
{ return pidCaDescr; }
| bool cPrg::HasPidCaDescr | ( | void | ) | const [inline] |
| bool cPrg::IsUpdate | ( | void | ) | const [inline] |
Definition at line 127 of file cam.h.
Referenced by cCam::AddPrg(), and cPrg().
{ return isUpdate; }
| bool cPrg::IsUpdate | ( | void | ) | const [inline] |
| void cPrg::SetPidCaDescr | ( | bool | val | ) | [inline] |
| void cPrg::SetPidCaDescr | ( | bool | val | ) | [inline] |
Definition at line 129 of file cam.h.
Referenced by cScCamSlot::Process(), and SimplifyCaDescr().
{ pidCaDescr=val; }
| bool cPrg::SimplifyCaDescr | ( | void | ) |
Definition at line 833 of file cam.c.
References caDescr, cPrgPid::caDescr, cCaDescr::Clear(), cSimpleListBase::Count(), DumpCaDescr(), cSimpleList< T >::First(), HasPidCaDescr(), cCaDescr::Join(), L_CORE_PIDS, cSimpleList< T >::Next(), pids, PRINTF, and SetPidCaDescr().
Referenced by cCam::AddPrg().
{
if(HasPidCaDescr()) {
bool equal=true;
if(pids.Count()>1) {
cPrgPid *pid0=pids.First();
for(cPrgPid *pid1=pids.Next(pid0); pid1; pid1=pids.Next(pid1))
if(!(pid0->caDescr==pid1->caDescr)) { equal=false; break; }
}
if(equal) {
cPrgPid *pid=pids.First();
caDescr.Join(&pid->caDescr);
for(; pid; pid=pids.Next(pid)) pid->caDescr.Clear();
SetPidCaDescr(false);
}
}
if(HasPidCaDescr()) {
for(cPrgPid *pid=pids.First(); pid; pid=pids.Next(pid))
pid->caDescr.Join(&caDescr,true);
caDescr.Clear();
}
PRINTF(L_CORE_PIDS,"Ca descriptors after simplify (pidCa=%d)",HasPidCaDescr());
DumpCaDescr(L_CORE_PIDS);
return HasPidCaDescr();
}
| bool cPrg::SimplifyCaDescr | ( | void | ) |
Definition at line 123 of file cam.h.
Referenced by sascCam::AddPrg(), cCam::AddPrg(), DumpCaDescr(), cScCamSlot::Process(), cEcmHandler::Process(), cEcmHandler::SetPrg(), and SimplifyCaDescr().
Definition at line 122 of file cam.h.
Referenced by sascCam::AddPrg(), cCam::AddPrg(), DumpCaDescr(), cEcmHandler::IsIdle(), cScCamSlot::Process(), cEcmHandler::SetPrg(), cEcmHandler::ShiftCwIndex(), SimplifyCaDescr(), and cEcmHandler::Stop().
| int cPrg::sid |
Definition at line 121 of file cam.h.
Referenced by cCam::AddPrg(), cScCamSlot::Process(), cEcmHandler::Process(), cEcmHandler::SetPrg(), cEcmHandler::Sid(), and cEcmHandler::Stop().
| int cPrg::source |
Definition at line 121 of file cam.h.
Referenced by cCam::AddPrg(), cEcmHandler::Process(), and cEcmHandler::SetPrg().
Definition at line 121 of file cam.h.
Referenced by cCam::AddPrg(), cEcmHandler::Process(), and cEcmHandler::SetPrg().