vdr
1.7.31
|
#include <transfer.h>
Public Member Functions | |
cTransfer (const cChannel *Channel) | |
virtual | ~cTransfer () |
cTransfer (const cChannel *Channel) | |
virtual | ~cTransfer () |
![]() | |
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) |
![]() | |
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) |
![]() | |
void | Detach (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) |
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 |
Definition at line 17 of file include/vdr/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 cPlayer::Detach().
cTransfer::cTransfer | ( | const cChannel * | Channel | ) |
|
virtual |
|
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 |
Reimplemented from cPlayer.
|
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.
|
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().
|
private |
Definition at line 19 of file include/vdr/transfer.h.
Referenced by Activate(), and cTransfer().