vdr  2.2.0
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 ()
 
- Public Member Functions inherited from cReceiver
 cReceiver (const cChannel *Channel=NULL, int Priority=MINPRIORITY)
 
virtual ~cReceiver ()
 
int Priority (void)
 
void SetPriority (int Priority)
 
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)
 
void DelPid (int Pid)
 
void DelPids (const int *Pids)
 
tChannelID ChannelID (void)
 
int NumPids (void) const
 
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)
 

Protected Member Functions

virtual void Activate (bool On)
 
virtual void Receive (uchar *Data, int Length)
 
- Protected Member Functions inherited from cReceiver
cDeviceDevice (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, bool Forward)
 
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 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 cReceiver::Detach(), and cPlayer::Detach().

Member Function Documentation

void cTransfer::Activate ( bool  On)
protectedvirtual
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 41 of file transfer.c.

References cPlayer::DeviceClear(), esyslog, cPlayer::IsAttached(), MAXRETRIES, cPlayer::PlayTs(), cTransferControl::receiverDevice, RETRYWAIT, and cCondWait::SleepMs().

Member Data Documentation

cPatPmtGenerator cTransfer::patPmtGenerator
private

Definition at line 19 of file transfer.h.

Referenced by Activate(), and cTransfer().


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