vdr 2.7.7
|
#include <mtd.h>
Public Member Functions | |
cMtdHandler (void) | |
~cMtdHandler () | |
cMtdCamSlot * | GetMtdCamSlot (cCamSlot *MasterSlot) |
int | Put (const uchar *Data, int Count) |
int | Priority (void) |
bool | IsDecrypting (void) |
void | StartDecrypting (void) |
void | StopDecrypting (void) |
void | CancelActivation (void) |
bool | IsActivating (void) |
bool | Devices (cVector< int > &DeviceNumbers) |
void | UnAssignAll (void) |
Private Attributes | |
cVector< cMtdCamSlot * > | camSlots |
cMtdHandler::cMtdHandler | ( | void | ) |
Creates a new MTD handler that distributes TS data received through calls to the Put() function to the individual CAM slots that have been created via GetMtdCamSlot().
It also distributes several function calls from the physical master CAM slot to the individual MTD CAM slots.
cMtdHandler::~cMtdHandler | ( | ) |
void cMtdHandler::CancelActivation | ( | void | ) |
Tells all active MTD CAM slots to cancel activation.
Definition at line 123 of file mtd.c.
References camSlots, and CancelActivation().
Referenced by CancelActivation().
bool cMtdHandler::Devices | ( | cVector< int > & | DeviceNumbers | ) |
cMtdCamSlot * cMtdHandler::GetMtdCamSlot | ( | cCamSlot * | MasterSlot | ) |
Creates a new MTD CAM slot, or reuses an existing one that is currently unused.
Definition at line 46 of file mtd.c.
References camSlots, dsyslog, and cCamSlot::SlotNumber().
bool cMtdHandler::IsActivating | ( | void | ) |
Returns true if any of the active MTD CAM slots is currently activating.
Definition at line 129 of file mtd.c.
References camSlots, and IsActivating().
Referenced by IsActivating().
bool cMtdHandler::IsDecrypting | ( | void | ) |
Returns true if any of the active MTD CAM slots is currently decrypting.
Definition at line 96 of file mtd.c.
References camSlots, and IsDecrypting().
Referenced by IsDecrypting().
int cMtdHandler::Priority | ( | void | ) |
Returns the maximum priority of any of the active MTD CAM slots.
Definition at line 88 of file mtd.c.
References camSlots, IDLEPRIORITY, max(), and Priority().
Referenced by Priority().
int cMtdHandler::Put | ( | const uchar * | Data, |
int | Count ) |
Puts at most Count bytes of Data into the CAM slot which's index is derived from the PID of the TS packets.
Data must point to the beginning of a TS packet. Returns the number of bytes actually stored.
Definition at line 60 of file mtd.c.
References camSlots, esyslog, TS_SIZE, TS_SYNC, TsPid(), and UNIQ_PID_SHIFT.
void cMtdHandler::StartDecrypting | ( | void | ) |
void cMtdHandler::StopDecrypting | ( | void | ) |
void cMtdHandler::UnAssignAll | ( | void | ) |
|
private |
Definition at line 113 of file mtd.h.
Referenced by CancelActivation(), Devices(), GetMtdCamSlot(), IsActivating(), IsDecrypting(), Priority(), Put(), StartDecrypting(), StopDecrypting(), UnAssignAll(), and ~cMtdHandler().