cDvbDevice Class Reference

The cDvbDevice implements a DVB device which can be accessed through the Linux DVB driver API. More...

#include <dvbdevice.h>

Inheritance diagram for cDvbDevice:

Inheritance graph
[legend]
Collaboration diagram for cDvbDevice:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 cDvbDevice (int n)
virtual ~cDvbDevice ()
virtual bool Ready (void)
virtual bool HasDecoder (void) const
 Tells whether this device has an MPEG decoder.
virtual cSpuDecoderGetSpuDecoder (void)
virtual bool ProvidesSource (int Source) const
 Returns true if this device can provide the given source.
virtual bool ProvidesTransponder (const cChannel *Channel) const
virtual bool ProvidesChannel (const cChannel *Channel, int Priority=-1, bool *NeedsDetachReceivers=NULL) const
virtual int NumProvidedSystems (void) const
virtual bool IsTunedToTransponder (const cChannel *Channel)
virtual bool HasLock (int TimeoutMs=0)
virtual bool HasCi (void)
 Returns true if this device has a Common Interface.
virtual ucharGrabImage (int &Size, 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 int64_t GetSTC (void)
virtual void TrickSpeed (int Speed)
virtual void Clear (void)
virtual void Play (void)
virtual void Freeze (void)
 Puts the device into "freeze frame" mode.
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)

Static Public Member Functions

static bool Initialize (void)
static void SetTransferModeForDolbyDigital (int Mode)

Protected Member Functions

virtual void MakePrimaryDevice (bool On)
virtual bool SetChannelDevice (const cChannel *Channel, bool LiveView)
 Sets the device to the given channel (actual physical setup).
virtual bool SetPid (cPidHandle *Handle, int Type, bool On)
virtual int OpenFilter (u_short Pid, u_char Tid, u_char Mask)
virtual void CloseFilter (int Handle)
virtual void SetAudioTrackDevice (eTrackType Type)
 Sets the current audio track to the given value.
virtual int GetAudioChannelDevice (void)
virtual void SetAudioChannelDevice (int AudioChannel)
 Sets the audio channel to stereo (0), mono left (1) or mono right (2).
virtual void SetVolumeDevice (int Volume)
 Sets the audio volume on this device (Volume = 0...255).
virtual void SetDigitalAudioDevice (bool On)
virtual bool CanReplay (void) const
 Returns true if this device can currently start a replay session.
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 PlayTsVideo (const uchar *Data, int Length)
virtual int PlayTsAudio (const uchar *Data, int Length)
virtual bool OpenDvr (void)
virtual void CloseDvr (void)
 Shuts down the DVR.
virtual bool GetTSPacket (uchar *&Data)

Protected Attributes

ePlayMode playMode

Private Member Functions

void TurnOffLiveMode (bool LiveView)
bool SetAudioBypass (bool On)

Static Private Member Functions

static bool Probe (const char *FileName)
 Probes for existing DVB devices.

Private Attributes

dvb_frontend_info frontendInfo
int numProvidedSystems
fe_delivery_system frontendType
int fd_osd
int fd_audio
int fd_video
int fd_dvr
int fd_stc
int fd_ca
cCiAdapterciAdapter
cDvbSpuDecoderspuDecoder
cDvbTunerdvbTuner
int devVideoIndex
bool digitalAudio
cTSBuffertsBuffer

Static Private Attributes

static int devVideoOffset = -1
static int setTransferModeForDolbyDigital = 1


Detailed Description

The cDvbDevice implements a DVB device which can be accessed through the Linux DVB driver API.

Definition at line 28 of file dvbdevice.h.


Constructor & Destructor Documentation

cDvbDevice::cDvbDevice ( int  n  ) 

cDvbDevice::~cDvbDevice (  )  [virtual]

Definition at line 517 of file dvbdevice.c.

References ciAdapter, dvbTuner, spuDecoder, and cDevice::StopSectionHandler().

Here is the call graph for this function:


Member Function Documentation

bool cDvbDevice::Probe ( const char *  FileName  )  [static, private]

Probes for existing DVB devices.

Definition at line 527 of file dvbdevice.c.

References dsyslog, and LOG_ERROR_STR.

Referenced by Initialize().

bool cDvbDevice::Initialize ( void   )  [static]

Initializes the DVB devices. Must be called before accessing any DVB functions.

Returns:
True if any devices are available.

Definition at line 544 of file dvbdevice.c.

References cDvbDevice(), DEV_DVB_FRONTEND, isyslog, MAXDVBDEVICES, cDevice::NextCardIndex(), Probe(), and cDevice::UseDevice().

Referenced by main().

Here is the call graph for this function:

void cDvbDevice::MakePrimaryDevice ( bool  On  )  [protected, virtual]

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.

Reimplemented from cDevice.

Definition at line 568 of file dvbdevice.c.

References fd_osd, and HasDecoder().

Here is the call graph for this function:

bool cDvbDevice::Ready ( void   )  [virtual]

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 from cDevice.

Definition at line 579 of file dvbdevice.c.

References ciAdapter, and cCiAdapter::Ready().

Here is the call graph for this function:

bool cDvbDevice::HasDecoder ( void   )  const [virtual]

Tells whether this device has an MPEG decoder.

Reimplemented from cDevice.

Definition at line 574 of file dvbdevice.c.

References fd_audio, and fd_video.

Referenced by cDvbDevice(), GetAudioChannelDevice(), MakePrimaryDevice(), SetAudioChannelDevice(), SetChannelDevice(), SetVideoDisplayFormat(), SetVideoFormat(), and SetVolumeDevice().

cSpuDecoder * cDvbDevice::GetSpuDecoder ( void   )  [virtual]

Returns a pointer to the device's SPU decoder (or NULL, if this device doesn't have an SPU decoder).

Reimplemented from cDevice.

Definition at line 586 of file dvbdevice.c.

References cDevice::IsPrimaryDevice(), and spuDecoder.

Here is the call graph for this function:

void cDvbDevice::TurnOffLiveMode ( bool  LiveView  )  [private]

bool cDvbDevice::ProvidesSource ( int  Source  )  const [virtual]

Returns true if this device can provide the given source.

Reimplemented from cDevice.

Definition at line 860 of file dvbdevice.c.

References frontendType, cSource::st_Mask, cSource::stCable, cSource::stNone, cSource::stSat, and cSource::stTerr.

Referenced by ProvidesTransponder().

bool cDvbDevice::ProvidesTransponder ( const cChannel Channel  )  const [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 from cDevice.

Definition at line 869 of file dvbdevice.c.

References cSetup::DiSEqC, Diseqcs, cChannel::Frequency(), frontendType, cDiseqcs::Get(), cSource::IsSat(), cChannel::Polarization(), ProvidesSource(), Setup, cChannel::Source(), and cChannel::System().

Referenced by ProvidesChannel().

Here is the call graph for this function:

bool cDvbDevice::ProvidesChannel ( const cChannel Channel,
int  Priority = -1,
bool *  NeedsDetachReceivers = NULL 
) const [virtual]

Returns true if this device can provide the given channel. In case the device has cReceivers attached to it or it is the primary device, Priority is used to decide whether the caller's request can be honored. The special Priority value -1 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 from cDevice.

Definition at line 880 of file dvbdevice.c.

References cChannel::Apid(), cChannel::Ca(), CA_ENCRYPTED_MIN, cDevice::CamSlot(), cCamSlot::CanDecrypt(), dvbTuner, cDevice::HasPid(), cDevice::IsPrimaryDevice(), cDvbTuner::IsTunedTo(), cSetup::PrimaryLimit, cDevice::Priority(), ProvidesTransponder(), cDevice::Receiving(), Setup, and cChannel::Vpid().

Here is the call graph for this function:

int cDvbDevice::NumProvidedSystems ( void   )  const [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 from cDevice.

Definition at line 918 of file dvbdevice.c.

References numProvidedSystems.

bool cDvbDevice::IsTunedToTransponder ( const cChannel Channel  )  [virtual]

Returns true if this device is currently tuned to the given Channel's transponder.

Reimplemented from cDevice.

Definition at line 923 of file dvbdevice.c.

References dvbTuner, and cDvbTuner::IsTunedTo().

Here is the call graph for this function:

bool cDvbDevice::SetChannelDevice ( const cChannel Channel,
bool  LiveView 
) [protected, virtual]

bool cDvbDevice::HasLock ( int  TimeoutMs = 0  )  [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 from cDevice.

Definition at line 997 of file dvbdevice.c.

References dvbTuner, and cDvbTuner::Locked().

Here is the call graph for this function:

bool cDvbDevice::SetAudioBypass ( bool  On  )  [private]

Definition at line 756 of file dvbdevice.c.

References fd_audio, and setTransferModeForDolbyDigital.

Referenced by SetAudioTrackDevice(), and SetChannelDevice().

bool cDvbDevice::SetPid ( cPidHandle Handle,
int  Type,
bool  On 
) [protected, virtual]

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 from cDevice.

Definition at line 766 of file dvbdevice.c.

References cDevice::CardIndex(), CHECK, DEV_DVB_DEMUX, DvbOpen(), cDevice::cPidHandle::handle, LOG_ERROR, PesTypes, cDevice::cPidHandle::pid, pmNone, cDevice::ptOther, cDevice::ptTeletext, SetPlayMode(), and cDevice::cPidHandle::used.

Referenced by SetAudioTrackDevice().

Here is the call graph for this function:

int cDvbDevice::OpenFilter ( u_short  Pid,
u_char  Tid,
u_char  Mask 
) [protected, virtual]

Opens a file handle for the given filter data. A derived device that provides section data must implement this function.

Reimplemented from cDevice.

Definition at line 808 of file dvbdevice.c.

References cDevice::CardIndex(), DEV_DVB_DEMUX, and esyslog.

Here is the call graph for this function:

void cDvbDevice::CloseFilter ( int  Handle  )  [protected, 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 from cDevice.

Definition at line 832 of file dvbdevice.c.

bool cDvbDevice::HasCi ( void   )  [virtual]

Returns true if this device has a Common Interface.

Reimplemented from cDevice.

Definition at line 593 of file dvbdevice.c.

References ciAdapter.

uchar * cDvbDevice::GrabImage ( int &  Size,
bool  Jpeg = true,
int  Quality = -1,
int  SizeX = -1,
int  SizeY = -1 
) [virtual]

Grabs the currently visible screen image.

Parameters:
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).
Returns:
A pointer to the grabbed image data, or NULL in case of an error. The caller takes ownership of the returned memory and must free() it once it isn't needed any more.

Reimplemented from cDevice.

Definition at line 598 of file dvbdevice.c.

References DEV_VIDEO, devVideoIndex, dsyslog, esyslog, LOG_ERROR_STR, MALLOC, and RgbToJpeg().

Here is the call graph for this function:

void cDvbDevice::SetVideoDisplayFormat ( eVideoDisplayFormat  VideoDisplayFormat  )  [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 from cDevice.

Definition at line 712 of file dvbdevice.c.

References CHECK, fd_video, HasDecoder(), Setup, cDevice::SetVideoDisplayFormat(), vdfCenterCutOut, vdfLetterBox, vdfPanAndScan, and cSetup::VideoFormat.

Referenced by SetVideoFormat().

Here is the call graph for this function:

void cDvbDevice::SetVideoFormat ( bool  VideoFormat16_9  )  [virtual]

Sets the output video format to either 16:9 or 4:3 (only useful if this device has an MPEG decoder).

Reimplemented from cDevice.

Definition at line 735 of file dvbdevice.c.

References CHECK, fd_video, HasDecoder(), Setup, SetVideoDisplayFormat(), and cSetup::VideoDisplayFormat.

Referenced by cDvbDevice(), and SetPlayMode().

Here is the call graph for this function:

eVideoSystem cDvbDevice::GetVideoSystem ( void   )  [virtual]

Returns the video system of the currently displayed material (default is PAL).

Reimplemented from cDevice.

Definition at line 743 of file dvbdevice.c.

References fd_video, LOG_ERROR, vsNTSC, and vsPAL.

void cDvbDevice::SetAudioTrackDevice ( eTrackType  Type  )  [protected, virtual]

int cDvbDevice::GetAudioChannelDevice ( void   )  [protected, virtual]

Gets the current audio channel, which is stereo (0), mono left (1) or mono right (2).

Reimplemented from cDevice.

Definition at line 1002 of file dvbdevice.c.

References CHECK, fd_audio, and HasDecoder().

Here is the call graph for this function:

void cDvbDevice::SetAudioChannelDevice ( int  AudioChannel  )  [protected, virtual]

Sets the audio channel to stereo (0), mono left (1) or mono right (2).

Reimplemented from cDevice.

Definition at line 1012 of file dvbdevice.c.

References CHECK, fd_audio, and HasDecoder().

Here is the call graph for this function:

void cDvbDevice::SetVolumeDevice ( int  Volume  )  [protected, virtual]

Sets the audio volume on this device (Volume = 0...255).

Reimplemented from cDevice.

Definition at line 1018 of file dvbdevice.c.

References CHECK, digitalAudio, fd_audio, and HasDecoder().

Referenced by SetDigitalAudioDevice().

Here is the call graph for this function:

void cDvbDevice::SetDigitalAudioDevice ( bool  On  )  [protected, virtual]

Tells the actual device that digital audio output shall be switched on or off.

Reimplemented from cDevice.

Definition at line 1030 of file dvbdevice.c.

References cDevice::CurrentVolume(), digitalAudio, cDevice::IsMute(), SetVolumeDevice(), and cCondWait::SleepMs().

Here is the call graph for this function:

void cDvbDevice::SetTransferModeForDolbyDigital ( int  Mode  )  [static]

Controls how the DVB device handles Transfer Mode when replaying Dolby Digital audio. 0 = don't set "audio bypass" in driver/firmware, don't force Transfer Mode 1 = set "audio bypass" in driver/firmware, force Transfer Mode (default) 2 = don't set "audio bypass" in driver/firmware, force Transfer Mode

Definition at line 1040 of file dvbdevice.c.

References setTransferModeForDolbyDigital.

Referenced by cExternalAudio::Play().

bool cDvbDevice::CanReplay ( void   )  const [protected, virtual]

Returns true if this device can currently start a replay session.

Reimplemented from cDevice.

Definition at line 1072 of file dvbdevice.c.

References cDevice::CanReplay(), and cDevice::Receiving().

Here is the call graph for this function:

bool cDvbDevice::SetPlayMode ( ePlayMode  PlayMode  )  [protected, virtual]

Sets the device into the given play mode.

Returns:
true if the operation was successful.

Reimplemented from cDevice.

Definition at line 1081 of file dvbdevice.c.

References cDevice::CardIndex(), CHECK, DEV_DVB_AUDIO, DEV_DVB_VIDEO, DvbOpen(), fd_audio, fd_video, playMode, pmAudioOnly, pmAudioOnlyBlack, pmAudioVideo, pmExtern_THIS_SHOULD_BE_AVOIDED, pmNone, pmVideoOnly, Setup, SetVideoFormat(), TurnOffLiveMode(), and cSetup::VideoFormat.

Referenced by SetPid().

Here is the call graph for this function:

int cDvbDevice::PlayVideo ( const uchar Data,
int  Length 
) [protected, virtual]

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' to EAGAIN).

Returns:
Returns the number of bytes actually taken from Data, or -1 in case of an error.

Reimplemented from cDevice.

Definition at line 1305 of file dvbdevice.c.

References fd_video, cPoller::Poll(), and WriteAllOrNothing().

Here is the call graph for this function:

int cDvbDevice::PlayAudio ( const uchar Data,
int  Length,
uchar  Id 
) [protected, virtual]

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. Note that as of version 1.7.1 Id is obsolete and may be 0 (in case of TS replay). Plugins that need to know this Id shall read it from the actual PES data (it's the 4th byte). PlayAudio() shall process the packet either as a whole (returning Length) or not at all (returning 0 or -1 and setting 'errno' to EAGAIN).

Returns:
Returns the number of bytes actually taken from Data, or -1 in case of an error.

Reimplemented from cDevice.

Definition at line 1318 of file dvbdevice.c.

References fd_audio, cPoller::Poll(), and WriteAllOrNothing().

Referenced by PlayTsAudio().

Here is the call graph for this function:

int cDvbDevice::PlayTsVideo ( const uchar Data,
int  Length 
) [protected, virtual]

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 from cDevice.

Definition at line 1331 of file dvbdevice.c.

References cDevice::PlayTsVideo().

Here is the call graph for this function:

int cDvbDevice::PlayTsAudio ( const uchar Data,
int  Length 
) [protected, virtual]

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 from cDevice.

Definition at line 1336 of file dvbdevice.c.

References PlayAudio(), and TsGetPayload().

Here is the call graph for this function:

int64_t cDvbDevice::GetSTC ( void   )  [virtual]

Gets the current System Time Counter, which can be used to synchronize audio and video. If this device is unable to provide the STC, -1 will be returned.

Reimplemented from cDevice.

Definition at line 1146 of file dvbdevice.c.

References cDevice::CardIndex(), esyslog, and fd_stc.

Here is the call graph for this function:

void cDvbDevice::TrickSpeed ( int  Speed  )  [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 from cDevice.

Definition at line 1160 of file dvbdevice.c.

References CHECK, and fd_video.

void cDvbDevice::Clear ( void   )  [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 from cDevice.

Definition at line 1166 of file dvbdevice.c.

References CHECK, cDevice::Clear(), fd_audio, and fd_video.

Here is the call graph for this function:

void cDvbDevice::Play ( void   )  [virtual]

Sets the device into play mode (after a previous trick mode).

Reimplemented from cDevice.

Definition at line 1175 of file dvbdevice.c.

References CHECK, fd_audio, fd_video, cDevice::Play(), playMode, pmAudioOnly, and pmAudioOnlyBlack.

Here is the call graph for this function:

void cDvbDevice::Freeze ( void   )  [virtual]

Puts the device into "freeze frame" mode.

Reimplemented from cDevice.

Definition at line 1190 of file dvbdevice.c.

References CHECK, fd_audio, fd_video, cDevice::Freeze(), playMode, pmAudioOnly, and pmAudioOnlyBlack.

Here is the call graph for this function:

void cDvbDevice::Mute ( void   )  [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 from cDevice.

Definition at line 1205 of file dvbdevice.c.

References CHECK, fd_audio, and cDevice::Mute().

Here is the call graph for this function:

void cDvbDevice::StillPicture ( const uchar Data,
int  Length 
) [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 from cDevice.

Definition at line 1214 of file dvbdevice.c.

References CHECK, fd_video, MALLOC, and cDevice::StillPicture().

Here is the call graph for this function:

bool cDvbDevice::Poll ( cPoller Poller,
int  TimeoutMs = 0 
) [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 milleseconds before returning in case it can't accept any data.

Reimplemented from cDevice.

Definition at line 1293 of file dvbdevice.c.

References cPoller::Add(), fd_audio, fd_video, playMode, pmAudioOnly, pmAudioOnlyBlack, and cPoller::Poll().

Here is the call graph for this function:

bool cDvbDevice::Flush ( int  TimeoutMs = 0  )  [virtual]

Returns true if the device's output buffers are empty, i. e. any data which was bufferd 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 from cDevice.

Definition at line 1299 of file dvbdevice.c.

bool cDvbDevice::OpenDvr ( void   )  [protected, virtual]

Opens the DVR of this device and prepares it to deliver a Transport Stream for use in a cReceiver.

Reimplemented from cDevice.

Definition at line 1342 of file dvbdevice.c.

References cDevice::CardIndex(), CloseDvr(), DEV_DVB_DVR, DvbOpen(), fd_dvr, MEGABYTE, and tsBuffer.

Here is the call graph for this function:

void cDvbDevice::CloseDvr ( void   )  [protected, virtual]

Shuts down the DVR.

Reimplemented from cDevice.

Definition at line 1351 of file dvbdevice.c.

References fd_dvr, and tsBuffer.

Referenced by OpenDvr().

bool cDvbDevice::GetTSPacket ( uchar *&  Data  )  [protected, virtual]

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 from cDevice.

Definition at line 1361 of file dvbdevice.c.

References cTSBuffer::Get(), and tsBuffer.

Here is the call graph for this function:


Member Data Documentation

dvb_frontend_info cDvbDevice::frontendInfo [private]

Definition at line 38 of file dvbdevice.h.

Referenced by cDvbDevice().

Definition at line 39 of file dvbdevice.h.

Referenced by cDvbDevice(), and NumProvidedSystems().

fe_delivery_system cDvbDevice::frontendType [private]

Definition at line 40 of file dvbdevice.h.

Referenced by cDvbDevice(), ProvidesSource(), and ProvidesTransponder().

int cDvbDevice::fd_osd [private]

Definition at line 41 of file dvbdevice.h.

Referenced by cDvbDevice(), and MakePrimaryDevice().

int cDvbDevice::fd_audio [private]

int cDvbDevice::fd_video [private]

int cDvbDevice::fd_dvr [private]

Definition at line 41 of file dvbdevice.h.

Referenced by cDvbDevice(), CloseDvr(), and OpenDvr().

int cDvbDevice::fd_stc [private]

Definition at line 41 of file dvbdevice.h.

Referenced by cDvbDevice(), and GetSTC().

int cDvbDevice::fd_ca [private]

Definition at line 41 of file dvbdevice.h.

Referenced by cDvbDevice().

Definition at line 53 of file dvbdevice.h.

Referenced by cDvbDevice(), HasCi(), Ready(), and ~cDvbDevice().

Definition at line 58 of file dvbdevice.h.

Referenced by cDvbDevice(), GetSpuDecoder(), and ~cDvbDevice().

int cDvbDevice::devVideoOffset = -1 [static, private]

Definition at line 99 of file dvbdevice.h.

Referenced by cDvbDevice().

Definition at line 100 of file dvbdevice.h.

Referenced by cDvbDevice(), and GrabImage().

bool cDvbDevice::digitalAudio [private]

Definition at line 119 of file dvbdevice.h.

Referenced by cDvbDevice(), SetDigitalAudioDevice(), and SetVolumeDevice().

int cDvbDevice::setTransferModeForDolbyDigital = 1 [static, private]

Definition at line 137 of file dvbdevice.h.

Referenced by cDvbDevice(), Freeze(), Play(), Poll(), and SetPlayMode().

Definition at line 158 of file dvbdevice.h.

Referenced by CloseDvr(), GetTSPacket(), and OpenDvr().


The documentation for this class was generated from the following files:

Generated on Tue Jan 13 14:28:29 2009 for VDR by  doxygen 1.5.6