vdr  1.7.31
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
cTransfer Class Reference

#include <transfer.h>

Public Member Functions

 cTransfer (const cChannel *Channel)
virtual ~cTransfer ()
 cTransfer (const cChannel *Channel)
virtual ~cTransfer ()
- Public Member Functions inherited from cReceiver
 cReceiver (const cChannel *Channel=NULL, int Priority=MINPRIORITY)
virtual ~cReceiver ()
bool AddPid (int Pid)
bool AddPids (const int *Pids)
bool AddPids (int Pid1, int Pid2, int Pid3=0, int Pid4=0, int Pid5=0, int Pid6=0, int Pid7=0, int Pid8=0, int Pid9=0)
bool SetPids (const cChannel *Channel)
tChannelID ChannelID (void)
bool IsAttached (void)
 cReceiver (const cChannel *Channel=NULL, int Priority=MINPRIORITY)
virtual ~cReceiver ()
bool AddPid (int Pid)
bool AddPids (const int *Pids)
bool AddPids (int Pid1, int Pid2, int Pid3=0, int Pid4=0, int Pid5=0, int Pid6=0, int Pid7=0, int Pid8=0, int Pid9=0)
bool SetPids (const cChannel *Channel)
tChannelID ChannelID (void)
bool IsAttached (void)
- Public Member Functions inherited from cPlayer
 cPlayer (ePlayMode PlayMode=pmAudioVideo)
virtual ~cPlayer ()
bool IsAttached (void)
virtual double FramesPerSecond (void)
virtual bool GetIndex (int &Current, int &Total, bool SnapToIFrame=false)
virtual bool GetReplayMode (bool &Play, bool &Forward, int &Speed)
virtual void SetAudioTrack (eTrackType Type, const tTrackId *TrackId)
virtual void SetSubtitleTrack (eTrackType Type, const tTrackId *TrackId)
 cPlayer (ePlayMode PlayMode=pmAudioVideo)
virtual ~cPlayer ()
bool IsAttached (void)
virtual double FramesPerSecond (void)
virtual bool GetIndex (int &Current, int &Total, bool SnapToIFrame=false)
virtual bool GetReplayMode (bool &Play, bool &Forward, int &Speed)
virtual void SetAudioTrack (eTrackType Type, const tTrackId *TrackId)
virtual void SetSubtitleTrack (eTrackType Type, const tTrackId *TrackId)

Protected Member Functions

virtual void Activate (bool On)
virtual void Receive (uchar *Data, int Length)
virtual void Activate (bool On)
virtual void Receive (uchar *Data, int Length)
- Protected Member Functions inherited from cReceiver
void Detach (void)
void Detach (void)
- Protected Member Functions inherited from cPlayer
void DeviceClrAvailableTracks (bool DescriptionsOnly=false)
bool DeviceSetAvailableTrack (eTrackType Type, int Index, uint16_t Id, const char *Language=NULL, const char *Description=NULL)
bool DeviceSetCurrentAudioTrack (eTrackType Type)
bool DeviceSetCurrentSubtitleTrack (eTrackType Type)
bool DevicePoll (cPoller &Poller, int TimeoutMs=0)
bool DeviceFlush (int TimeoutMs=0)
bool DeviceHasIBPTrickSpeed (void)
bool DeviceIsPlayingVideo (void)
void DeviceTrickSpeed (int Speed)
void DeviceClear (void)
void DevicePlay (void)
void DeviceFreeze (void)
void DeviceMute (void)
void DeviceSetVideoDisplayFormat (eVideoDisplayFormat VideoDisplayFormat)
void DeviceStillPicture (const uchar *Data, int Length)
uint64_t DeviceGetSTC (void)
void Detach (void)
int PlayPes (const uchar *Data, int Length, bool VideoOnly=false)
int PlayTs (const uchar *Data, int Length, bool VideoOnly=false)
void DeviceClrAvailableTracks (bool DescriptionsOnly=false)
bool DeviceSetAvailableTrack (eTrackType Type, int Index, uint16_t Id, const char *Language=NULL, const char *Description=NULL)
bool DeviceSetCurrentAudioTrack (eTrackType Type)
bool DeviceSetCurrentSubtitleTrack (eTrackType Type)
bool DevicePoll (cPoller &Poller, int TimeoutMs=0)
bool DeviceFlush (int TimeoutMs=0)
bool DeviceHasIBPTrickSpeed (void)
bool DeviceIsPlayingVideo (void)
void DeviceTrickSpeed (int Speed)
void DeviceClear (void)
void DevicePlay (void)
void DeviceFreeze (void)
void DeviceMute (void)
void DeviceSetVideoDisplayFormat (eVideoDisplayFormat VideoDisplayFormat)
void DeviceStillPicture (const uchar *Data, int Length)
uint64_t DeviceGetSTC (void)
void Detach (void)
int PlayPes (const uchar *Data, int Length, bool VideoOnly=false)
int PlayTs (const uchar *Data, int Length, bool VideoOnly=false)

Private Attributes

cPatPmtGenerator patPmtGenerator

Detailed Description

Definition at line 17 of file include/vdr/transfer.h.

Constructor & Destructor Documentation

cTransfer::cTransfer ( const cChannel Channel)

Definition at line 14 of file transfer.c.

References patPmtGenerator, and cPatPmtGenerator::SetChannel().

cTransfer::~cTransfer ( )
virtual

Definition at line 20 of file transfer.c.

References cPlayer::Detach().

cTransfer::cTransfer ( const cChannel Channel)
virtual cTransfer::~cTransfer ( )
virtual

Member Function Documentation

void cTransfer::Activate ( bool  On)
protectedvirtual
virtual void cTransfer::Activate ( bool  On)
protectedvirtual

Reimplemented from cPlayer.

virtual void cTransfer::Receive ( uchar Data,
int  Length 
)
protectedvirtual

This function is called from the cDevice we are attached to, and delivers one TS packet from the set of PIDs the cReceiver has requested.

The data packet must be accepted immediately, and the call must return as soon as possible, without any unnecessary delay. Each TS packet will be delivered only ONCE, so the cReceiver must make sure that it will be able to buffer the data if necessary.

Implements cReceiver.

void cTransfer::Receive ( uchar Data,
int  Length 
)
protectedvirtual

This function is called from the cDevice we are attached to, and delivers one TS packet from the set of PIDs the cReceiver has requested.

The data packet must be accepted immediately, and the call must return as soon as possible, without any unnecessary delay. Each TS packet will be delivered only ONCE, so the cReceiver must make sure that it will be able to buffer the data if necessary.

Implements cReceiver.

Definition at line 38 of file transfer.c.

References esyslog, cPlayer::IsAttached(), cPlayer::PlayTs(), and cCondWait::SleepMs().

Member Data Documentation

cPatPmtGenerator cTransfer::patPmtGenerator
private

Definition at line 19 of file include/vdr/transfer.h.

Referenced by Activate(), and cTransfer().


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