vdr
2.2.0
|
#include <transfer.h>
Public Member Functions | |
cTransfer (const cChannel *Channel) | |
virtual | ~cTransfer () |
![]() | |
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) |
![]() | |
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) |
![]() | |
cDevice * | Device (void) |
void | Detach (void) |
![]() | |
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 |
Definition at line 17 of file transfer.h.
cTransfer::cTransfer | ( | const cChannel * | Channel | ) |
Definition at line 14 of file transfer.c.
References patPmtGenerator, and cPatPmtGenerator::SetChannel().
|
virtual |
Definition at line 20 of file transfer.c.
References cReceiver::Detach(), and cPlayer::Detach().
|
protectedvirtual |
Reimplemented from cPlayer.
Definition at line 26 of file transfer.c.
References cPlayer::Detach(), cPatPmtGenerator::GetPat(), cPatPmtGenerator::GetPmt(), patPmtGenerator, cPlayer::PlayTs(), and TS_SIZE.
|
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().
|
private |
Definition at line 19 of file transfer.h.
Referenced by Activate(), and cTransfer().