vdr  2.0.6
Classes | Macros | Enumerations | Variables
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 "remux.h"
#include "ringbuffer.h"
#include "sdt.h"
#include "sections.h"
#include "spu.h"
#include "thread.h"
#include "tools.h"
Include dependency graph for device.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

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

Macros

#define MAXDEVICES   16
 
#define MAXPIDHANDLES   64
 
#define MAXRECEIVERS   16
 
#define MAXVOLUME   255
 
#define VOLUMEDELTA   5
 
#define MAXOCCUPIEDTIMEOUT   99
 
#define IS_AUDIO_TRACK(t)   (ttAudioFirst <= (t) && (t) <= ttAudioLast)
 
#define IS_DOLBY_TRACK(t)   (ttDolbyFirst <= (t) && (t) <= ttDolbyLast)
 
#define IS_SUBTITLE_TRACK(t)   (ttSubtitleFirst <= (t) && (t) <= ttSubtitleLast)
 
#define __DYNAMIC_DEVICE_PROBE
 

Enumerations

enum  eSetChannelResult { scrOk, scrNotAvailable, scrNoTransfer, scrFailed }
 
enum  ePlayMode {
  pmNone, pmAudioVideo, pmAudioOnly, pmAudioOnlyBlack,
  pmVideoOnly, pmExtern_THIS_SHOULD_BE_AVOIDED
}
 
enum  eVideoSystem { vsPAL, vsNTSC }
 
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
}
 
enum  eDynamicDeviceProbeCommand { ddpcAttach, ddpcDetach, ddpcService }
 

Variables

cList< cDynamicDeviceProbeDynamicDeviceProbes
 

Macro Definition Documentation

#define __DYNAMIC_DEVICE_PROBE

A plugin that want to create devices handled by the dynamite-plugin needs to create a cDynamicDeviceProbe derived object on the heap in order to have its Probe() function called, where it can actually create the appropriate device.

The cDynamicDeviceProbe object must be created in the plugin's constructor, and deleted in its destructor. The "DevPath" hasn't to be a physical device or a path in the filesystem. It can be any string a plugin may react on.

Definition at line 858 of file device.h.

#define IS_AUDIO_TRACK (   t)    (ttAudioFirst <= (t) && (t) <= ttAudioLast)
#define IS_DOLBY_TRACK (   t)    (ttDolbyFirst <= (t) && (t) <= ttDolbyLast)
#define IS_SUBTITLE_TRACK (   t)    (ttSubtitleFirst <= (t) && (t) <= ttSubtitleLast)

Definition at line 80 of file device.h.

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

#define MAXDEVICES   16
#define MAXOCCUPIEDTIMEOUT   99

Definition at line 33 of file device.h.

Referenced by cDevice::SetOccupied().

#define MAXPIDHANDLES   64

Definition at line 29 of file device.h.

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

#define MAXRECEIVERS   16
#define MAXVOLUME   255

Definition at line 31 of file device.h.

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

#define VOLUMEDELTA   5

Definition at line 32 of file device.h.

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

Enumeration Type Documentation

Enumerator
ddpcAttach 
ddpcDetach 
ddpcService 

Definition at line 860 of file device.h.

enum ePlayMode
Enumerator
pmNone 
pmAudioVideo 
pmAudioOnly 
pmAudioOnlyBlack 
pmVideoOnly 
pmExtern_THIS_SHOULD_BE_AVOIDED 

Definition at line 37 of file device.h.

Enumerator
scrOk 
scrNotAvailable 
scrNoTransfer 
scrFailed 

Definition at line 35 of file device.h.

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

Definition at line 65 of file device.h.

Enumerator
vdfPanAndScan 
vdfLetterBox 
vdfCenterCutOut 

Definition at line 60 of file device.h.

Enumerator
vsPAL 
vsNTSC 

Definition at line 56 of file device.h.

Variable Documentation

cList<cDynamicDeviceProbe> DynamicDeviceProbes

Definition at line 1872 of file device.c.