vdr 2.6.1
|
#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) |
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 |
Definition at line 111 of file include/vdr/mtd.h.
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 | ( | ) |
Definition at line 38 of file mtd.c.
References camSlots, dsyslog, and cVector< T >::Size().
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, CancelActivation(), and cVector< T >::Size().
Referenced by cCamSlot::CancelActivation(), and CancelActivation().
void cMtdHandler::CancelActivation | ( | void | ) |
Tells all active MTD CAM slots to cancel activation.
bool cMtdHandler::Devices | ( | cVector< int > & | DeviceNumbers | ) |
Adds the numbers of the devices of any active MTD CAM slots to the given DeviceNumbers.
Returns true if the array is not empty.
Definition at line 138 of file mtd.c.
References camSlots, Devices(), and cVector< T >::Size().
Referenced by cCamSlot::Devices(), and Devices().
bool cMtdHandler::Devices | ( | cVector< int > & | DeviceNumbers | ) |
Adds the numbers of the devices of any active MTD CAM slots to the given DeviceNumbers.
Returns true if the array is not empty.
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 cVector< T >::Append(), camSlots, dsyslog, cVector< T >::Size(), and cCamSlot::SlotNumber().
Referenced by cCamSlot::MtdSpawn().
cMtdCamSlot * cMtdHandler::GetMtdCamSlot | ( | cCamSlot * | MasterSlot | ) |
Creates a new MTD CAM slot, or reuses an existing one that is currently unused.
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, IsActivating(), and cVector< T >::Size().
Referenced by cCamSlot::IsActivating(), and IsActivating().
bool cMtdHandler::IsActivating | ( | void | ) |
Returns true if any of the active MTD CAM slots is currently activating.
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, IsDecrypting(), and cVector< T >::Size().
Referenced by cCamSlot::IsDecrypting(), and IsDecrypting().
bool cMtdHandler::IsDecrypting | ( | void | ) |
Returns true if any of the active MTD CAM slots is currently decrypting.
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(), Priority(), and cVector< T >::Size().
Referenced by cCamSlot::Priority(), and Priority().
int cMtdHandler::Priority | ( | void | ) |
Returns the maximum priority of any of the active MTD CAM slots.
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, cVector< T >::Size(), TS_SIZE, TS_SYNC, TsPid(), and UNIQ_PID_SHIFT.
Referenced by cCamSlot::MtdPutData().
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.
void cMtdHandler::StartDecrypting | ( | void | ) |
Tells all active MTD CAM slots to start decrypting.
Definition at line 105 of file mtd.c.
References camSlots, and cVector< T >::Size().
Referenced by cCamSlot::Process().
void cMtdHandler::StartDecrypting | ( | void | ) |
Tells all active MTD CAM slots to start decrypting.
void cMtdHandler::StopDecrypting | ( | void | ) |
Tells all active MTD CAM slots to stop decrypting.
Definition at line 115 of file mtd.c.
References camSlots, and cVector< T >::Size().
Referenced by cCamSlot::StopDecrypting().
void cMtdHandler::StopDecrypting | ( | void | ) |
Tells all active MTD CAM slots to stop decrypting.
void cMtdHandler::UnAssignAll | ( | void | ) |
Unassigns all MTD CAM slots from their devices.
Definition at line 145 of file mtd.c.
References camSlots, and cVector< T >::Size().
Referenced by cCamSlot::Process().
void cMtdHandler::UnAssignAll | ( | void | ) |
Unassigns all MTD CAM slots from their devices.
|
private |
Definition at line 113 of file include/vdr/mtd.h.
Referenced by CancelActivation(), Devices(), GetMtdCamSlot(), IsActivating(), IsDecrypting(), Priority(), Put(), StartDecrypting(), StopDecrypting(), UnAssignAll(), and ~cMtdHandler().