SASC-NG
DVBSoftCAM

device.h File Reference

#include "channels.h"
#include "ci.h"
#include "eit.h"
#include "filter.h"
#include "nit.h"
#include "pat.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  cDevice
 The cDevice class is the base from which actual devices can be derived. More...
class  cDevice::cPidHandle
class  cTSBuffer

Defines

#define MAXDEVICES   16
#define MAXPIDHANDLES   64
#define MAXRECEIVERS   16
#define MAXVOLUME   255
#define VOLUMEDELTA   5
#define TS_SIZE   188
#define TS_SYNC_BYTE   0x47
#define PID_MASK_HI   0x1F
#define IS_AUDIO_TRACK(t)   (ttAudioFirst <= (t) && (t) <= ttAudioLast)
#define IS_DOLBY_TRACK(t)   (ttDolbyFirst <= (t) && (t) <= ttDolbyLast)

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, ttMaxTrackTypes
}

Define Documentation

#define IS_AUDIO_TRACK (   t)    (ttAudioFirst <= (t) && (t) <= ttAudioLast)

Definition at line 81 of file device.h.

#define IS_DOLBY_TRACK (   t)    (ttDolbyFirst <= (t) && (t) <= ttDolbyLast)

Definition at line 82 of file device.h.

#define MAXDEVICES   16

Definition at line 26 of file device.h.

Referenced by cDevice::cDevice(), cDevice::NextCardIndex(), and cDevice::SetUseDevice().

#define MAXPIDHANDLES   64

Definition at line 27 of file device.h.

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

#define MAXRECEIVERS   16

Definition at line 28 of file device.h.

Referenced by cDevice::cDevice().

#define MAXVOLUME   255

Definition at line 29 of file device.h.

#define PID_MASK_HI   0x1F

Definition at line 34 of file device.h.

#define TS_SIZE   188

Definition at line 32 of file device.h.

Referenced by cDeCsaTSBuffer::cDeCsaTSBuffer(), cDeCSA::Decrypt(), and cDeCsaTSBuffer::Get().

#define TS_SYNC_BYTE   0x47

Definition at line 33 of file device.h.

Referenced by cDeCSA::Decrypt(), and cDeCsaTSBuffer::Get().

#define VOLUMEDELTA   5

Definition at line 30 of file device.h.


Enumeration Type Documentation

enum ePlayMode
Enumerator:
pmNone 
pmAudioVideo 
pmAudioOnly 
pmAudioOnlyBlack 
pmVideoOnly 
pmExtern_THIS_SHOULD_BE_AVOIDED 

Definition at line 38 of file device.h.

               { pmNone,           // audio/video from decoder
                 pmAudioVideo,     // audio/video from player
                 pmAudioOnly,      // audio only from player, video from decoder
                 pmAudioOnlyBlack, // audio only from player, no video (black screen)
                 pmVideoOnly,      // video only from player, audio from decoder
                 pmExtern_THIS_SHOULD_BE_AVOIDED
                 // external player (e.g. MPlayer), release the device
                 // WARNING: USE THIS MODE ONLY AS A LAST RESORT, IF YOU
                 // ABSOLUTELY, POSITIVELY CAN'T IMPLEMENT YOUR PLAYER
                 // THE WAY IT IS SUPPOSED TO WORK. FORCING THE DEVICE
                 // TO RELEASE ITS FILES HANDLES (OR WHATEVER RESOURCES
                 // IT MAY USE) TO ALLOW AN EXTERNAL PLAYER TO ACCESS
                 // THEM MEANS THAT SUCH A PLAYER WILL NEED TO HAVE
                 // DETAILED KNOWLEDGE ABOUT THE INTERNALS OF THE DEVICE
                 // IN USE. AS A CONSEQUENCE, YOUR PLAYER MAY NOT WORK
                 // IF A PARTICULAR VDR INSTALLATION USES A DEVICE NOT
                 // KNOWN TO YOUR PLAYER.
               };
Enumerator:
scrOk 
scrNotAvailable 
scrNoTransfer 
scrFailed 

Definition at line 36 of file device.h.

enum eTrackType
Enumerator:
ttNone 
ttAudio 
ttAudioFirst 
ttAudioLast 
ttDolby 
ttDolbyFirst 
ttDolbyLast 
ttMaxTrackTypes 

Definition at line 66 of file device.h.

                { ttNone,
                  ttAudio,
                  ttAudioFirst = ttAudio,
                  ttAudioLast  = ttAudioFirst + 31, // MAXAPIDS - 1
                  ttDolby,
                  ttDolbyFirst = ttDolby,
                  ttDolbyLast  = ttDolbyFirst + 15, // MAXDPIDS - 1
                  /* future...
                  ttSubtitle,
                  ttSubtitleFirst = ttSubtitle,
                  ttSubtitleLast  = ttSubtitleFirst + 7, // MAXSPIDS - 1
                  */
                  ttMaxTrackTypes
                };
Enumerator:
vdfPanAndScan 
vdfLetterBox 
vdfCenterCutOut 

Definition at line 61 of file device.h.

Enumerator:
vsPAL 
vsNTSC 

Definition at line 57 of file device.h.

                  { vsPAL,
                    vsNTSC
                  };
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines