vdr 2.7.3
device.h File Reference
#include "channels.h"
#include "ci.h"
#include "dvbsubtitle.h"
#include "eit.h"
#include "filter.h"
#include "nit.h"
#include "pat.h"
#include "positioner.h"
#include "remux.h"
#include "ringbuffer.h"
#include "sdt.h"
#include "sections.h"
#include "spu.h"
#include "thread.h"
#include "tools.h"

Go to the source code of this file.

Classes

struct  tTrackId
 
class  cDeviceHook
 
class  cDevice
 
class  cDevice::cPidHandle
 
class  cTSBuffer
 

Macros

#define MAXDEVICES   16
 
#define MAXPIDHANDLES   64
 
#define MAXRECEIVERS   16
 
#define MAXVOLUME   255
 
#define VOLUMEDELTA   (MAXVOLUME / Setup.VolumeSteps)
 
#define MAXOCCUPIEDTIMEOUT   99
 
#define IS_AUDIO_TRACK(t)
 
#define IS_DOLBY_TRACK(t)
 
#define IS_SUBTITLE_TRACK(t)
 
#define DTV_STAT_VALID_NONE   0x0000
 
#define DTV_STAT_VALID_STRENGTH   0x0001
 
#define DTV_STAT_VALID_CNR   0x0002
 
#define DTV_STAT_VALID_BERPRE   0x0004
 
#define DTV_STAT_VALID_BERPOST   0x0008
 
#define DTV_STAT_VALID_PER   0x0010
 
#define DTV_STAT_VALID_STATUS   0x0020
 
#define DTV_STAT_HAS_NONE   0x0000
 
#define DTV_STAT_HAS_SIGNAL   0x0001
 
#define DTV_STAT_HAS_CARRIER   0x0002
 
#define DTV_STAT_HAS_VITERBI   0x0004
 
#define DTV_STAT_HAS_SYNC   0x0008
 
#define DTV_STAT_HAS_LOCK   0x0010
 

Enumerations

enum  eSetChannelResult { scrOk , scrNotAvailable , scrNoTransfer , scrFailed }
 
enum  ePlayMode {
  pmNone , pmAudioVideo , pmAudioOnly , pmAudioOnlyBlack ,
  pmVideoOnly , pmExtern_THIS_SHOULD_BE_AVOIDED
}
 
enum  eVideoDisplayFormat { vdfPanAndScan , vdfLetterBox , vdfCenterCutOut }
 
enum  eTrackType {
  ttNone , ttAudio , ttAudioFirst = ttAudio , ttAudioLast = ttAudioFirst + 31 ,
  ttDolby , ttDolbyFirst = ttDolby , ttDolbyLast = ttDolbyFirst + 15 , ttSubtitle ,
  ttSubtitleFirst = ttSubtitle , ttSubtitleLast = ttSubtitleFirst + 31 , ttMaxTrackTypes
}
 

Macro Definition Documentation

◆ DTV_STAT_HAS_CARRIER

#define DTV_STAT_HAS_CARRIER   0x0002

Definition at line 114 of file device.h.

Referenced by cDvbTuner::GetSignalStats().

◆ DTV_STAT_HAS_LOCK

#define DTV_STAT_HAS_LOCK   0x0010

Definition at line 117 of file device.h.

Referenced by cDvbTuner::GetSignalStats().

◆ DTV_STAT_HAS_NONE

#define DTV_STAT_HAS_NONE   0x0000

Definition at line 112 of file device.h.

Referenced by cDvbTuner::GetSignalStats().

◆ DTV_STAT_HAS_SIGNAL

#define DTV_STAT_HAS_SIGNAL   0x0001

Definition at line 113 of file device.h.

Referenced by cDvbTuner::GetSignalStats().

◆ DTV_STAT_HAS_SYNC

#define DTV_STAT_HAS_SYNC   0x0008

Definition at line 116 of file device.h.

Referenced by cDvbTuner::GetSignalStats().

◆ DTV_STAT_HAS_VITERBI

#define DTV_STAT_HAS_VITERBI   0x0004

Definition at line 115 of file device.h.

Referenced by cDvbTuner::GetSignalStats().

◆ DTV_STAT_VALID_BERPOST

#define DTV_STAT_VALID_BERPOST   0x0008

Definition at line 108 of file device.h.

Referenced by cDvbTuner::GetSignalStats().

◆ DTV_STAT_VALID_BERPRE

#define DTV_STAT_VALID_BERPRE   0x0004

Definition at line 107 of file device.h.

Referenced by cDvbTuner::GetSignalStats().

◆ DTV_STAT_VALID_CNR

#define DTV_STAT_VALID_CNR   0x0002

Definition at line 106 of file device.h.

Referenced by cDvbTuner::GetSignalStats().

◆ DTV_STAT_VALID_NONE

#define DTV_STAT_VALID_NONE   0x0000

The cDevice class is the base from which actual devices can be derived.

Definition at line 104 of file device.h.

Referenced by cDvbTuner::GetSignalStats().

◆ DTV_STAT_VALID_PER

#define DTV_STAT_VALID_PER   0x0010

Definition at line 109 of file device.h.

Referenced by cDvbTuner::GetSignalStats().

◆ DTV_STAT_VALID_STATUS

#define DTV_STAT_VALID_STATUS   0x0020

Definition at line 110 of file device.h.

Referenced by cDvbTuner::GetSignalStats().

◆ DTV_STAT_VALID_STRENGTH

#define DTV_STAT_VALID_STRENGTH   0x0001

Definition at line 105 of file device.h.

Referenced by cDvbTuner::GetSignalStats().

◆ IS_AUDIO_TRACK

◆ IS_DOLBY_TRACK

#define IS_DOLBY_TRACK ( t)

◆ IS_SUBTITLE_TRACK

#define IS_SUBTITLE_TRACK ( t)
Value:
(ttSubtitleFirst <= (t) && (t) <= ttSubtitleLast)
@ ttSubtitleLast
Definition device.h:72
@ ttSubtitleFirst
Definition device.h:71

Definition at line 78 of file device.h.

Referenced by cDevice::SetAvailableTrack(), and cDevice::SetCurrentSubtitleTrack().

◆ MAXDEVICES

◆ MAXOCCUPIEDTIMEOUT

#define MAXOCCUPIEDTIMEOUT   99

Definition at line 34 of file device.h.

Referenced by cDevice::SetOccupied().

◆ MAXPIDHANDLES

#define MAXPIDHANDLES   64

Definition at line 30 of file device.h.

Referenced by cDevice::AddPid(), cDevice::DelPid(), and cDevice::HasPid().

◆ MAXRECEIVERS

◆ MAXVOLUME

#define MAXVOLUME   255

Definition at line 32 of file device.h.

Referenced by cSetup::cSetup(), cDevice::SetVolume(), and cDisplayVolume::Show().

◆ VOLUMEDELTA

#define VOLUMEDELTA   (MAXVOLUME / Setup.VolumeSteps)

Definition at line 33 of file device.h.

Referenced by cSVDRPServer::CmdVOLU(), and main().

Enumeration Type Documentation

◆ ePlayMode

enum ePlayMode
Enumerator
pmNone 
pmAudioVideo 
pmAudioOnly 
pmAudioOnlyBlack 
pmVideoOnly 
pmExtern_THIS_SHOULD_BE_AVOIDED 

Definition at line 39 of file device.h.

◆ eSetChannelResult

Enumerator
scrOk 
scrNotAvailable 
scrNoTransfer 
scrFailed 

Definition at line 36 of file device.h.

◆ eTrackType

enum eTrackType
Enumerator
ttNone 
ttAudio 
ttAudioFirst 
ttAudioLast 
ttDolby 
ttDolbyFirst 
ttDolbyLast 
ttSubtitle 
ttSubtitleFirst 
ttSubtitleLast 
ttMaxTrackTypes 

Definition at line 63 of file device.h.

◆ eVideoDisplayFormat

Enumerator
vdfPanAndScan 
vdfLetterBox 
vdfCenterCutOut 

Definition at line 58 of file device.h.