vdr
1.7.31
|
#include <device.h>
Classes | |
class | cPidHandle |
Public Member Functions | |
bool | IsPrimaryDevice (void) const |
int | CardIndex (void) const |
int | DeviceNumber (void) const |
virtual cString | DeviceType (void) const |
virtual cString | DeviceName (void) const |
virtual bool | HasDecoder (void) const |
virtual bool | AvoidRecording (void) const |
virtual cSpuDecoder * | GetSpuDecoder (void) |
virtual bool | ProvidesSource (int Source) const |
virtual bool | ProvidesTransponder (const cChannel *Channel) const |
virtual bool | ProvidesTransponderExclusively (const cChannel *Channel) const |
virtual bool | ProvidesChannel (const cChannel *Channel, int Priority=IDLEPRIORITY, bool *NeedsDetachReceivers=NULL) const |
virtual bool | ProvidesEIT (void) const |
virtual int | NumProvidedSystems (void) const |
virtual int | SignalStrength (void) const |
virtual int | SignalQuality (void) const |
virtual const cChannel * | GetCurrentlyTunedTransponder (void) const |
virtual bool | IsTunedToTransponder (const cChannel *Channel) const |
virtual bool | MaySwitchTransponder (const cChannel *Channel) const |
bool | SwitchChannel (const cChannel *Channel, bool LiveView) |
void | ForceTransferMode (void) |
int | Occupied (void) const |
void | SetOccupied (int Seconds) |
virtual bool | HasLock (int TimeoutMs=0) |
virtual bool | HasProgramme (void) |
void | DelLivePids (void) |
virtual int | OpenFilter (u_short Pid, u_char Tid, u_char Mask) |
virtual int | ReadFilter (int Handle, void *Buffer, size_t Length) |
virtual void | CloseFilter (int Handle) |
void | AttachFilter (cFilter *Filter) |
void | Detach (cFilter *Filter) |
virtual bool | HasCi (void) |
virtual bool | HasInternalCam (void) |
void | SetCamSlot (cCamSlot *CamSlot) |
cCamSlot * | CamSlot (void) const |
virtual uchar * | GrabImage (int &Size, bool Jpeg=true, int Quality=-1, int SizeX=-1, int SizeY=-1) |
bool | GrabImageFile (const char *FileName, bool Jpeg=true, int Quality=-1, int SizeX=-1, int SizeY=-1) |
virtual void | SetVideoDisplayFormat (eVideoDisplayFormat VideoDisplayFormat) |
virtual void | SetVideoFormat (bool VideoFormat16_9) |
virtual eVideoSystem | GetVideoSystem (void) |
virtual void | GetVideoSize (int &Width, int &Height, double &VideoAspect) |
virtual void | GetOsdSize (int &Width, int &Height, double &PixelAspect) |
void | ClrAvailableTracks (bool DescriptionsOnly=false, bool IdsOnly=false) |
bool | SetAvailableTrack (eTrackType Type, int Index, uint16_t Id, const char *Language=NULL, const char *Description=NULL) |
const tTrackId * | GetTrack (eTrackType Type) |
int | NumTracks (eTrackType FirstTrack, eTrackType LastTrack) const |
int | NumAudioTracks (void) const |
int | NumSubtitleTracks (void) const |
eTrackType | GetCurrentAudioTrack (void) const |
bool | SetCurrentAudioTrack (eTrackType Type) |
eTrackType | GetCurrentSubtitleTrack (void) const |
bool | SetCurrentSubtitleTrack (eTrackType Type, bool Manual=false) |
void | EnsureAudioTrack (bool Force=false) |
void | EnsureSubtitleTrack (void) |
bool | IsMute (void) const |
bool | ToggleMute (void) |
int | GetAudioChannel (void) |
void | SetAudioChannel (int AudioChannel) |
void | SetVolume (int Volume, bool Absolute=false) |
virtual int64_t | GetSTC (void) |
virtual bool | IsPlayingVideo (void) const |
virtual bool | HasIBPTrickSpeed (void) |
virtual void | TrickSpeed (int Speed) |
virtual void | Clear (void) |
virtual void | Play (void) |
virtual void | Freeze (void) |
virtual void | Mute (void) |
virtual void | StillPicture (const uchar *Data, int Length) |
virtual bool | Poll (cPoller &Poller, int TimeoutMs=0) |
virtual bool | Flush (int TimeoutMs=0) |
virtual int | PlayPes (const uchar *Data, int Length, bool VideoOnly=false) |
virtual int | PlayTs (const uchar *Data, int Length, bool VideoOnly=false) |
bool | Replaying (void) const |
bool | Transferring (void) const |
void | StopReplay (void) |
bool | AttachPlayer (cPlayer *Player) |
void | Detach (cPlayer *Player) |
int | Priority (void) const |
bool | Receiving (bool Dummy=false) const |
bool | AttachReceiver (cReceiver *Receiver) |
void | Detach (cReceiver *Receiver) |
void | DetachAll (int Pid) |
virtual void | DetachAllReceivers (void) |
bool | IsPrimaryDevice (void) const |
int | CardIndex (void) const |
int | DeviceNumber (void) const |
virtual cString | DeviceType (void) const |
virtual cString | DeviceName (void) const |
virtual bool | HasDecoder (void) const |
virtual bool | AvoidRecording (void) const |
virtual cSpuDecoder * | GetSpuDecoder (void) |
virtual bool | ProvidesSource (int Source) const |
virtual bool | ProvidesTransponder (const cChannel *Channel) const |
virtual bool | ProvidesTransponderExclusively (const cChannel *Channel) const |
virtual bool | ProvidesChannel (const cChannel *Channel, int Priority=IDLEPRIORITY, bool *NeedsDetachReceivers=NULL) const |
virtual bool | ProvidesEIT (void) const |
virtual int | NumProvidedSystems (void) const |
virtual int | SignalStrength (void) const |
virtual int | SignalQuality (void) const |
virtual const cChannel * | GetCurrentlyTunedTransponder (void) const |
virtual bool | IsTunedToTransponder (const cChannel *Channel) const |
virtual bool | MaySwitchTransponder (const cChannel *Channel) const |
bool | SwitchChannel (const cChannel *Channel, bool LiveView) |
void | ForceTransferMode (void) |
int | Occupied (void) const |
void | SetOccupied (int Seconds) |
virtual bool | HasLock (int TimeoutMs=0) |
virtual bool | HasProgramme (void) |
void | DelLivePids (void) |
virtual int | OpenFilter (u_short Pid, u_char Tid, u_char Mask) |
virtual int | ReadFilter (int Handle, void *Buffer, size_t Length) |
virtual void | CloseFilter (int Handle) |
void | AttachFilter (cFilter *Filter) |
void | Detach (cFilter *Filter) |
virtual bool | HasCi (void) |
virtual bool | HasInternalCam (void) |
void | SetCamSlot (cCamSlot *CamSlot) |
cCamSlot * | CamSlot (void) const |
virtual uchar * | GrabImage (int &Size, bool Jpeg=true, int Quality=-1, int SizeX=-1, int SizeY=-1) |
bool | GrabImageFile (const char *FileName, bool Jpeg=true, int Quality=-1, int SizeX=-1, int SizeY=-1) |
virtual void | SetVideoDisplayFormat (eVideoDisplayFormat VideoDisplayFormat) |
virtual void | SetVideoFormat (bool VideoFormat16_9) |
virtual eVideoSystem | GetVideoSystem (void) |
virtual void | GetVideoSize (int &Width, int &Height, double &VideoAspect) |
virtual void | GetOsdSize (int &Width, int &Height, double &PixelAspect) |
void | ClrAvailableTracks (bool DescriptionsOnly=false, bool IdsOnly=false) |
bool | SetAvailableTrack (eTrackType Type, int Index, uint16_t Id, const char *Language=NULL, const char *Description=NULL) |
const tTrackId * | GetTrack (eTrackType Type) |
int | NumTracks (eTrackType FirstTrack, eTrackType LastTrack) const |
int | NumAudioTracks (void) const |
int | NumSubtitleTracks (void) const |
eTrackType | GetCurrentAudioTrack (void) const |
bool | SetCurrentAudioTrack (eTrackType Type) |
eTrackType | GetCurrentSubtitleTrack (void) const |
bool | SetCurrentSubtitleTrack (eTrackType Type, bool Manual=false) |
void | EnsureAudioTrack (bool Force=false) |
void | EnsureSubtitleTrack (void) |
bool | IsMute (void) const |
bool | ToggleMute (void) |
int | GetAudioChannel (void) |
void | SetAudioChannel (int AudioChannel) |
void | SetVolume (int Volume, bool Absolute=false) |
virtual int64_t | GetSTC (void) |
virtual bool | IsPlayingVideo (void) const |
virtual bool | HasIBPTrickSpeed (void) |
virtual void | TrickSpeed (int Speed) |
virtual void | Clear (void) |
virtual void | Play (void) |
virtual void | Freeze (void) |
virtual void | Mute (void) |
virtual void | StillPicture (const uchar *Data, int Length) |
virtual bool | Poll (cPoller &Poller, int TimeoutMs=0) |
virtual bool | Flush (int TimeoutMs=0) |
virtual int | PlayPes (const uchar *Data, int Length, bool VideoOnly=false) |
virtual int | PlayTs (const uchar *Data, int Length, bool VideoOnly=false) |
bool | Replaying (void) const |
bool | Transferring (void) const |
void | StopReplay (void) |
bool | AttachPlayer (cPlayer *Player) |
void | Detach (cPlayer *Player) |
int | Priority (void) const |
bool | Receiving (bool Dummy=false) const |
bool | AttachReceiver (cReceiver *Receiver) |
void | Detach (cReceiver *Receiver) |
void | DetachAll (int Pid) |
virtual void | DetachAllReceivers (void) |
![]() | |
cThread (const char *Description=NULL) | |
virtual | ~cThread () |
void | SetDescription (const char *Description,...) __attribute__((format(printf |
void bool | Start (void) |
bool | Active (void) |
cThread (const char *Description=NULL) | |
virtual | ~cThread () |
void | SetDescription (const char *Description,...) __attribute__((format(printf |
void bool | Start (void) |
bool | Active (void) |
Static Public Member Functions | |
static int | NumDevices (void) |
static bool | WaitForAllDevicesReady (int Timeout=0) |
static void | SetUseDevice (int n) |
static bool | UseDevice (int n) |
static bool | SetPrimaryDevice (int n) |
static cDevice * | PrimaryDevice (void) |
static cDevice * | ActualDevice (void) |
static cDevice * | GetDevice (int Index) |
static cDevice * | GetDevice (const cChannel *Channel, int Priority, bool LiveView, bool Query=false) |
static cDevice * | GetDeviceForTransponder (const cChannel *Channel, int Priority) |
static void | Shutdown (void) |
static bool | SwitchChannel (int Direction) |
static int | CurrentChannel (void) |
static void | SetCurrentChannel (const cChannel *Channel) |
static int | CurrentVolume (void) |
static int | NumDevices (void) |
static bool | WaitForAllDevicesReady (int Timeout=0) |
static void | SetUseDevice (int n) |
static bool | UseDevice (int n) |
static bool | SetPrimaryDevice (int n) |
static cDevice * | PrimaryDevice (void) |
static cDevice * | ActualDevice (void) |
static cDevice * | GetDevice (int Index) |
static cDevice * | GetDevice (const cChannel *Channel, int Priority, bool LiveView, bool Query=false) |
static cDevice * | GetDeviceForTransponder (const cChannel *Channel, int Priority) |
static void | Shutdown (void) |
static bool | SwitchChannel (int Direction) |
static int | CurrentChannel (void) |
static void | SetCurrentChannel (const cChannel *Channel) |
static int | CurrentVolume (void) |
![]() | |
static tThreadId | ThreadId (void) |
static tThreadId | IsMainThread (void) |
static void | SetMainThreadId (void) |
static tThreadId | ThreadId (void) |
static tThreadId | IsMainThread (void) |
static void | SetMainThreadId (void) |
Protected Types | |
enum | ePidType { ptAudio, ptVideo, ptPcr, ptTeletext, ptDolby, ptOther, ptAudio, ptVideo, ptPcr, ptTeletext, ptDolby, ptOther } |
enum | ePidType { ptAudio, ptVideo, ptPcr, ptTeletext, ptDolby, ptOther, ptAudio, ptVideo, ptPcr, ptTeletext, ptDolby, ptOther } |
Protected Member Functions | |
cDevice (void) | |
virtual | ~cDevice () |
virtual bool | Ready (void) |
virtual void | MakePrimaryDevice (bool On) |
bool | DeviceHooksProvidesTransponder (const cChannel *Channel) const |
virtual bool | SetChannelDevice (const cChannel *Channel, bool LiveView) |
bool | HasPid (int Pid) const |
bool | AddPid (int Pid, ePidType PidType=ptOther, int StreamType=0) |
void | DelPid (int Pid, ePidType PidType=ptOther) |
virtual bool | SetPid (cPidHandle *Handle, int Type, bool On) |
void | StartSectionHandler (void) |
void | StopSectionHandler (void) |
virtual void | SetAudioTrackDevice (eTrackType Type) |
virtual void | SetSubtitleTrackDevice (eTrackType Type) |
virtual int | GetAudioChannelDevice (void) |
virtual void | SetAudioChannelDevice (int AudioChannel) |
virtual void | SetVolumeDevice (int Volume) |
virtual void | SetDigitalAudioDevice (bool On) |
const cPatPmtParser * | PatPmtParser (void) const |
virtual bool | CanReplay (void) const |
virtual bool | SetPlayMode (ePlayMode PlayMode) |
virtual int | PlayVideo (const uchar *Data, int Length) |
virtual int | PlayAudio (const uchar *Data, int Length, uchar Id) |
virtual int | PlaySubtitle (const uchar *Data, int Length) |
virtual int | PlayPesPacket (const uchar *Data, int Length, bool VideoOnly=false) |
virtual int | PlayTsVideo (const uchar *Data, int Length) |
virtual int | PlayTsAudio (const uchar *Data, int Length) |
virtual int | PlayTsSubtitle (const uchar *Data, int Length) |
virtual bool | OpenDvr (void) |
virtual void | CloseDvr (void) |
virtual bool | GetTSPacket (uchar *&Data) |
cDevice (void) | |
virtual | ~cDevice () |
virtual bool | Ready (void) |
virtual void | MakePrimaryDevice (bool On) |
bool | DeviceHooksProvidesTransponder (const cChannel *Channel) const |
virtual bool | SetChannelDevice (const cChannel *Channel, bool LiveView) |
bool | HasPid (int Pid) const |
bool | AddPid (int Pid, ePidType PidType=ptOther, int StreamType=0) |
void | DelPid (int Pid, ePidType PidType=ptOther) |
virtual bool | SetPid (cPidHandle *Handle, int Type, bool On) |
void | StartSectionHandler (void) |
void | StopSectionHandler (void) |
virtual void | SetAudioTrackDevice (eTrackType Type) |
virtual void | SetSubtitleTrackDevice (eTrackType Type) |
virtual int | GetAudioChannelDevice (void) |
virtual void | SetAudioChannelDevice (int AudioChannel) |
virtual void | SetVolumeDevice (int Volume) |
virtual void | SetDigitalAudioDevice (bool On) |
const cPatPmtParser * | PatPmtParser (void) const |
virtual bool | CanReplay (void) const |
virtual bool | SetPlayMode (ePlayMode PlayMode) |
virtual int | PlayVideo (const uchar *Data, int Length) |
virtual int | PlayAudio (const uchar *Data, int Length, uchar Id) |
virtual int | PlaySubtitle (const uchar *Data, int Length) |
virtual int | PlayPesPacket (const uchar *Data, int Length, bool VideoOnly=false) |
virtual int | PlayTsVideo (const uchar *Data, int Length) |
virtual int | PlayTsAudio (const uchar *Data, int Length) |
virtual int | PlayTsSubtitle (const uchar *Data, int Length) |
virtual bool | OpenDvr (void) |
virtual void | CloseDvr (void) |
virtual bool | GetTSPacket (uchar *&Data) |
![]() | |
void | SetPriority (int Priority) |
void | SetIOPriority (int Priority) |
void | Lock (void) |
void | Unlock (void) |
virtual void | Action (void)=0 |
bool | Running (void) |
void | Cancel (int WaitSeconds=0) |
void | SetPriority (int Priority) |
void | SetIOPriority (int Priority) |
void | Lock (void) |
void | Unlock (void) |
virtual void | Action (void)=0 |
bool | Running (void) |
void | Cancel (int WaitSeconds=0) |
Static Protected Member Functions | |
static int | NextCardIndex (int n=0) |
static int | NextCardIndex (int n=0) |
Protected Attributes | |
cPidHandle | pidHandles [MAXPIDHANDLES] |
Static Protected Attributes | |
static int | currentChannel = 1 |
Private Member Functions | |
eSetChannelResult | SetChannel (const cChannel *Channel, bool LiveView) |
virtual void | Action (void) |
eSetChannelResult | SetChannel (const cChannel *Channel, bool LiveView) |
virtual void | Action (void) |
Static Private Attributes | |
static int | numDevices = 0 |
static int | useDevice = 0 |
static cDevice * | device [MAXDEVICES] = { NULL } |
static cDevice * | primaryDevice = NULL |
static int | nextCardIndex = 0 |
static cList< cDeviceHook > | deviceHooks |
Friends | |
class | cLiveSubtitle |
class | cDeviceHook |
The cDevice class is the base from which actual devices can be derived.
|
protected |
|
protected |
ptAudio | |
ptVideo | |
ptPcr | |
ptTeletext | |
ptDolby | |
ptOther | |
ptAudio | |
ptVideo | |
ptPcr | |
ptTeletext | |
ptDolby | |
ptOther |
Definition at line 346 of file include/vdr/device.h.
|
protected |
Definition at line 74 of file device.c.
References autoSelectPreferredSubtitleLanguage, camSlot, cardIndex, CardIndex(), ClrAvailableTracks(), currentAudioTrack, currentAudioTrackMissingCount, currentSubtitleTrack, cSetup::CurrentVolume, device, dsyslog, dvbSubtitleConverter, eitFilter, esyslog, isPlayingVideo, liveSubtitle, MAXDEVICES, MAXRECEIVERS, mute, nextCardIndex, nitFilter, numDevices, occupiedTimeout, patFilter, player, receiver, sdtFilter, sectionHandler, cThread::SetDescription(), Setup, startScrambleDetection, ttNone, and volume.
|
protectedvirtual |
Definition at line 115 of file device.c.
References Detach(), DetachAllReceivers(), dvbSubtitleConverter, liveSubtitle, and player.
|
protected |
|
protectedvirtual |
|
privatevirtual |
Definition at line 1581 of file device.c.
References CamSlot(), ChannelCamRelations, CloseDvr(), Detach(), GetTSPacket(), cThread::Lock(), MAXRECEIVERS, OpenDvr(), cReceiver::Receive(), receiver, cThread::Running(), cChannelCamRelations::SetChecked(), cChannelCamRelations::SetDecrypt(), cCamSlot::SlotNumber(), startScrambleDetection, TS_SCRAMBLING_CONTROL, TS_SCRAMBLING_TIME_OK, TS_SCRAMBLING_TIMEOUT, TS_SIZE, TsPid(), and cThread::Unlock().
|
privatevirtual |
|
static |
Returns the actual receiving device in case of Transfer Mode, or the primary device otherwise.
|
static |
Returns the actual receiving device in case of Transfer Mode, or the primary device otherwise.
Definition at line 211 of file device.c.
References PrimaryDevice(), and cTransferControl::ReceiverDevice().
Referenced by cSkinLCARSDisplayChannel::DrawDevice(), cSkinLCARSDisplayMenu::DrawLiveIndicator(), cSkinLCARSDisplayChannel::DrawSignal(), cSkinSTTNGDisplayChannel::Flush(), main(), Priority(), and cEITScanner::Process().
Adds a PID to the set of PIDs this device shall receive.
Adds a PID to the set of PIDs this device shall receive.
Definition at line 462 of file device.c.
References camSlot, CardIndex(), DelPid(), DetachAll(), esyslog, MAXPIDHANDLES, cDevice::cPidHandle::pid, pidHandles, PRINTPIDS, ptOther, ptPcr, ptTeletext, cCamSlot::SetPid(), SetPid(), cDevice::cPidHandle::streamType, and cDevice::cPidHandle::used.
Referenced by AttachReceiver(), cDvbHdFfDevice::SetChannelDevice(), and cDvbSdFfDevice::SetChannelDevice().
void cDevice::AttachFilter | ( | cFilter * | Filter | ) |
Attaches the given filter to this device.
void cDevice::AttachFilter | ( | cFilter * | Filter | ) |
Attaches the given filter to this device.
Definition at line 611 of file device.c.
References cSectionHandler::Attach(), and sectionHandler.
Referenced by StartSectionHandler().
bool cDevice::AttachPlayer | ( | cPlayer * | Player | ) |
Attaches the given player to this device.
Definition at line 1211 of file device.c.
References cPlayer::Activate(), CanReplay(), ClrAvailableTracks(), DELETENULL(), Detach(), cPlayer::device, dvbSubtitleConverter, liveSubtitle, patPmtParser, player, cPlayer::playMode, cPatPmtParser::Reset(), SetPlayMode(), and Transferring().
Referenced by cControl::Attach().
bool cDevice::AttachPlayer | ( | cPlayer * | Player | ) |
Attaches the given player to this device.
bool cDevice::AttachReceiver | ( | cReceiver * | Receiver | ) |
Attaches the given receiver to this device.
bool cDevice::AttachReceiver | ( | cReceiver * | Receiver | ) |
Attaches the given receiver to this device.
Definition at line 1648 of file device.c.
References cReceiver::Activate(), AddPid(), camSlot, CardIndex(), DelPid(), cReceiver::device, esyslog, HasLock(), cThread::Lock(), MAXRECEIVERS, mutexReceiver, cReceiver::numPids, cReceiver::pids, receiver, cThread::Start(), cCamSlot::StartDecrypting(), startScrambleDetection, and cThread::Unlock().
Referenced by cRecordControl::cRecordControl(), cTransferControl::cTransferControl(), and SetCurrentSubtitleTrack().
|
inlinevirtual |
Returns true if this device should only be used for recording if no other device is available.
Reimplemented in cDvbSdFfDevice.
Definition at line 215 of file include/vdr/device.h.
|
inlinevirtual |
Returns true if this device should only be used for recording if no other device is available.
Reimplemented in cDvbSdFfDevice.
Definition at line 215 of file device.h.
Referenced by GetDevice().
|
inline |
Returns the CAM slot that is currently used with this device, or NULL if no CAM slot is in use.
Definition at line 426 of file include/vdr/device.h.
References camSlot.
|
inline |
Returns the CAM slot that is currently used with this device, or NULL if no CAM slot is in use.
Definition at line 426 of file device.h.
References camSlot.
Referenced by Action(), cCamSlot::Device(), DrawDeviceData(), GetDevice(), cDvbDevice::ProvidesChannel(), cDvbHdFfDevice::SetAudioTrackDevice(), cDvbSdFfDevice::SetAudioTrackDevice(), SetCamSlot(), cDvbHdFfDevice::SetChannelDevice(), and cDvbSdFfDevice::SetChannelDevice().
|
protectedvirtual |
Returns true if this device can currently start a replay session.
Reimplemented in cDvbHdFfDevice, and cDvbSdFfDevice.
Definition at line 1097 of file device.c.
References HasDecoder().
Referenced by AttachPlayer(), and SetChannel().
|
protectedvirtual |
Returns true if this device can currently start a replay session.
Reimplemented in cDvbHdFfDevice, and cDvbSdFfDevice.
|
inline |
Returns the card index of this device (0 ... MAXDEVICES - 1).
Definition at line 200 of file include/vdr/device.h.
References cardIndex.
|
inline |
Returns the card index of this device (0 ... MAXDEVICES - 1).
Definition at line 200 of file device.h.
References cardIndex.
Referenced by AddPid(), AttachReceiver(), cDvbDevice::Bond(), cDevice(), cStatusTest::ChannelSwitch(), cRecordControl::cRecordControl(), cDvbTuner::GetBondingParams(), GetClippedNumProvidedSystems(), GetDevice(), cDvbSdFfDevice::GetSTC(), cDvbHdFfDevice::GetSTC(), cDvbDevice::OpenDvr(), cDvbDevice::ProvidesTransponder(), cStatusTest::Recording(), cDvbHdFfDevice::SetChannelDevice(), cDvbSdFfDevice::SetChannelDevice(), cDvbTuner::SetFrontend(), and cDvbDevice::UnBond().
|
virtual |
Clears all video and audio data from the device.
A derived class must call the base class function to make sure all registered cAudio objects are notified.
Reimplemented in cDvbHdFfDevice, and cDvbSdFfDevice.
Definition at line 1116 of file device.c.
References Audios, cAudios::ClearAudio(), dvbSubtitleConverter, and cDvbSubtitleConverter::Reset().
Referenced by cPlayer::DeviceClear().
|
virtual |
Clears all video and audio data from the device.
A derived class must call the base class function to make sure all registered cAudio objects are notified.
Reimplemented in cDvbHdFfDevice, and cDvbSdFfDevice.
|
protectedvirtual |
Shuts down the DVR.
Reimplemented in cDvbDevice, and cDvbDevice.
Definition at line 1639 of file device.c.
Referenced by Action().
|
protectedvirtual |
Shuts down the DVR.
Reimplemented in cDvbDevice, and cDvbDevice.
|
virtual |
Closes a file handle that has previously been opened by OpenFilter().
If this is as simple as calling close(Handle), a derived class need not implement this function, because this is done by the default implementation.
Reimplemented in cDvbDevice, and cDvbDevice.
|
virtual |
Closes a file handle that has previously been opened by OpenFilter().
If this is as simple as calling close(Handle), a derived class need not implement this function, because this is done by the default implementation.
Reimplemented in cDvbDevice, and cDvbDevice.
Definition at line 606 of file device.c.
Referenced by cSectionHandler::Del().
void cDevice::ClrAvailableTracks | ( | bool | DescriptionsOnly = false , |
bool | IdsOnly = false |
||
) |
Clears the list of currently available tracks.
If DescriptionsOnly is true, only the track descriptions will be cleared. With IdsOnly set to true only the ids will be cleared. IdsOnly is only taken into account if DescriptionsOnly is false.
Definition at line 925 of file device.c.
References availableTracks, currentAudioTrack, currentAudioTrackMissingCount, currentSubtitleTrack, cThread::description, pre_1_3_19_PrivateStream, SetAudioChannel(), ttMaxTrackTypes, and ttNone.
Referenced by AttachPlayer(), cDevice(), cPlayer::DeviceClrAvailableTracks(), cPatPmtParser::ParsePmt(), PlayPesPacket(), SetChannel(), and SetTrackDescriptions().
void cDevice::ClrAvailableTracks | ( | bool | DescriptionsOnly = false , |
bool | IdsOnly = false |
||
) |
Clears the list of currently available tracks.
If DescriptionsOnly is true, only the track descriptions will be cleared. With IdsOnly set to true only the ids will be cleared. IdsOnly is only taken into account if DescriptionsOnly is false.
|
inlinestatic |
Returns the number of the current channel on the primary device.
Definition at line 313 of file device.h.
References currentChannel, and primaryDevice.
Referenced by cDisplayChannel::cDisplayChannel(), cDisplaySubtitleTracks::cDisplaySubtitleTracks(), cDisplayTracks::cDisplayTracks(), cRcuRemote::ChannelSwitch(), cSVDRP::CmdCHAN(), cSVDRP::CmdDELC(), cSVDRP::CmdMOVC(), cMenuSchedule::cMenuSchedule(), cTimer::cTimer(), cMenuChannels::Delete(), ForceTransferMode(), main(), cMenuChannels::Move(), cMenuSchedule::Number(), cEITScanner::Process(), cDisplayChannel::ProcessKey(), cMenuSchedule::ProcessKey(), cDvbHdFfDevice::SetAudioTrackDevice(), cMenuChannels::Setup(), cRecordControls::Start(), and SwitchChannel().
|
inlinestatic |
Returns the number of the current channel on the primary device.
Definition at line 313 of file include/vdr/device.h.
References currentChannel, and primaryDevice.
|
inlinestatic |
Definition at line 572 of file device.h.
References primaryDevice, and volume.
Referenced by cSVDRP::CmdVOLU(), main(), cDvbSdFfDevice::SetDigitalAudioDevice(), and cDisplayVolume::Show().
|
inlinestatic |
Definition at line 572 of file include/vdr/device.h.
References primaryDevice, and volume.
void cDevice::DelLivePids | ( | void | ) |
Deletes the live viewing PIDs.
void cDevice::DelLivePids | ( | void | ) |
Deletes the live viewing PIDs.
Definition at line 561 of file device.c.
References DelPid(), pidHandles, ptAudio, and ptOther.
Referenced by cDvbTuner::SetChannel().
Deletes a PID from the set of PIDs this device shall receive.
Deletes a PID from the set of PIDs this device shall receive.
Definition at line 526 of file device.c.
References camSlot, cDevice::cPidHandle::handle, MAXPIDHANDLES, cDevice::cPidHandle::pid, pidHandles, PRINTPIDS, ptPcr, cCamSlot::SetPid(), and SetPid().
Referenced by AddPid(), AttachReceiver(), DelLivePids(), Detach(), cDvbHdFfDevice::TurnOffLiveMode(), and cDvbSdFfDevice::TurnOffLiveMode().
void cDevice::Detach | ( | cFilter * | Filter | ) |
Detaches the given filter from this device.
void cDevice::Detach | ( | cFilter * | Filter | ) |
Detaches the given filter from this device.
Definition at line 617 of file device.c.
References cSectionHandler::Detach(), and sectionHandler.
Referenced by Action(), AttachPlayer(), cReceiver::Detach(), cPlayer::Detach(), DetachAll(), DetachAllReceivers(), StopReplay(), and ~cDevice().
void cDevice::Detach | ( | cPlayer * | Player | ) |
Detaches the given player from this device.
Definition at line 1230 of file device.c.
References cPlayer::Activate(), Audios, cAudios::ClearAudio(), cPlayer::device, dvbSubtitleConverter, isPlayingVideo, mutexCurrentSubtitleTrack, patPmtParser, player, PlayTs(), pmNone, cPatPmtParser::Reset(), SetPlayMode(), Setup, SetVideoDisplayFormat(), and cSetup::VideoDisplayFormat.
void cDevice::Detach | ( | cPlayer * | Player | ) |
Detaches the given player from this device.
void cDevice::Detach | ( | cReceiver * | Receiver | ) |
Detaches the given receiver from this device.
void cDevice::Detach | ( | cReceiver * | Receiver | ) |
Detaches the given receiver from this device.
Definition at line 1690 of file device.c.
References cReceiver::Activate(), camSlot, cThread::Cancel(), DelPid(), cReceiver::device, cThread::Lock(), MAXRECEIVERS, mutexReceiver, cReceiver::numPids, cReceiver::pids, receiver, cCamSlot::StartDecrypting(), and cThread::Unlock().
void cDevice::DetachAll | ( | int | Pid | ) |
Detaches all receivers from this device for this pid.
Definition at line 1715 of file device.c.
References Detach(), MAXRECEIVERS, mutexReceiver, receiver, and cReceiver::WantsPid().
Referenced by AddPid(), cDvbHdFfDevice::SetAudioTrackDevice(), cDvbSdFfDevice::SetAudioTrackDevice(), cDvbHdFfDevice::TurnOffLiveMode(), and cDvbSdFfDevice::TurnOffLiveMode().
void cDevice::DetachAll | ( | int | Pid | ) |
Detaches all receivers from this device for this pid.
|
virtual |
Detaches all receivers from this device.
Reimplemented in cDvbDevice, and cDvbDevice.
Definition at line 1727 of file device.c.
References Detach(), MAXRECEIVERS, mutexReceiver, and receiver.
Referenced by GetDevice(), and ~cDevice().
|
virtual |
Detaches all receivers from this device.
Reimplemented in cDvbDevice, and cDvbDevice.
|
protected |
|
protected |
Definition at line 628 of file device.c.
References deviceHooks, cDeviceHook::DeviceProvidesTransponder(), cList< T >::First(), and cList< T >::Next().
Referenced by cDvbDevice::ProvidesTransponder().
|
virtual |
Returns a string identifying the name of this device.
The default implementation returns an empty string.
Reimplemented in cDvbDevice, and cDvbDevice.
|
virtual |
Returns a string identifying the name of this device.
The default implementation returns an empty string.
Reimplemented in cDvbDevice, and cDvbDevice.
int cDevice::DeviceNumber | ( | void | ) | const |
Returns the number of this device (0 ... numDevices).
int cDevice::DeviceNumber | ( | void | ) | const |
Returns the number of this device (0 ... numDevices).
Definition at line 157 of file device.c.
References device, and numDevices.
Referenced by cCamSlot::Assign(), cDvbCiAdapter::cDvbCiAdapter(), cSkinLCARSDisplayChannel::DrawDevice(), cSkinLCARSDisplayMenu::DrawDevice(), DrawDeviceData(), cSkinLCARSDisplayMenu::DrawLiveIndicator(), cSkinLCARSDisplayMenu::DrawTimers(), cSkinSTTNGDisplayChannel::Flush(), main(), cDvbCiAdapter::ModuleStatus(), cEITScanner::Process(), cDvbCiAdapter::Read(), cRcuRemote::Recording(), cDvbCiAdapter::Reset(), cRecordControls::Start(), and cDvbCiAdapter::Write().
|
virtual |
Returns a string identifying the type of this device (like "DVB-S").
If this device can receive different delivery systems, the returned string shall be that of the currently used system. The length of the returned string should not exceed 6 characters. The default implementation returns an empty string.
Reimplemented in cDvbDevice, and cDvbDevice.
|
virtual |
Returns a string identifying the type of this device (like "DVB-S").
If this device can receive different delivery systems, the returned string shall be that of the currently used system. The length of the returned string should not exceed 6 characters. The default implementation returns an empty string.
Reimplemented in cDvbDevice, and cDvbDevice.
Definition at line 166 of file device.c.
Referenced by DrawDeviceData().
void cDevice::EnsureAudioTrack | ( | bool | Force = false | ) |
Makes sure an audio track is selected that is actually available.
If Force is true, the language and Dolby Digital settings will be verified even if the current audio track is available.
Definition at line 1046 of file device.c.
References cSetup::AudioLanguages, availableTracks, currentAudioTrack, cSetup::CurrentDolby, dsyslog, GetCurrentAudioTrack(), GetTrack(), I18nIsPreferredLanguage(), tTrackId::id, tTrackId::language, SetAudioChannel(), SetCurrentAudioTrack(), Setup, ttAudioFirst, ttAudioLast, ttDolbyFirst, and ttDolbyLast.
Referenced by cDisplayTracks::cDisplayTracks(), cPatPmtParser::ParsePmt(), SetAvailableTrack(), and SetChannel().
void cDevice::EnsureAudioTrack | ( | bool | Force = false | ) |
Makes sure an audio track is selected that is actually available.
If Force is true, the language and Dolby Digital settings will be verified even if the current audio track is available.
void cDevice::EnsureSubtitleTrack | ( | void | ) |
Makes sure one of the preferred language subtitle tracks is selected.
Only has an effect if Setup.DisplaySubtitles is on.
Definition at line 1077 of file device.c.
References cSetup::DisplaySubtitles, GetCurrentSubtitleTrack(), GetTrack(), I18nIsPreferredLanguage(), tTrackId::id, tTrackId::language, SetCurrentSubtitleTrack(), Setup, cSetup::SubtitleLanguages, ttNone, ttSubtitleFirst, and ttSubtitleLast.
Referenced by cPatPmtParser::ParsePmt(), cMenuSetupDVB::ProcessKey(), SetAvailableTrack(), and SetChannel().
void cDevice::EnsureSubtitleTrack | ( | void | ) |
Makes sure one of the preferred language subtitle tracks is selected.
Only has an effect if Setup.DisplaySubtitles is on.
|
virtual |
Returns true if the device's output buffers are empty, i.
e. any data which was buffered so far has been processed. If TimeoutMs is not zero, the device will wait up to the given number of milliseconds before returning in case there is still data in the buffers.
Reimplemented in cDvbHdFfDevice, and cDvbSdFfDevice.
Definition at line 1263 of file device.c.
Referenced by cPlayer::DeviceFlush().
|
virtual |
Returns true if the device's output buffers are empty, i.
e. any data which was buffered so far has been processed. If TimeoutMs is not zero, the device will wait up to the given number of milliseconds before returning in case there is still data in the buffers.
Reimplemented in cDvbHdFfDevice, and cDvbSdFfDevice.
void cDevice::ForceTransferMode | ( | void | ) |
Forces the device into transfermode for the current channel.
Definition at line 822 of file device.c.
References Channels, CurrentChannel(), cChannels::GetByNumber(), cTransferControl::ReceiverDevice(), and SetChannelDevice().
Referenced by cDvbSdFfDevice::SetAudioTrackDevice().
void cDevice::ForceTransferMode | ( | void | ) |
Forces the device into transfermode for the current channel.
|
virtual |
Puts the device into "freeze frame" mode.
Reimplemented in cDvbHdFfDevice, and cDvbSdFfDevice.
Definition at line 1130 of file device.c.
References Audios, dvbSubtitleConverter, cDvbSubtitleConverter::Freeze(), and cAudios::MuteAudio().
Referenced by cPlayer::DeviceFreeze().
|
virtual |
Puts the device into "freeze frame" mode.
Reimplemented in cDvbHdFfDevice, and cDvbSdFfDevice.
int cDevice::GetAudioChannel | ( | void | ) |
Gets the current audio channel, which is stereo (0), mono left (1) or mono right (2).
Definition at line 900 of file device.c.
References GetAudioChannelDevice().
Referenced by cDisplayTracks::cDisplayTracks(), and cDisplayTracks::ProcessKey().
int cDevice::GetAudioChannel | ( | void | ) |
Gets the current audio channel, which is stereo (0), mono left (1) or mono right (2).
|
protectedvirtual |
Gets the current audio channel, which is stereo (0), mono left (1) or mono right (2).
Reimplemented in cDvbSdFfDevice, and cDvbHdFfDevice.
Definition at line 858 of file device.c.
Referenced by GetAudioChannel().
|
protectedvirtual |
Gets the current audio channel, which is stereo (0), mono left (1) or mono right (2).
Reimplemented in cDvbSdFfDevice, and cDvbHdFfDevice.
|
inline |
Definition at line 524 of file device.h.
References currentAudioTrack.
Referenced by cDisplayTracks::cDisplayTracks(), cSkinLCARSDisplayChannel::DrawTrack(), cSkinLCARSDisplayReplay::DrawTrack(), EnsureAudioTrack(), and cSkinSTTNGDisplayChannel::Flush().
|
inline |
Definition at line 524 of file include/vdr/device.h.
References currentAudioTrack.
|
virtual |
Returns a pointer to the currently tuned transponder.
This is not one of the channels in the global cChannels list, but rather a local copy. The result may be NULL if the device is not tuned to any transponder.
Reimplemented in cDvbDevice, and cDvbDevice.
|
virtual |
Returns a pointer to the currently tuned transponder.
This is not one of the channels in the global cChannels list, but rather a local copy. The result may be NULL if the device is not tuned to any transponder.
Reimplemented in cDvbDevice, and cDvbDevice.
|
inline |
Definition at line 528 of file device.h.
References currentSubtitleTrack.
Referenced by cDisplaySubtitleTracks::cDisplaySubtitleTracks(), and EnsureSubtitleTrack().
|
inline |
Definition at line 528 of file include/vdr/device.h.
References currentSubtitleTrack.
|
static |
Gets the device with the given Index.
Index | must be in the range 0..numDevices-1. |
Definition at line 219 of file device.c.
References device, and numDevices.
Referenced by cDvbDevice::BondDevices(), cSkinLCARSDisplayMenu::DrawDevices(), cSkinLCARSDisplayMenu::DrawSignals(), cSkinLCARSDisplayMenu::DrawTimers(), GetDeviceForTransponder(), cDvbHdFfDevice::GetHdffCmdHandler(), main(), cDisplayChannel::NextAvailableChannel(), cEITScanner::Process(), SetChannel(), cMenuSetupLNB::Setup(), cRecordControls::Start(), SwitchChannel(), and cDvbDevice::UnBondDevices().
|
static |
Gets the device with the given Index.
Index | must be in the range 0..numDevices-1. |
|
static |
Returns a device that is able to receive the given Channel at the given Priority, with the least impact on active recordings and live viewing.
The LiveView parameter tells whether the device will be used for live viewing or a recording. If the Channel is encrypted, a CAM slot that claims to be able to decrypt the channel is automatically selected and assigned to the returned device. Whether or not this combination of device and CAM slot is actually able to decrypt the channel can only be determined by checking the "scrambling control" bits of the received TS packets. The Action() function automatically does this and takes care that after detaching any receivers because the channel can't be decrypted, this device/CAM combination will be skipped in the next call to GetDevice(). If Query is true, no actual CAM assignments or receiver detachments will be done, so that this function can be called without any side effects in order to just determine whether a device is available for the given Channel. See also ProvidesChannel().
Definition at line 239 of file device.c.
References cCamSlot::Assign(), AvoidRecording(), cChannel::Ca(), CA_DVB_MAX, CA_ENCRYPTED_MIN, cChannel::Caids(), cChannelCamRelations::CamChecked(), cChannelCamRelations::CamDecrypt(), CamSlot(), CamSlots, CardIndex(), ChannelCamRelations, cListBase::Count(), DetachAllReceivers(), device, cCamSlot::Device(), cList< T >::First(), cList< T >::Get(), cChannel::GetChannelID(), GetClippedNumProvidedSystems(), HasCi(), HasInternalCam(), IDLEPRIORITY, cListObject::Index(), cCamSlot::IsDecrypting(), IsPrimaryDevice(), MAXPRIORITY, cCamSlot::ModuleStatus(), msReady, cList< T >::Next(), numDevices, cCamSlot::Priority(), Priority(), cCamSlot::ProvidesCa(), ProvidesChannel(), cTransferControl::ReceiverDevice(), Receiving(), and cCamSlot::SlotNumber().
|
static |
Returns a device that is able to receive the given Channel at the given Priority, with the least impact on active recordings and live viewing.
The LiveView parameter tells whether the device will be used for live viewing or a recording. If the Channel is encrypted, a CAM slot that claims to be able to decrypt the channel is automatically selected and assigned to the returned device. Whether or not this combination of device and CAM slot is actually able to decrypt the channel can only be determined by checking the "scrambling control" bits of the received TS packets. The Action() function automatically does this and takes care that after detaching any receivers because the channel can't be decrypted, this device/CAM combination will be skipped in the next call to GetDevice(). If Query is true, no actual CAM assignments or receiver detachments will be done, so that this function can be called without any side effects in order to just determine whether a device is available for the given Channel. See also ProvidesChannel().
Returns a device that is not currently "occupied" and can be tuned to the transponder of the given Channel, without disturbing any receiver at priorities higher or equal to Priority.
If no such device is currently available, NULL will be returned.
Returns a device that is not currently "occupied" and can be tuned to the transponder of the given Channel, without disturbing any receiver at priorities higher or equal to Priority.
If no such device is currently available, NULL will be returned.
Definition at line 332 of file device.c.
References GetDevice(), NumDevices(), and Priority().
Referenced by main().
|
virtual |
Returns the Width, Height and PixelAspect ratio the OSD should use to best fit the resolution of the output device.
If PixelAspect is not 1.0, the OSD may take this as a hint to scale its graphics in a way that, e.g., a circle will actually show up as a circle on the screen, and not as an ellipse. Values greater than 1.0 mean to stretch the graphics in the vertical direction (or shrink it in the horizontal direction, depending on which dimension shall be fixed). Values less than 1.0 work the other way round. Note that the OSD is not guaranteed to actually use this hint.
Reimplemented in cDvbSdFfDevice, and cDvbHdFfDevice.
Definition at line 443 of file device.c.
Referenced by cDvbSubtitleConverter::SetOsdData(), and cOsdProvider::UpdateOsdSize().
|
virtual |
Returns the Width, Height and PixelAspect ratio the OSD should use to best fit the resolution of the output device.
If PixelAspect is not 1.0, the OSD may take this as a hint to scale its graphics in a way that, e.g., a circle will actually show up as a circle on the screen, and not as an ellipse. Values greater than 1.0 mean to stretch the graphics in the vertical direction (or shrink it in the horizontal direction, depending on which dimension shall be fixed). Values less than 1.0 work the other way round. Note that the OSD is not guaranteed to actually use this hint.
Reimplemented in cDvbSdFfDevice, and cDvbHdFfDevice.
|
virtual |
Returns a pointer to the device's SPU decoder (or NULL, if this device doesn't have an SPU decoder).
Reimplemented in cDvbHdFfDevice, and cDvbSdFfDevice.
|
virtual |
Returns a pointer to the device's SPU decoder (or NULL, if this device doesn't have an SPU decoder).
Reimplemented in cDvbHdFfDevice, and cDvbSdFfDevice.
Definition at line 206 of file device.c.
Referenced by SetVideoDisplayFormat().
|
virtual |
Gets the current System Time Counter, which can be used to synchronize audio, video and subtitles.
If this device is able to replay, it must provide an STC. The value returned doesn't need to be an actual "clock" value, it is sufficient if it holds the PTS (Presentation Time Stamp) of the most recently presented frame. A proper value must be returned in normal replay mode as well as in any trick modes (like slow motion, fast forward/rewind). Only the lower 32 bit of this value are actually used, since some devices can't handle the msb correctly.
Reimplemented in cDvbHdFfDevice, and cDvbSdFfDevice.
Definition at line 1107 of file device.c.
Referenced by cDvbSubtitleConverter::Action(), and cPlayer::DeviceGetSTC().
|
virtual |
Gets the current System Time Counter, which can be used to synchronize audio, video and subtitles.
If this device is able to replay, it must provide an STC. The value returned doesn't need to be an actual "clock" value, it is sufficient if it holds the PTS (Presentation Time Stamp) of the most recently presented frame. A proper value must be returned in normal replay mode as well as in any trick modes (like slow motion, fast forward/rewind). Only the lower 32 bit of this value are actually used, since some devices can't handle the msb correctly.
Reimplemented in cDvbHdFfDevice, and cDvbSdFfDevice.
const tTrackId * cDevice::GetTrack | ( | eTrackType | Type | ) |
Returns a pointer to the given track id, or NULL if Type is not less than ttMaxTrackTypes.
Definition at line 975 of file device.c.
References availableTracks, ttMaxTrackTypes, and ttNone.
Referenced by cDisplaySubtitleTracks::cDisplaySubtitleTracks(), cDisplayTracks::cDisplayTracks(), cSkinLCARSDisplayChannel::DrawTrack(), cSkinLCARSDisplayReplay::DrawTrack(), EnsureAudioTrack(), EnsureSubtitleTrack(), cSkinSTTNGDisplayChannel::Flush(), cDvbHdFfDevice::SetAudioTrackDevice(), cDvbSdFfDevice::SetAudioTrackDevice(), SetCurrentAudioTrack(), and SetCurrentSubtitleTrack().
const tTrackId* cDevice::GetTrack | ( | eTrackType | Type | ) |
Returns a pointer to the given track id, or NULL if Type is not less than ttMaxTrackTypes.
|
protectedvirtual |
Gets exactly one TS packet from the DVR of this device and returns a pointer to it in Data.
Only the first 188 bytes (TS_SIZE) Data points to are valid and may be accessed. If there is currently no new data available, Data will be set to NULL. The function returns false in case of a non recoverable error, otherwise it returns true, even if Data is NULL.
Reimplemented in cDvbDevice, and cDvbDevice.
|
protectedvirtual |
Gets exactly one TS packet from the DVR of this device and returns a pointer to it in Data.
Only the first 188 bytes (TS_SIZE) Data points to are valid and may be accessed. If there is currently no new data available, Data will be set to NULL. The function returns false in case of a non recoverable error, otherwise it returns true, even if Data is NULL.
Reimplemented in cDvbDevice, and cDvbDevice.
Definition at line 1643 of file device.c.
Referenced by Action().
|
virtual |
Returns the Width, Height and VideoAspect ratio of the currently displayed video material.
Width and Height are given in pixel (e.g. 720x576) and VideoAspect is e.g. 1.33333 for a 4:3 broadcast, or 1.77778 for 16:9. The default implementation returns 0 for Width and Height and 1.0 for VideoAspect.
Reimplemented in cDvbSdFfDevice, and cDvbHdFfDevice.
Definition at line 436 of file device.c.
Referenced by cDvbSubtitleConverter::SetOsdData().
|
virtual |
Returns the Width, Height and VideoAspect ratio of the currently displayed video material.
Width and Height are given in pixel (e.g. 720x576) and VideoAspect is e.g. 1.33333 for a 4:3 broadcast, or 1.77778 for 16:9. The default implementation returns 0 for Width and Height and 1.0 for VideoAspect.
Reimplemented in cDvbSdFfDevice, and cDvbHdFfDevice.
|
virtual |
Returns the video system of the currently displayed material (default is PAL).
Reimplemented in cDvbSdFfDevice, and cDvbHdFfDevice.
Definition at line 431 of file device.c.
References vsPAL.
|
virtual |
Returns the video system of the currently displayed material (default is PAL).
Reimplemented in cDvbSdFfDevice, and cDvbHdFfDevice.
|
virtual |
Grabs the currently visible screen image.
Size | The size of the returned data block. |
Jpeg | If true will write a JPEG file. Otherwise a PNM file will be written. |
Quality | The compression factor for JPEG. 1 will create a very blocky and small image, 70..80 will yield reasonable quality images while keeping the image file size around 50 KB for a full frame. The default will create a big but very high quality image. |
SizeX | The number of horizontal pixels in the frame (default is the current screen width). |
SizeY | The number of vertical pixels in the frame (default is the current screen height). |
Reimplemented in cDvbSdFfDevice, and cDvbHdFfDevice.
|
virtual |
Grabs the currently visible screen image.
Size | The size of the returned data block. |
Jpeg | If true will write a JPEG file. Otherwise a PNM file will be written. |
Quality | The compression factor for JPEG. 1 will create a very blocky and small image, 70..80 will yield reasonable quality images while keeping the image file size around 50 KB for a full frame. The default will create a big but very high quality image. |
SizeX | The number of horizontal pixels in the frame (default is the current screen width). |
SizeY | The number of vertical pixels in the frame (default is the current screen height). |
Reimplemented in cDvbSdFfDevice, and cDvbHdFfDevice.
Definition at line 372 of file device.c.
Referenced by cSVDRP::CmdGRAB(), and GrabImageFile().
bool cDevice::GrabImageFile | ( | const char * | FileName, |
bool | Jpeg = true , |
||
int | Quality = -1 , |
||
int | SizeX = -1 , |
||
int | SizeY = -1 |
||
) |
Calls GrabImage() and stores the resulting image in a file with the given name.
Definition at line 377 of file device.c.
References GrabImage(), isyslog, LOG_ERROR_STR, and safe_write().
bool cDevice::GrabImageFile | ( | const char * | FileName, |
bool | Jpeg = true , |
||
int | Quality = -1 , |
||
int | SizeX = -1 , |
||
int | SizeY = -1 |
||
) |
Calls GrabImage() and stores the resulting image in a file with the given name.
|
virtual |
Returns true if this device has a Common Interface.
Reimplemented in cDvbDevice, and cDvbDevice.
|
virtual |
Returns true if this device has a Common Interface.
Reimplemented in cDvbDevice, and cDvbDevice.
Definition at line 352 of file device.c.
Referenced by GetDevice().
|
virtual |
Tells whether this device has an MPEG decoder.
Reimplemented in cDvbHdFfDevice, and cDvbSdFfDevice.
|
virtual |
Tells whether this device has an MPEG decoder.
Reimplemented in cDvbHdFfDevice, and cDvbSdFfDevice.
Definition at line 201 of file device.c.
Referenced by CanReplay(), and main().
|
inlinevirtual |
Returns true if this device can handle all frames in 'fast forward' trick speeds.
Definition at line 659 of file device.h.
Referenced by cPlayer::DeviceHasIBPTrickSpeed(), PlayPesPacket(), and PlayTs().
|
inlinevirtual |
Returns true if this device can handle all frames in 'fast forward' trick speeds.
Definition at line 659 of file include/vdr/device.h.
|
inlinevirtual |
Returns true if this device handles encrypted channels itself without VDR assistance.
This can be e.g. if the device is a client that gets the stream from another VDR instance that has already decrypted the stream. In this case ProvidesChannel() shall check whether the channel can be decrypted.
Definition at line 418 of file include/vdr/device.h.
|
inlinevirtual |
Returns true if this device handles encrypted channels itself without VDR assistance.
This can be e.g. if the device is a client that gets the stream from another VDR instance that has already decrypted the stream. In this case ProvidesChannel() shall check whether the channel can be decrypted.
Definition at line 418 of file device.h.
Referenced by GetDevice().
|
virtual |
Returns true if the device has a lock on the requested transponder.
Default is true, a specific device implementation may return false to indicate that it is not ready yet. If TimeoutMs is not zero, waits for the given number of milliseconds before returning false.
Reimplemented in cDvbDevice, and cDvbDevice.
|
virtual |
Returns true if the device has a lock on the requested transponder.
Default is true, a specific device implementation may return false to indicate that it is not ready yet. If TimeoutMs is not zero, waits for the given number of milliseconds before returning false.
Reimplemented in cDvbDevice, and cDvbDevice.
Definition at line 848 of file device.c.
Referenced by cSectionHandler::Action(), AttachReceiver(), and cSectionHandler::SetStatus().
|
protected |
Returns true if this device is currently receiving the given PID.
|
protected |
Returns true if this device is currently receiving the given PID.
Definition at line 453 of file device.c.
References MAXPIDHANDLES, and pidHandles.
Referenced by cDvbDevice::ProvidesChannel(), cDvbHdFfDevice::SetChannelDevice(), and cDvbSdFfDevice::SetChannelDevice().
|
virtual |
Returns true if the device is currently showing any programme to the user, either through replaying or live.
|
virtual |
Returns true if the device is currently showing any programme to the user, either through replaying or live.
Definition at line 853 of file device.c.
References cDevice::cPidHandle::pid, pidHandles, ptAudio, ptVideo, and Replaying().
Referenced by main().
|
inline |
Definition at line 560 of file device.h.
References mute.
Referenced by cDvbSdFfDevice::SetDigitalAudioDevice().
|
inline |
Definition at line 560 of file include/vdr/device.h.
References mute.
|
inlinevirtual |
Definition at line 656 of file device.h.
References isPlayingVideo.
Referenced by cPlayer::DeviceIsPlayingVideo().
|
inlinevirtual |
Definition at line 656 of file include/vdr/device.h.
References isPlayingVideo.
|
inline |
Definition at line 199 of file include/vdr/device.h.
References primaryDevice.
|
inline |
Definition at line 199 of file device.h.
References primaryDevice.
Referenced by GetDevice(), cDvbSdFfDevice::GetSpuDecoder(), cDvbHdFfDevice::GetSpuDecoder(), main(), Priority(), SetChannel(), cDvbTuner::SetChannel(), cDvbHdFfDevice::SetChannelDevice(), cDvbSdFfDevice::SetChannelDevice(), and StopReplay().
|
virtual |
Returns true if this device is currently tuned to the given Channel's transponder.
Reimplemented in cDvbDevice, and cDvbDevice.
Definition at line 683 of file device.c.
Referenced by main().
|
virtual |
Returns true if this device is currently tuned to the given Channel's transponder.
Reimplemented in cDvbDevice, and cDvbDevice.
|
protectedvirtual |
Informs a device that it will be the primary device.
If there is anything the device needs to set up when it becomes the primary device (On = true) or to shut down when it no longer is the primary device (On = false), it should do so in this function. A derived class must call the MakePrimaryDevice() function of its base class.
Reimplemented in cDvbHdFfDevice, and cDvbSdFfDevice.
|
protectedvirtual |
Informs a device that it will be the primary device.
If there is anything the device needs to set up when it becomes the primary device (On = true) or to shut down when it no longer is the primary device (On = false), it should do so in this function. A derived class must call the MakePrimaryDevice() function of its base class.
Reimplemented in cDvbHdFfDevice, and cDvbSdFfDevice.
Definition at line 176 of file device.c.
References DELETENULL(), dvbSubtitleConverter, and liveSubtitle.
Referenced by SetPrimaryDevice().
|
virtual |
Returns true if it is ok to switch to the Channel's transponder on this device, without disturbing any other activities.
If an occupied timeout has been set for this device, and that timeout has not yet expired, this function returns false,
Reimplemented in cDvbDevice, and cDvbDevice.
Definition at line 688 of file device.c.
References occupiedTimeout, cDevice::cPidHandle::pid, pidHandles, ptAudio, ptDolby, ptVideo, and Receiving().
Referenced by cEITScanner::Process().
|
virtual |
Returns true if it is ok to switch to the Channel's transponder on this device, without disturbing any other activities.
If an occupied timeout has been set for this device, and that timeout has not yet expired, this function returns false,
Reimplemented in cDvbDevice, and cDvbDevice.
|
virtual |
Turns off audio while replaying.
A derived class must call the base class function to make sure all registered cAudio objects are notified.
Reimplemented in cDvbHdFfDevice, and cDvbSdFfDevice.
Definition at line 1137 of file device.c.
References Audios, and cAudios::MuteAudio().
Referenced by cPlayer::DeviceMute().
|
virtual |
Turns off audio while replaying.
A derived class must call the base class function to make sure all registered cAudio objects are notified.
Reimplemented in cDvbHdFfDevice, and cDvbSdFfDevice.
|
staticprotected |
Calculates the next card index.
Each device in a given machine must have a unique card index, which will be used to identify the device for assigning Ca parameters and deciding whether to actually use that device in this particular instance of VDR. Every time a new cDevice is created, it will be given the current nextCardIndex, and then nextCardIndex will be automatically incremented by 1. A derived class can determine whether a given device shall be used by checking UseDevice(NextCardIndex()). If a device is skipped, or if there are possible device indexes left after a derived class has set up all its devices, NextCardIndex(n) must be called, where n is the number of card indexes to skip.
|
staticprotected |
Calculates the next card index.
Each device in a given machine must have a unique card index, which will be used to identify the device for assigning Ca parameters and deciding whether to actually use that device in this particular instance of VDR. Every time a new cDevice is created, it will be given the current nextCardIndex, and then nextCardIndex will be automatically incremented by 1. A derived class can determine whether a given device shall be used by checking UseDevice(NextCardIndex()). If a device is skipped, or if there are possible device indexes left after a derived class has set up all its devices, NextCardIndex(n) must be called, where n is the number of card indexes to skip.
Definition at line 145 of file device.c.
References esyslog, MAXDEVICES, and nextCardIndex.
Referenced by cDvbDevice::Initialize().
int cDevice::NumAudioTracks | ( | void | ) | const |
Returns the number of audio tracks that are currently available.
This is just for information, to quickly find out whether there is more than one audio track.
Definition at line 990 of file device.c.
References NumTracks(), ttAudioFirst, and ttDolbyLast.
Referenced by SetAvailableTrack().
int cDevice::NumAudioTracks | ( | void | ) | const |
Returns the number of audio tracks that are currently available.
This is just for information, to quickly find out whether there is more than one audio track.
|
inlinestatic |
Returns the total number of devices.
Definition at line 113 of file include/vdr/device.h.
References numDevices.
|
inlinestatic |
Returns the total number of devices.
Definition at line 113 of file device.h.
References numDevices.
Referenced by cDvbDevice::BondDevices(), cRecordControl::cRecordControl(), cSkinLCARSDisplayMenu::DrawDevices(), cSkinLCARSDisplayMenu::DrawSignals(), cSkinLCARSDisplayMenu::DrawTimers(), GetDeviceForTransponder(), main(), cEITScanner::Process(), cMenuSetupDVB::Setup(), cMenuSetupLNB::Setup(), and cDvbDevice::UnBondDevices().
|
virtual |
Returns the number of individual "delivery systems" this device provides.
The default implementation returns 0, so any derived class that can actually provide channels must implement this function. The result of this function is used when selecting a device, in order to avoid devices that provide more than one system.
Reimplemented in cDvbDevice, and cDvbDevice.
|
virtual |
Returns the number of individual "delivery systems" this device provides.
The default implementation returns 0, so any derived class that can actually provide channels must implement this function. The result of this function is used when selecting a device, in order to avoid devices that provide more than one system.
Reimplemented in cDvbDevice, and cDvbDevice.
Definition at line 663 of file device.c.
Referenced by GetClippedNumProvidedSystems().
int cDevice::NumSubtitleTracks | ( | void | ) | const |
Returns the number of subtitle tracks that are currently available.
Definition at line 995 of file device.c.
References NumTracks(), ttSubtitleFirst, and ttSubtitleLast.
int cDevice::NumSubtitleTracks | ( | void | ) | const |
Returns the number of subtitle tracks that are currently available.
int cDevice::NumTracks | ( | eTrackType | FirstTrack, |
eTrackType | LastTrack | ||
) | const |
Returns the number of tracks in the given range that are currently available.
Definition at line 980 of file device.c.
References availableTracks.
Referenced by NumAudioTracks(), and NumSubtitleTracks().
int cDevice::NumTracks | ( | eTrackType | FirstTrack, |
eTrackType | LastTrack | ||
) | const |
Returns the number of tracks in the given range that are currently available.
int cDevice::Occupied | ( | void | ) | const |
Returns the number of seconds this device is still occupied for.
Definition at line 831 of file device.c.
References occupiedTimeout.
int cDevice::Occupied | ( | void | ) | const |
Returns the number of seconds this device is still occupied for.
|
protectedvirtual |
Opens the DVR of this device and prepares it to deliver a Transport Stream for use in a cReceiver.
Reimplemented in cDvbDevice, and cDvbDevice.
Definition at line 1634 of file device.c.
Referenced by Action().
|
protectedvirtual |
Opens the DVR of this device and prepares it to deliver a Transport Stream for use in a cReceiver.
Reimplemented in cDvbDevice, and cDvbDevice.
|
virtual |
Opens a file handle for the given filter data.
A derived device that provides section data must implement this function.
Reimplemented in cDvbDevice, and cDvbDevice.
|
virtual |
Opens a file handle for the given filter data.
A derived device that provides section data must implement this function.
Reimplemented in cDvbDevice, and cDvbDevice.
Definition at line 596 of file device.c.
Referenced by cSectionHandler::Add().
|
inlineprotected |
Returns a pointer to the patPmtParser, so that a derived device can use the stream information from it.
Definition at line 585 of file device.h.
References patPmtParser.
Referenced by cDvbHdFfDevice::PlayTsAudio(), cDvbHdFfDevice::PlayTsVideo(), and cDvbHdFfDevice::StillPicture().
|
inlineprotected |
Returns a pointer to the patPmtParser, so that a derived device can use the stream information from it.
Definition at line 585 of file include/vdr/device.h.
References patPmtParser.
|
virtual |
Sets the device into play mode (after a previous trick mode).
Reimplemented in cDvbHdFfDevice, and cDvbSdFfDevice.
Definition at line 1123 of file device.c.
References Audios, dvbSubtitleConverter, cDvbSubtitleConverter::Freeze(), mute, and cAudios::MuteAudio().
Referenced by cPlayer::DevicePlay().
|
virtual |
Sets the device into play mode (after a previous trick mode).
Reimplemented in cDvbHdFfDevice, and cDvbSdFfDevice.
Plays the given data block as audio.
Data points to exactly one complete PES packet of the given Length. Id indicates the type of audio data this packet holds. PlayAudio() shall process the packet either as a whole (returning Length) or not at all (returning 0 or -1 and setting 'errno' accordingly).
Reimplemented in cDvbHdFfDevice, and cDvbSdFfDevice.
Definition at line 1273 of file device.c.
Referenced by PlayPesPacket(), and PlayTsAudio().
Plays the given data block as audio.
Data points to exactly one complete PES packet of the given Length. Id indicates the type of audio data this packet holds. PlayAudio() shall process the packet either as a whole (returning Length) or not at all (returning 0 or -1 and setting 'errno' accordingly).
Reimplemented in cDvbHdFfDevice, and cDvbSdFfDevice.
|
virtual |
Plays all valid PES packets in Data with the given Length.
If Data is NULL any leftover data from a previous call will be discarded. If VideoOnly is true, only the video will be displayed, which is necessary for trick modes like 'fast forward'. Data should point to a sequence of complete PES packets. If the last packet in Data is not complete, it will be copied and combined to a complete packet with data from the next call to PlayPes(). That way any functions called from within PlayPes() will be guaranteed to always receive complete PES packets.
|
virtual |
Plays all valid PES packets in Data with the given Length.
If Data is NULL any leftover data from a previous call will be discarded. If VideoOnly is true, only the video will be displayed, which is necessary for trick modes like 'fast forward'. Data should point to a sequence of complete PES packets. If the last packet in Data is not complete, it will be copied and combined to a complete packet with data from the next call to PlayPes(). That way any functions called from within PlayPes() will be guaranteed to always receive complete PES packets.
Definition at line 1391 of file device.c.
References dvbSubtitleConverter, esyslog, PesLength(), PlayPesPacket(), and cDvbSubtitleConverter::Reset().
Referenced by cPlayer::PlayPes().
|
protectedvirtual |
Plays the single PES packet in Data with the given Length.
If VideoOnly is true, only the video will be displayed, which is necessary for trick modes like 'fast forward'. Data must point to one single, complete PES packet.
|
protectedvirtual |
Plays the single PES packet in Data with the given Length.
If VideoOnly is true, only the video will be displayed, which is necessary for trick modes like 'fast forward'. Data must point to one single, complete PES packet.
Definition at line 1285 of file device.c.
References Audios, availableTracks, ClrAvailableTracks(), currentAudioTrack, currentSubtitleTrack, dsyslog, esyslog, HasIBPTrickSpeed(), cVDRTtxtsubsHookListener::Hook(), isPlayingVideo, MIN_PRE_1_3_19_PRIVATESTREAM, mutexCurrentAudioTrack, cAudios::PlayAudio(), PlayAudio(), cVDRTtxtsubsHookListener::PlayerTeletextData(), PlaySubtitle(), PlayVideo(), pre_1_3_19_PrivateStream, SetAvailableTrack(), Setup, cThread::Start(), ttAudio, ttDolby, ttNone, ttSubtitle, and cSetup::UseDolbyDigital.
Referenced by PlayPes().
|
protectedvirtual |
Plays the given data block as a subtitle.
Data points to exactly one complete PES packet of the given Length. PlaySubtitle() shall process the packet either as a whole (returning Length) or not at all (returning 0 or -1 and setting 'errno' accordingly).
|
protectedvirtual |
Plays the given data block as a subtitle.
Data points to exactly one complete PES packet of the given Length. PlaySubtitle() shall process the packet either as a whole (returning Length) or not at all (returning 0 or -1 and setting 'errno' accordingly).
Definition at line 1278 of file device.c.
References cDvbSubtitleConverter::ConvertFragments(), and dvbSubtitleConverter.
Referenced by PlayPesPacket().
|
virtual |
Plays the given TS packet.
If VideoOnly is true, only the video will be displayed, which is necessary for trick modes like 'fast forward'. Data points to a single TS packet, Length is always TS_SIZE (the total size of a single TS packet). If Data is NULL any leftover data from a previous call will be discarded. A derived device can reimplement this function to handle the TS packets itself. Any packets the derived function can't handle must be sent to the base class function. This applies especially to the PAT/PMT packets. Returns -1 in case of error, otherwise the number of actually processed bytes is returned. PlayTs() shall process the TS packets either as a whole (returning n*TS_SIZE) or not at all, returning 0 or -1 and setting 'errno' accordingly).
Definition at line 1469 of file device.c.
References Audios, availableTracks, currentAudioTrack, currentSubtitleTrack, esyslog, cTsToPes::GetPes(), HasIBPTrickSpeed(), cVDRTtxtsubsHookListener::Hook(), isPlayingVideo, mutexCurrentAudioTrack, cPatPmtParser::ParsePat(), cPatPmtParser::ParsePmt(), patPmtParser, cVDRTtxtsubsHookListener::PlayerTeletextData(), cAudios::PlayTsAudio(), PlayTsAudio(), PlayTsSubtitle(), PlayTsVideo(), cPatPmtParser::PmtPid(), cPatPmtParser::Ppid(), cTsToPes::PutTs(), cTsToPes::Reset(), cPatPmtParser::TeletextSubtitlePages(), cPatPmtParser::TotalTeletextSubtitlePages(), cPatPmtParser::Tpid(), TS_SIZE, TS_SYNC_BYTE, TsHasPayload(), TsPayloadOffset(), TsPid(), tsToPesAudio, tsToPesSubtitle, tsToPesTeletext, tsToPesVideo, and cPatPmtParser::Vpid().
Referenced by Detach(), cPlayer::PlayTs(), and cLiveSubtitle::Receive().
|
virtual |
Plays the given TS packet.
If VideoOnly is true, only the video will be displayed, which is necessary for trick modes like 'fast forward'. Data points to a single TS packet, Length is always TS_SIZE (the total size of a single TS packet). If Data is NULL any leftover data from a previous call will be discarded. A derived device can reimplement this function to handle the TS packets itself. Any packets the derived function can't handle must be sent to the base class function. This applies especially to the PAT/PMT packets. Returns -1 in case of error, otherwise the number of actually processed bytes is returned. PlayTs() shall process the TS packets either as a whole (returning n*TS_SIZE) or not at all, returning 0 or -1 and setting 'errno' accordingly).
|
protectedvirtual |
Plays the given data block as audio.
Data points to exactly one complete TS packet of the given Length (which is always TS_SIZE). PlayTsAudio() shall process the packet either as a whole (returning Length) or not at all (returning 0 or -1 and setting 'errno' accordingly). The default implementation collects all incoming TS payload belonging to one PES packet and calls PlayAudio() with the resulting packet.
Reimplemented in cDvbHdFfDevice, and cDvbSdFfDevice.
Definition at line 1439 of file device.c.
References cTsToPes::GetPes(), PlayAudio(), cTsToPes::PutTs(), cTsToPes::Reset(), cTsToPes::SetRepeatLast(), and tsToPesAudio.
Referenced by PlayTs().
|
protectedvirtual |
Plays the given data block as audio.
Data points to exactly one complete TS packet of the given Length (which is always TS_SIZE). PlayTsAudio() shall process the packet either as a whole (returning Length) or not at all (returning 0 or -1 and setting 'errno' accordingly). The default implementation collects all incoming TS payload belonging to one PES packet and calls PlayAudio() with the resulting packet.
Reimplemented in cDvbHdFfDevice, and cDvbSdFfDevice.
|
protectedvirtual |
Plays the given data block as a subtitle.
Data points to exactly one complete TS packet of the given Length (which is always TS_SIZE). PlayTsSubtitle() shall process the packet either as a whole (returning Length) or not at all (returning 0 or -1 and setting 'errno' accordingly). The default implementation collects all incoming TS payload belonging to one PES packet and displays the resulting subtitle via the OSD.
|
protectedvirtual |
Plays the given data block as a subtitle.
Data points to exactly one complete TS packet of the given Length (which is always TS_SIZE). PlayTsSubtitle() shall process the packet either as a whole (returning Length) or not at all (returning 0 or -1 and setting 'errno' accordingly). The default implementation collects all incoming TS payload belonging to one PES packet and displays the resulting subtitle via the OSD.
Definition at line 1455 of file device.c.
References cDvbSubtitleConverter::Convert(), dvbSubtitleConverter, cTsToPes::GetPes(), cTsToPes::PutTs(), cTsToPes::Reset(), and tsToPesSubtitle.
Referenced by PlayTs().
|
protectedvirtual |
Plays the given data block as video.
Data points to exactly one complete TS packet of the given Length (which is always TS_SIZE). PlayTsVideo() shall process the packet either as a whole (returning Length) or not at all (returning 0 or -1 and setting 'errno' accordingly). The default implementation collects all incoming TS payload belonging to one PES packet and calls PlayVideo() with the resulting packet.
Reimplemented in cDvbHdFfDevice, and cDvbSdFfDevice.
|
protectedvirtual |
Plays the given data block as video.
Data points to exactly one complete TS packet of the given Length (which is always TS_SIZE). PlayTsVideo() shall process the packet either as a whole (returning Length) or not at all (returning 0 or -1 and setting 'errno' accordingly). The default implementation collects all incoming TS payload belonging to one PES packet and calls PlayVideo() with the resulting packet.
Reimplemented in cDvbHdFfDevice, and cDvbSdFfDevice.
Definition at line 1420 of file device.c.
References cTsToPes::GetPes(), PlayVideo(), cTsToPes::PutTs(), cTsToPes::Reset(), cTsToPes::SetRepeatLast(), TsPayloadStart(), and tsToPesVideo.
Referenced by PlayTs().
|
protectedvirtual |
Plays the given data block as video.
Data points to exactly one complete PES packet of the given Length. PlayVideo() shall process the packet either as a whole (returning Length) or not at all (returning 0 or -1 and setting 'errno' accordingly).
Reimplemented in cDvbHdFfDevice, and cDvbSdFfDevice.
Definition at line 1268 of file device.c.
Referenced by PlayPesPacket(), and PlayTsVideo().
|
protectedvirtual |
Plays the given data block as video.
Data points to exactly one complete PES packet of the given Length. PlayVideo() shall process the packet either as a whole (returning Length) or not at all (returning 0 or -1 and setting 'errno' accordingly).
Reimplemented in cDvbHdFfDevice, and cDvbSdFfDevice.
|
virtual |
Returns true if the device itself or any of the file handles in Poller is ready for further action.
If TimeoutMs is not zero, the device will wait up to the given number of milliseconds before returning in case it can't accept any data.
Reimplemented in cDvbHdFfDevice, and cDvbSdFfDevice.
|
virtual |
Returns true if the device itself or any of the file handles in Poller is ready for further action.
If TimeoutMs is not zero, the device will wait up to the given number of milliseconds before returning in case it can't accept any data.
Reimplemented in cDvbHdFfDevice, and cDvbSdFfDevice.
Definition at line 1258 of file device.c.
Referenced by cPlayer::DevicePoll().
|
inlinestatic |
Returns the primary device.
Definition at line 132 of file include/vdr/device.h.
References primaryDevice.
|
inlinestatic |
Returns the primary device.
Definition at line 132 of file device.h.
References primaryDevice.
Referenced by cDvbSubtitleConverter::Action(), ActualDevice(), cControl::Attach(), cDisplaySubtitleTracks::cDisplaySubtitleTracks(), cDisplayTracks::cDisplayTracks(), cDisplayVolume::cDisplayVolume(), cSVDRP::CmdCHAN(), cSVDRP::CmdDELC(), cSVDRP::CmdGRAB(), cSVDRP::CmdMOVC(), cSVDRP::CmdVOLU(), cDisplayTracks::Create(), cDisplaySubtitleTracks::Create(), cRecordControl::cRecordControl(), cMenuChannels::Delete(), cSkinLCARSDisplayMenu::DrawLiveIndicator(), cSkinLCARSDisplayChannel::DrawTrack(), cSkinLCARSDisplayReplay::DrawTrack(), cSkinSTTNGDisplayChannel::Flush(), cSkinLCARSDisplayMenu::Flush(), main(), cMenuChannels::Move(), cPatPmtParser::ParsePmt(), Priority(), cEITScanner::Process(), cDisplayVolume::ProcessKey(), cDisplayTracks::ProcessKey(), cDisplaySubtitleTracks::ProcessKey(), cMenuSetupDVB::ProcessKey(), cLiveSubtitle::Receive(), cMenuRecordings::Rewind(), cDvbTuner::SetChannel(), cDvbSubtitleConverter::SetOsdData(), SetTrackDescriptions(), cDisplayVolume::Show(), cMenuChannels::Switch(), cMenuWhatsOn::Switch(), SwitchChannel(), cChannels::SwitchTo(), and cOsdProvider::UpdateOsdSize().
int cDevice::Priority | ( | void | ) | const |
Returns the priority of the current receiving session (-MAXPRIORITY..MAXPRIORITY), or IDLEPRIORITY if no receiver is currently active.
Definition at line 1550 of file device.c.
References ActualDevice(), IDLEPRIORITY, IsPrimaryDevice(), max(), MAXRECEIVERS, mutexReceiver, PrimaryDevice(), receiver, Replaying(), and TRANSFERPRIORITY.
Referenced by GetDevice(), GetDeviceForTransponder(), cCamSlot::Priority(), cEITScanner::Process(), and cDvbDevice::ProvidesChannel().
int cDevice::Priority | ( | void | ) | const |
Returns the priority of the current receiving session (-MAXPRIORITY..MAXPRIORITY), or IDLEPRIORITY if no receiver is currently active.
|
virtual |
Returns true if this device can provide the given channel.
In case the device has cReceivers attached to it, Priority is used to decide whether the caller's request can be honored. The special Priority value IDLEPRIORITY will tell the caller whether this device is principally able to provide the given Channel, regardless of any attached cReceivers. If NeedsDetachReceivers is given, the resulting value in it will tell the caller whether or not it will have to detach any currently attached receivers from this device before calling SwitchChannel. Note that the return value in NeedsDetachReceivers is only meaningful if the function itself actually returns true. The default implementation always returns false, so a derived cDevice class that can provide channels must implement this function.
Reimplemented in cDvbDevice, and cDvbDevice.
Definition at line 653 of file device.c.
Referenced by GetDevice().
|
virtual |
Returns true if this device can provide the given channel.
In case the device has cReceivers attached to it, Priority is used to decide whether the caller's request can be honored. The special Priority value IDLEPRIORITY will tell the caller whether this device is principally able to provide the given Channel, regardless of any attached cReceivers. If NeedsDetachReceivers is given, the resulting value in it will tell the caller whether or not it will have to detach any currently attached receivers from this device before calling SwitchChannel. Note that the return value in NeedsDetachReceivers is only meaningful if the function itself actually returns true. The default implementation always returns false, so a derived cDevice class that can provide channels must implement this function.
Reimplemented in cDvbDevice, and cDvbDevice.
|
virtual |
Returns true if this device provides EIT data and thus wants to be tuned to the channels it can receive regularly to update the data.
The default implementation returns false.
Reimplemented in cDvbDevice, and cDvbDevice.
|
virtual |
Returns true if this device provides EIT data and thus wants to be tuned to the channels it can receive regularly to update the data.
The default implementation returns false.
Reimplemented in cDvbDevice, and cDvbDevice.
Definition at line 658 of file device.c.
Referenced by cEITScanner::Process().
|
virtual |
Returns true if this device can provide the given source.
Reimplemented in cDvbDevice, cDvbDevice, and cDvbSdFfDevice.
|
virtual |
Returns true if this device can provide the given source.
Reimplemented in cDvbDevice, cDvbDevice, and cDvbSdFfDevice.
Definition at line 623 of file device.c.
Referenced by cMenuSetupLNB::Setup().
|
virtual |
Returns true if this device can provide the transponder of the given Channel (which implies that it can provide the Channel's source).
Reimplemented in cDvbDevice, and cDvbDevice.
|
virtual |
Returns true if this device can provide the transponder of the given Channel (which implies that it can provide the Channel's source).
Reimplemented in cDvbDevice, and cDvbDevice.
Definition at line 639 of file device.c.
Referenced by main(), cEITScanner::Process(), and ProvidesTransponderExclusively().
|
virtual |
Returns true if this is the only device that is able to provide the given channel's transponder.
|
virtual |
Returns true if this is the only device that is able to provide the given channel's transponder.
Definition at line 644 of file device.c.
References device, numDevices, and ProvidesTransponder().
Referenced by cEITScanner::Process().
|
virtual |
Reads data from a handle for the given filter.
A derived class need not implement this function, because this is done by the default implementation.
|
virtual |
Reads data from a handle for the given filter.
A derived class need not implement this function, because this is done by the default implementation.
Definition at line 601 of file device.c.
References safe_read().
Referenced by cSectionHandler::Action().
|
protectedvirtual |
Returns true if this device is ready.
Devices with conditional access hardware may need some time until they are up and running. This function is called in a loop at startup until all devices are ready (see WaitForAllDevicesReady()).
Reimplemented in cDvbDevice, and cDvbDevice.
|
protectedvirtual |
Returns true if this device is ready.
Devices with conditional access hardware may need some time until they are up and running. This function is called in a loop at startup until all devices are ready (see WaitForAllDevicesReady()).
Reimplemented in cDvbDevice, and cDvbDevice.
Definition at line 1563 of file device.c.
Referenced by WaitForAllDevicesReady().
bool cDevice::Receiving | ( | bool | Dummy = false | ) | const |
Returns true if we are currently receiving. The parameter has no meaning (for backwards compatibility only).
Definition at line 1568 of file device.c.
References MAXRECEIVERS, mutexReceiver, and receiver.
Referenced by GetDevice(), MaySwitchTransponder(), cDvbDevice::ProvidesChannel(), and cRcuRemote::Recording().
bool cDevice::Receiving | ( | bool | Dummy = false | ) | const |
Returns true if we are currently receiving. The parameter has no meaning (for backwards compatibility only).
bool cDevice::Replaying | ( | void | ) | const |
Returns true if we are currently replaying.
bool cDevice::Replaying | ( | void | ) | const |
Returns true if we are currently replaying.
Definition at line 1201 of file device.c.
References player.
Referenced by cSVDRP::CmdDELC(), cSVDRP::CmdMOVC(), cMenuChannels::Delete(), cSkinLCARSDisplayMenu::DrawLiveIndicator(), cSkinLCARSDisplayMenu::Flush(), HasProgramme(), main(), cMenuChannels::Move(), Priority(), and SetCurrentSubtitleTrack().
void cDevice::SetAudioChannel | ( | int | AudioChannel | ) |
Sets the audio channel to stereo (0), mono left (1) or mono right (2).
Any other values will be silently ignored.
void cDevice::SetAudioChannel | ( | int | AudioChannel | ) |
Sets the audio channel to stereo (0), mono left (1) or mono right (2).
Any other values will be silently ignored.
Definition at line 906 of file device.c.
References SetAudioChannelDevice().
Referenced by ClrAvailableTracks(), EnsureAudioTrack(), and cDisplayTracks::ProcessKey().
|
protectedvirtual |
Sets the audio channel to stereo (0), mono left (1) or mono right (2).
Reimplemented in cDvbSdFfDevice, and cDvbHdFfDevice.
|
protectedvirtual |
Sets the audio channel to stereo (0), mono left (1) or mono right (2).
Reimplemented in cDvbSdFfDevice, and cDvbHdFfDevice.
Definition at line 863 of file device.c.
Referenced by SetAudioChannel().
|
protectedvirtual |
Sets the current audio track to the given value.
Reimplemented in cDvbSdFfDevice, and cDvbHdFfDevice.
Definition at line 875 of file device.c.
Referenced by SetCurrentAudioTrack().
|
protectedvirtual |
Sets the current audio track to the given value.
Reimplemented in cDvbSdFfDevice, and cDvbHdFfDevice.
bool cDevice::SetAvailableTrack | ( | eTrackType | Type, |
int | Index, | ||
uint16_t | Id, | ||
const char * | Language = NULL , |
||
const char * | Description = NULL |
||
) |
Sets the track of the given Type and Index to the given values.
Type must be one of the basic eTrackType values, like ttAudio or ttDolby. Index tells which track of the given basic type is meant. If Id is 0 any existing id will be left untouched and only the given Language and Description will be set.
bool cDevice::SetAvailableTrack | ( | eTrackType | Type, |
int | Index, | ||
uint16_t | Id, | ||
const char * | Language = NULL , |
||
const char * | Description = NULL |
||
) |
Sets the track of the given Type and Index to the given values.
Type must be one of the basic eTrackType values, like ttAudio or ttDolby. Index tells which track of the given basic type is meant. If Id is 0 any existing id will be left untouched and only the given Language and Description will be set.
Definition at line 946 of file device.c.
References autoSelectPreferredSubtitleLanguage, availableTracks, currentAudioTrack, currentAudioTrackMissingCount, cThread::description, EnsureAudioTrack(), EnsureSubtitleTrack(), esyslog, tTrackId::id, IS_AUDIO_TRACK, IS_DOLBY_TRACK, IS_SUBTITLE_TRACK, NumAudioTracks(), strn0cpy(), ttAudio, ttDolby, ttSubtitle, and Utf8Strn0Cpy().
Referenced by cPlayer::DeviceSetAvailableTrack(), cPatPmtParser::ParsePmt(), PlayPesPacket(), SetChannel(), and SetTrackDescriptions().
void cDevice::SetCamSlot | ( | cCamSlot * | CamSlot | ) |
Sets the given CamSlot to be used with this device.
void cDevice::SetCamSlot | ( | cCamSlot * | CamSlot | ) |
Sets the given CamSlot to be used with this device.
Definition at line 357 of file device.c.
References camSlot, and CamSlot().
Referenced by cCamSlot::Assign().
|
private |
Sets the device to the given channel (general setup).
Definition at line 744 of file device.c.
References cCamSlot::AddChannel(), cChannel::Alang(), cChannel::Apid(), camSlot, CanReplay(), Channels, ClrAvailableTracks(), currentChannel, DELETENULL(), cChannel::Dlang(), cChannel::Dpid(), dvbSubtitleConverter, EnsureAudioTrack(), EnsureSubtitleTrack(), GetDevice(), IsPrimaryDevice(), cControl::Launch(), LIVEPRIORITY, liveSubtitle, cRwLock::Lock(), MAXAPIDS, MAXDPIDS, MAXSPIDS, cStatus::MsgChannelSwitch(), cChannel::Number(), scrFailed, scrNotAvailable, scrNoTransfer, scrOk, sectionHandler, SetAvailableTrack(), cSectionHandler::SetChannel(), SetChannel(), SetChannelDevice(), cSectionHandler::SetStatus(), Setup, cChannel::Slang(), cChannel::Spid(), cCamSlot::StartDecrypting(), StopReplay(), ttAudio, ttDolby, ttSubtitle, cRwLock::Unlock(), and cSetup::UseDolbyDigital.
Referenced by SetChannel(), and SwitchChannel().
|
private |
Sets the device to the given channel (general setup).
|
protectedvirtual |
Sets the device to the given channel (actual physical setup).
Reimplemented in cDvbDevice, cDvbDevice, cDvbSdFfDevice, and cDvbHdFfDevice.
Definition at line 843 of file device.c.
Referenced by ForceTransferMode(), and SetChannel().
|
protectedvirtual |
Sets the device to the given channel (actual physical setup).
Reimplemented in cDvbDevice, cDvbDevice, cDvbSdFfDevice, and cDvbHdFfDevice.
bool cDevice::SetCurrentAudioTrack | ( | eTrackType | Type | ) |
Sets the current audio track to the given Type.
bool cDevice::SetCurrentAudioTrack | ( | eTrackType | Type | ) |
Sets the current audio track to the given Type.
Definition at line 1000 of file device.c.
References currentAudioTrack, GetTrack(), IS_AUDIO_TRACK, IS_DOLBY_TRACK, mutexCurrentAudioTrack, player, cPlayer::SetAudioTrack(), SetAudioTrackDevice(), SetDigitalAudioDevice(), ttDolbyLast, and ttNone.
Referenced by cPlayer::DeviceSetCurrentAudioTrack(), EnsureAudioTrack(), and cDisplayTracks::ProcessKey().
|
inlinestatic |
Sets the number of the current channel on the primary device, without actually switching to it.
This can be used to correct the current channel number while replaying.
Definition at line 315 of file device.h.
References currentChannel, and cChannel::Number().
Referenced by cSVDRP::CmdDELC(), cSVDRP::CmdMOVC(), cMenuChannels::Delete(), and cMenuChannels::Move().
|
inlinestatic |
Sets the number of the current channel on the primary device, without actually switching to it.
This can be used to correct the current channel number while replaying.
Definition at line 315 of file include/vdr/device.h.
References currentChannel, and cChannel::Number().
bool cDevice::SetCurrentSubtitleTrack | ( | eTrackType | Type, |
bool | Manual = false |
||
) |
Sets the current subtitle track to the given Type.
IF Manual is true, no automatic preferred subtitle language selection will be done for the rest of the current replay session, or until the channel is changed.
Definition at line 1018 of file device.c.
References AttachReceiver(), autoSelectPreferredSubtitleLanguage, cLiveSubtitle, currentSubtitleTrack, DELETENULL(), dvbSubtitleConverter, GetTrack(), tTrackId::id, IS_SUBTITLE_TRACK, liveSubtitle, mutexCurrentSubtitleTrack, player, Replaying(), cDvbSubtitleConverter::Reset(), cPlayer::SetSubtitleTrack(), SetSubtitleTrackDevice(), Transferring(), and ttNone.
Referenced by cPlayer::DeviceSetCurrentSubtitleTrack(), EnsureSubtitleTrack(), and cDisplaySubtitleTracks::ProcessKey().
bool cDevice::SetCurrentSubtitleTrack | ( | eTrackType | Type, |
bool | Manual = false |
||
) |
Sets the current subtitle track to the given Type.
IF Manual is true, no automatic preferred subtitle language selection will be done for the rest of the current replay session, or until the channel is changed.
|
protectedvirtual |
Tells the actual device that digital audio output shall be switched on or off.
Reimplemented in cDvbSdFfDevice, and cDvbHdFfDevice.
|
protectedvirtual |
Tells the actual device that digital audio output shall be switched on or off.
Reimplemented in cDvbSdFfDevice, and cDvbHdFfDevice.
Definition at line 871 of file device.c.
Referenced by SetCurrentAudioTrack().
void cDevice::SetOccupied | ( | int | Seconds | ) |
Sets the occupied timeout for this device to the given number of Seconds, This can be used to tune a device to a particular transponder and make sure it will stay there for a certain amount of time, for instance to collect EPG data.
This function shall only be called after the device has been successfully tuned to the requested transponder. Seconds will be silently limited to MAXOCCUPIEDTIMEOUT. Values less than 0 will be silently ignored.
void cDevice::SetOccupied | ( | int | Seconds | ) |
Sets the occupied timeout for this device to the given number of Seconds, This can be used to tune a device to a particular transponder and make sure it will stay there for a certain amount of time, for instance to collect EPG data.
This function shall only be called after the device has been successfully tuned to the requested transponder. Seconds will be silently limited to MAXOCCUPIEDTIMEOUT. Values less than 0 will be silently ignored.
Definition at line 837 of file device.c.
References MAXOCCUPIEDTIMEOUT, min(), and occupiedTimeout.
Referenced by main().
|
protectedvirtual |
Does the actual PID setting on this device.
On indicates whether the PID shall be added or deleted. Handle->handle can be used by the device to store information it needs to receive this PID (for instance a file handle). Handle->used indicates how many receivers are using this PID. Type indicates some special types of PIDs, which the device may need to set in a specific way.
Reimplemented in cDvbDevice, cDvbDevice, cDvbSdFfDevice, and cDvbHdFfDevice.
|
protectedvirtual |
Does the actual PID setting on this device.
On indicates whether the PID shall be added or deleted. Handle->handle can be used by the device to store information it needs to receive this PID (for instance a file handle). Handle->used indicates how many receivers are using this PID. Type indicates some special types of PIDs, which the device may need to set in a specific way.
Reimplemented in cDvbDevice, cDvbDevice, cDvbSdFfDevice, and cDvbHdFfDevice.
|
protectedvirtual |
Sets the device into the given play mode.
Reimplemented in cDvbHdFfDevice, and cDvbSdFfDevice.
Definition at line 1102 of file device.c.
Referenced by AttachPlayer(), and Detach().
|
protectedvirtual |
Sets the device into the given play mode.
Reimplemented in cDvbHdFfDevice, and cDvbSdFfDevice.
|
static |
Sets the primary device to 'n'.
n | must be in the range 1...numDevices. |
|
static |
Sets the primary device to 'n'.
n | must be in the range 1...numDevices. |
Definition at line 184 of file device.c.
References cSetup::CurrentVolume, device, esyslog, isyslog, MakePrimaryDevice(), numDevices, primaryDevice, Setup, SetVideoFormat(), SetVolumeDevice(), and cSetup::VideoFormat.
Referenced by main().
|
protectedvirtual |
Sets the current subtitle track to the given value.
|
protectedvirtual |
Sets the current subtitle track to the given value.
Definition at line 879 of file device.c.
Referenced by SetCurrentSubtitleTrack().
|
static |
Sets the 'useDevice' flag of the given device.
If this function is not called before initializing, all devices will be used.
Definition at line 139 of file device.c.
References MAXDEVICES, and useDevice.
Referenced by main().
|
static |
Sets the 'useDevice' flag of the given device.
If this function is not called before initializing, all devices will be used.
|
virtual |
Sets the video display format to the given one (only useful if this device has an MPEG decoder).
A derived class must first call the base class function!
Reimplemented in cDvbSdFfDevice, and cDvbHdFfDevice.
Definition at line 404 of file device.c.
References cSpuDecoder::eSpuLetterBox, cSpuDecoder::eSpuNormal, cSpuDecoder::eSpuPanAndScan, esyslog, GetSpuDecoder(), cSpuDecoder::setScaleMode(), Setup, vdfCenterCutOut, vdfLetterBox, vdfPanAndScan, and cSetup::VideoFormat.
Referenced by Detach(), cPlayer::DeviceSetVideoDisplayFormat(), and cMenuSetupDVB::ProcessKey().
|
virtual |
Sets the video display format to the given one (only useful if this device has an MPEG decoder).
A derived class must first call the base class function!
Reimplemented in cDvbSdFfDevice, and cDvbHdFfDevice.
|
virtual |
Sets the output video format to either 16:9 or 4:3 (only useful if this device has an MPEG decoder).
Reimplemented in cDvbSdFfDevice, and cDvbHdFfDevice.
Definition at line 427 of file device.c.
Referenced by cMenuSetupDVB::ProcessKey(), and SetPrimaryDevice().
|
virtual |
Sets the output video format to either 16:9 or 4:3 (only useful if this device has an MPEG decoder).
Reimplemented in cDvbSdFfDevice, and cDvbHdFfDevice.
void cDevice::SetVolume | ( | int | Volume, |
bool | Absolute = false |
||
) |
Sets the volume to the given value, either absolutely or relative to the current volume.
void cDevice::SetVolume | ( | int | Volume, |
bool | Absolute = false |
||
) |
Sets the volume to the given value, either absolutely or relative to the current volume.
Definition at line 912 of file device.c.
References Audios, constrain(), MAXVOLUME, cStatus::MsgSetVolume(), mute, cAudios::MuteAudio(), SetVolumeDevice(), and volume.
Referenced by cSVDRP::CmdVOLU(), main(), and ToggleMute().
|
protectedvirtual |
Sets the audio volume on this device (Volume = 0...255).
Reimplemented in cDvbSdFfDevice, and cDvbHdFfDevice.
Definition at line 867 of file device.c.
Referenced by SetPrimaryDevice(), and SetVolume().
|
protectedvirtual |
Sets the audio volume on this device (Volume = 0...255).
Reimplemented in cDvbSdFfDevice, and cDvbHdFfDevice.
|
static |
Closes down all devices.
Must be called at the end of the program.
Definition at line 362 of file device.c.
References cListBase::Clear(), device, deviceHooks, numDevices, and primaryDevice.
Referenced by main(), StopReplay(), and SwitchChannel().
|
static |
Closes down all devices.
Must be called at the end of the program.
|
virtual |
Returns the "quality" of the currently received signal.
This is a value in the range 0 (worst quality) through 100 (best possible quality). A value of -1 indicates that this device has no concept of a "signal quality".
Reimplemented in cDvbDevice, and cDvbDevice.
Definition at line 673 of file device.c.
Referenced by DrawDeviceSignal(), and cSkinSTTNGDisplayChannel::Flush().
|
virtual |
Returns the "quality" of the currently received signal.
This is a value in the range 0 (worst quality) through 100 (best possible quality). A value of -1 indicates that this device has no concept of a "signal quality".
Reimplemented in cDvbDevice, and cDvbDevice.
|
virtual |
Returns the "strength" of the currently received signal.
This is a value in the range 0 (no signal at all) through 100 (best possible signal). A value of -1 indicates that this device has no concept of a "signal strength".
Reimplemented in cDvbDevice, and cDvbDevice.
|
virtual |
Returns the "strength" of the currently received signal.
This is a value in the range 0 (no signal at all) through 100 (best possible signal). A value of -1 indicates that this device has no concept of a "signal strength".
Reimplemented in cDvbDevice, and cDvbDevice.
Definition at line 668 of file device.c.
Referenced by DrawDeviceSignal(), and cSkinSTTNGDisplayChannel::Flush().
|
protected |
A derived device that provides section data must call this function (typically in its constructor) to actually set up the section handler.
|
protected |
A derived device that provides section data must call this function (typically in its constructor) to actually set up the section handler.
Definition at line 569 of file device.c.
References AttachFilter(), eitFilter, nitFilter, patFilter, sdtFilter, and sectionHandler.
Referenced by cDvbDevice::cDvbDevice().
|
virtual |
Displays the given I-frame as a still picture.
Data points either to TS (first byte is 0x47) or PES (first byte is 0x00) data of the given Length. The default implementation converts TS to PES and calls itself again, allowing a derived class to display PES if it can't handle TS directly.
Reimplemented in cDvbHdFfDevice, and cDvbSdFfDevice.
Definition at line 1142 of file device.c.
References esyslog, cTsToPes::GetPes(), LOG_ERROR_STR, cPatPmtParser::ParsePat(), cPatPmtParser::ParsePmt(), patPmtParser, cPatPmtParser::PmtPid(), cTsToPes::PutTs(), cTsToPes::Reset(), TS_SIZE, TsPayloadStart(), TsPid(), and cPatPmtParser::Vpid().
Referenced by cPlayer::DeviceStillPicture().
|
virtual |
Displays the given I-frame as a still picture.
Data points either to TS (first byte is 0x47) or PES (first byte is 0x00) data of the given Length. The default implementation converts TS to PES and calls itself again, allowing a derived class to display PES if it can't handle TS directly.
Reimplemented in cDvbHdFfDevice, and cDvbSdFfDevice.
void cDevice::StopReplay | ( | void | ) |
Stops the current replay session (if any).
Definition at line 1249 of file device.c.
References Detach(), IsPrimaryDevice(), player, and Shutdown().
Referenced by main(), cEITScanner::Process(), cMenuRecordings::Rewind(), and SetChannel().
void cDevice::StopReplay | ( | void | ) |
Stops the current replay session (if any).
|
protected |
A device that has called StartSectionHandler() must call this function (typically in its destructor) to stop the section handler.
Definition at line 580 of file device.c.
References eitFilter, nitFilter, patFilter, sdtFilter, and sectionHandler.
Referenced by cDvbDevice::~cDvbDevice().
|
protected |
A device that has called StartSectionHandler() must call this function (typically in its destructor) to stop the section handler.
bool cDevice::SwitchChannel | ( | const cChannel * | Channel, |
bool | LiveView | ||
) |
Switches the device to the given Channel, initiating transfer mode if necessary.
bool cDevice::SwitchChannel | ( | const cChannel * | Channel, |
bool | LiveView | ||
) |
Switches the device to the given Channel, initiating transfer mode if necessary.
Definition at line 693 of file device.c.
References esyslog, isyslog, cSkins::Message(), mtError, mtInfo, cChannel::Number(), scrFailed, scrNotAvailable, scrNoTransfer, scrOk, SetChannel(), Shutdown(), Skins, and tr.
Referenced by cSVDRP::CmdCHAN(), main(), cEITScanner::Process(), cRecordControls::Start(), cMenuChannels::Switch(), cMenuWhatsOn::Switch(), SwitchChannel(), and cChannels::SwitchTo().
|
static |
Switches the primary device to the next available channel in the given Direction (only the sign of Direction is evaluated, positive values switch to higher channel numbers).
Definition at line 714 of file device.c.
References Channels, CurrentChannel(), dsyslog, cChannels::GetByNumber(), GetDevice(), LIVEPRIORITY, cSkins::Message(), mtError, cChannel::Number(), PrimaryDevice(), sgn(), Shutdown(), Skins, SwitchChannel(), and tr.
|
static |
Switches the primary device to the next available channel in the given Direction (only the sign of Direction is evaluated, positive values switch to higher channel numbers).
bool cDevice::ToggleMute | ( | void | ) |
Turns the volume off or on and returns the new mute state.
Definition at line 883 of file device.c.
References Audios, mute, cAudios::MuteAudio(), SetVolume(), and volume.
Referenced by cSVDRP::CmdVOLU(), and main().
bool cDevice::ToggleMute | ( | void | ) |
Turns the volume off or on and returns the new mute state.
bool cDevice::Transferring | ( | void | ) | const |
Returns true if we are currently in Transfer Mode.
Definition at line 1206 of file device.c.
References cTransferControl::ReceiverDevice().
Referenced by AttachPlayer(), cSVDRP::CmdDELC(), cSVDRP::CmdMOVC(), cMenuChannels::Delete(), cSkinLCARSDisplayMenu::DrawLiveIndicator(), cSkinLCARSDisplayMenu::Flush(), main(), cMenuChannels::Move(), SetCurrentSubtitleTrack(), and cDvbHdFfDevice::SetPlayMode().
bool cDevice::Transferring | ( | void | ) | const |
Returns true if we are currently in Transfer Mode.
|
virtual |
Sets the device into a mode where replay is done slower.
Every single frame shall then be displayed the given number of times. The cDvbPlayer uses the following values for the various speeds: 1x 2x 3x Fast Forward 6 3 1 Fast Reverse 6 3 1 Slow Forward 8 4 2 Slow Reverse 63 48 24
Reimplemented in cDvbHdFfDevice, and cDvbSdFfDevice.
Definition at line 1112 of file device.c.
Referenced by cPlayer::DeviceTrickSpeed().
|
virtual |
Sets the device into a mode where replay is done slower.
Every single frame shall then be displayed the given number of times. The cDvbPlayer uses the following values for the various speeds: 1x 2x 3x Fast Forward 6 3 1 Fast Reverse 6 3 1 Slow Forward 8 4 2 Slow Reverse 63 48 24
Reimplemented in cDvbHdFfDevice, and cDvbSdFfDevice.
|
inlinestatic |
Tells whether the device with the given card index shall be used in this instance of VDR.
Definition at line 125 of file device.h.
References useDevice.
Referenced by cDvbDevice::Initialize().
|
inlinestatic |
Tells whether the device with the given card index shall be used in this instance of VDR.
Definition at line 125 of file include/vdr/device.h.
References useDevice.
|
static |
Waits until all devices have become ready, or the given Timeout (seconds) has expired.
While waiting, the Ready() function of each device is called in turn, until they all return true.
Definition at line 123 of file device.c.
References device, numDevices, Ready(), and cCondWait::SleepMs().
Referenced by main().
|
static |
Waits until all devices have become ready, or the given Timeout (seconds) has expired.
While waiting, the Ready() function of each device is called in turn, until they all return true.
|
friend |
|
friend |
Definition at line 105 of file device.h.
Referenced by SetCurrentSubtitleTrack().
|
private |
Definition at line 492 of file device.h.
Referenced by cDevice(), SetAvailableTrack(), and SetCurrentSubtitleTrack().
|
private |
Definition at line 486 of file device.h.
Referenced by ClrAvailableTracks(), EnsureAudioTrack(), GetTrack(), NumTracks(), PlayPesPacket(), PlayTs(), and SetAvailableTrack().
|
private |
Definition at line 414 of file device.h.
Referenced by AddPid(), AttachReceiver(), CamSlot(), cDevice(), DelPid(), Detach(), SetCamSlot(), and SetChannel().
|
private |
Definition at line 170 of file device.h.
Referenced by CardIndex(), and cDevice().
|
private |
Definition at line 487 of file device.h.
Referenced by cDevice(), ClrAvailableTracks(), EnsureAudioTrack(), GetCurrentAudioTrack(), PlayPesPacket(), PlayTs(), SetAvailableTrack(), and SetCurrentAudioTrack().
|
private |
Definition at line 491 of file device.h.
Referenced by cDevice(), ClrAvailableTracks(), and SetAvailableTrack().
|
staticprotected |
Definition at line 241 of file device.h.
Referenced by CurrentChannel(), SetChannel(), and SetCurrentChannel().
|
private |
Definition at line 488 of file device.h.
Referenced by cDevice(), ClrAvailableTracks(), GetCurrentSubtitleTrack(), PlayPesPacket(), PlayTs(), and SetCurrentSubtitleTrack().
|
staticprivate |
Definition at line 110 of file device.h.
Referenced by cDevice(), DeviceNumber(), GetDevice(), cDvbHdFfDevice::GetHdffCmdHandler(), ProvidesTransponderExclusively(), SetPrimaryDevice(), Shutdown(), and WaitForAllDevicesReady().
|
staticprivate |
Definition at line 222 of file device.h.
Referenced by cDeviceHook::cDeviceHook(), DeviceHooksProvidesTransponder(), and Shutdown().
|
private |
Definition at line 230 of file device.h.
Referenced by AttachPlayer(), cDevice(), Clear(), Detach(), Freeze(), MakePrimaryDevice(), Play(), PlayPes(), PlaySubtitle(), PlayTsSubtitle(), SetChannel(), SetCurrentSubtitleTrack(), and ~cDevice().
|
private |
Definition at line 378 of file device.h.
Referenced by cDevice(), StartSectionHandler(), and StopSectionHandler().
|
private |
Definition at line 583 of file device.h.
Referenced by cDevice(), Detach(), IsPlayingVideo(), PlayPesPacket(), and PlayTs().
|
private |
Definition at line 229 of file device.h.
Referenced by AttachPlayer(), cDevice(), MakePrimaryDevice(), SetChannel(), SetCurrentSubtitleTrack(), and ~cDevice().
|
private |
Definition at line 546 of file device.h.
Referenced by cDevice(), IsMute(), Play(), SetVolume(), and ToggleMute().
|
private |
Definition at line 489 of file device.h.
Referenced by PlayPesPacket(), PlayTs(), and SetCurrentAudioTrack().
|
private |
Definition at line 490 of file device.h.
Referenced by Detach(), and SetCurrentSubtitleTrack().
|
mutableprivate |
Definition at line 742 of file device.h.
Referenced by AttachReceiver(), Detach(), DetachAll(), DetachAllReceivers(), Priority(), and Receiving().
|
staticprivate |
Definition at line 169 of file device.h.
Referenced by cDevice(), and NextCardIndex().
|
private |
Definition at line 381 of file device.h.
Referenced by cDevice(), StartSectionHandler(), and StopSectionHandler().
|
staticprivate |
Definition at line 108 of file device.h.
Referenced by cDevice(), DeviceNumber(), GetDevice(), NumDevices(), ProvidesTransponderExclusively(), SetPrimaryDevice(), Shutdown(), and WaitForAllDevicesReady().
|
private |
Definition at line 239 of file device.h.
Referenced by cDevice(), MaySwitchTransponder(), Occupied(), and SetOccupied().
|
private |
Definition at line 379 of file device.h.
Referenced by cDevice(), StartSectionHandler(), and StopSectionHandler().
|
private |
Definition at line 578 of file device.h.
Referenced by AttachPlayer(), Detach(), PatPmtParser(), PlayTs(), and StillPicture().
|
protected |
Definition at line 355 of file device.h.
Referenced by AddPid(), DelLivePids(), DelPid(), HasPid(), HasProgramme(), MaySwitchTransponder(), cDvbHdFfDevice::SetAudioTrackDevice(), cDvbSdFfDevice::SetAudioTrackDevice(), cDvbHdFfDevice::SetChannelDevice(), cDvbSdFfDevice::SetChannelDevice(), cDvbHdFfDevice::TurnOffLiveMode(), and cDvbSdFfDevice::TurnOffLiveMode().
|
private |
Definition at line 577 of file device.h.
Referenced by AttachPlayer(), cDevice(), Detach(), Replaying(), SetCurrentAudioTrack(), SetCurrentSubtitleTrack(), StopReplay(), and ~cDevice().
|
private |
Definition at line 493 of file device.h.
Referenced by ClrAvailableTracks(), and PlayPesPacket().
|
staticprivate |
Definition at line 111 of file device.h.
Referenced by CurrentChannel(), CurrentVolume(), IsPrimaryDevice(), PrimaryDevice(), SetPrimaryDevice(), and Shutdown().
|
private |
Definition at line 743 of file device.h.
Referenced by Action(), AttachReceiver(), cDevice(), Detach(), DetachAll(), DetachAllReceivers(), Priority(), and Receiving().
|
private |
Definition at line 380 of file device.h.
Referenced by cDevice(), StartSectionHandler(), and StopSectionHandler().
|
private |
Definition at line 377 of file device.h.
Referenced by AttachFilter(), cDevice(), Detach(), SetChannel(), StartSectionHandler(), and StopSectionHandler().
|
private |
Definition at line 413 of file device.h.
Referenced by Action(), AttachReceiver(), and cDevice().
|
private |
Definition at line 580 of file device.h.
Referenced by PlayTs(), and PlayTsAudio().
|
private |
Definition at line 581 of file device.h.
Referenced by PlayTs(), and PlayTsSubtitle().
|
private |
|
private |
Definition at line 579 of file device.h.
Referenced by PlayTs(), and PlayTsVideo().
|
staticprivate |
Definition at line 109 of file device.h.
Referenced by SetUseDevice(), and UseDevice().
|
private |
Definition at line 547 of file device.h.
Referenced by cDevice(), CurrentVolume(), SetVolume(), and ToggleMute().