vdr
1.7.27
|
#include <player.h>
Public Member Functions | |
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 | |
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) |
virtual void | Activate (bool On) |
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) |
virtual void | Activate (bool On) |
int | PlayPes (const uchar *Data, int Length, bool VideoOnly=false) |
int | PlayTs (const uchar *Data, int Length, bool VideoOnly=false) |
Private Attributes | |
cDevice * | device |
ePlayMode | playMode |
Friends | |
class | cDevice |
Definition at line 16 of file include/vdr/player.h.
cPlayer::cPlayer | ( | ePlayMode | PlayMode = pmAudioVideo | ) |
cPlayer::~cPlayer | ( | ) | [virtual] |
cPlayer::cPlayer | ( | ePlayMode | PlayMode = pmAudioVideo | ) |
virtual cPlayer::~cPlayer | ( | ) | [virtual] |
virtual void cPlayer::Activate | ( | bool | On | ) | [inline, protected, virtual] |
Reimplemented in cDvbPlayer, cPicturePlayer, cTransfer, and cTransfer.
Definition at line 39 of file include/vdr/player.h.
Referenced by cDevice::AttachPlayer(), and cDevice::Detach().
virtual void cPlayer::Activate | ( | bool | On | ) | [inline, protected, virtual] |
Reimplemented in cDvbPlayer, cPicturePlayer, cTransfer, and cTransfer.
void cPlayer::Detach | ( | void | ) | [protected] |
Definition at line 34 of file player.c.
References cDevice::Detach(), and device.
Referenced by cTransfer::Activate(), cDvbPlayer::~cDvbPlayer(), ~cPlayer(), and cTransfer::~cTransfer().
void cPlayer::Detach | ( | void | ) | [protected] |
void cPlayer::DeviceClear | ( | void | ) | [inline, protected] |
Definition at line 31 of file include/vdr/player.h.
References cDevice::Clear(), and device.
Referenced by cDvbPlayer::Empty().
void cPlayer::DeviceClear | ( | void | ) | [inline, protected] |
Definition at line 31 of file player.h.
References cDevice::Clear(), and device.
void cPlayer::DeviceClrAvailableTracks | ( | bool | DescriptionsOnly = false | ) | [inline, protected] |
Definition at line 22 of file include/vdr/player.h.
References cDevice::ClrAvailableTracks(), and device.
void cPlayer::DeviceClrAvailableTracks | ( | bool | DescriptionsOnly = false | ) | [inline, protected] |
Definition at line 22 of file player.h.
References cDevice::ClrAvailableTracks(), and device.
bool cPlayer::DeviceFlush | ( | int | TimeoutMs = 0 | ) | [inline, protected] |
Definition at line 27 of file player.h.
References device, and cDevice::Flush().
bool cPlayer::DeviceFlush | ( | int | TimeoutMs = 0 | ) | [inline, protected] |
Definition at line 27 of file include/vdr/player.h.
References device, and cDevice::Flush().
void cPlayer::DeviceFreeze | ( | void | ) | [inline, protected] |
Definition at line 33 of file player.h.
References device, and cDevice::Freeze().
void cPlayer::DeviceFreeze | ( | void | ) | [inline, protected] |
Definition at line 33 of file include/vdr/player.h.
References device, and cDevice::Freeze().
Referenced by cDvbPlayer::Pause().
uint64_t cPlayer::DeviceGetSTC | ( | void | ) | [inline, protected] |
Definition at line 37 of file include/vdr/player.h.
References device, and cDevice::GetSTC().
Referenced by cDvbPlayer::Action(), cDvbPlayer::Empty(), cDvbPlayer::GetIndex(), cDvbPlayer::Save(), and cDvbPlayer::SkipSeconds().
uint64_t cPlayer::DeviceGetSTC | ( | void | ) | [inline, protected] |
Definition at line 37 of file player.h.
References device, and cDevice::GetSTC().
bool cPlayer::DeviceHasIBPTrickSpeed | ( | void | ) | [inline, protected] |
Definition at line 28 of file player.h.
References device, and cDevice::HasIBPTrickSpeed().
bool cPlayer::DeviceHasIBPTrickSpeed | ( | void | ) | [inline, protected] |
Definition at line 28 of file include/vdr/player.h.
References device, and cDevice::HasIBPTrickSpeed().
Referenced by cDvbPlayer::Action(), cDvbPlayer::Forward(), cDvbPlayer::Pause(), and cDvbPlayer::Play().
bool cPlayer::DeviceIsPlayingVideo | ( | void | ) | [inline, protected] |
Definition at line 29 of file player.h.
References device, and cDevice::IsPlayingVideo().
bool cPlayer::DeviceIsPlayingVideo | ( | void | ) | [inline, protected] |
Definition at line 29 of file include/vdr/player.h.
References device, and cDevice::IsPlayingVideo().
Referenced by cDvbPlayer::Action(), cDvbPlayer::Backward(), and cDvbPlayer::Forward().
void cPlayer::DeviceMute | ( | void | ) | [inline, protected] |
Definition at line 34 of file player.h.
References device, and cDevice::Mute().
void cPlayer::DeviceMute | ( | void | ) | [inline, protected] |
Definition at line 34 of file include/vdr/player.h.
References device, and cDevice::Mute().
Referenced by cDvbPlayer::Backward(), and cDvbPlayer::Forward().
void cPlayer::DevicePlay | ( | void | ) | [inline, protected] |
Definition at line 32 of file player.h.
References device, and cDevice::Play().
void cPlayer::DevicePlay | ( | void | ) | [inline, protected] |
Definition at line 32 of file include/vdr/player.h.
References device, and cDevice::Play().
Referenced by cDvbPlayer::Action(), cDvbPlayer::Goto(), and cDvbPlayer::Play().
bool cPlayer::DevicePoll | ( | cPoller & | Poller, |
int | TimeoutMs = 0 |
||
) | [inline, protected] |
Definition at line 26 of file include/vdr/player.h.
References device, and cDevice::Poll().
Referenced by cDvbPlayer::Action().
bool cPlayer::DevicePoll | ( | cPoller & | Poller, |
int | TimeoutMs = 0 |
||
) | [inline, protected] |
Definition at line 26 of file player.h.
References device, and cDevice::Poll().
bool cPlayer::DeviceSetAvailableTrack | ( | eTrackType | Type, |
int | Index, | ||
uint16_t | Id, | ||
const char * | Language = NULL , |
||
const char * | Description = NULL |
||
) | [inline, protected] |
Definition at line 23 of file include/vdr/player.h.
References device, and cDevice::SetAvailableTrack().
bool cPlayer::DeviceSetAvailableTrack | ( | eTrackType | Type, |
int | Index, | ||
uint16_t | Id, | ||
const char * | Language = NULL , |
||
const char * | Description = NULL |
||
) | [inline, protected] |
Definition at line 23 of file player.h.
References device, and cDevice::SetAvailableTrack().
bool cPlayer::DeviceSetCurrentAudioTrack | ( | eTrackType | Type | ) | [inline, protected] |
Definition at line 24 of file include/vdr/player.h.
References device, and cDevice::SetCurrentAudioTrack().
bool cPlayer::DeviceSetCurrentAudioTrack | ( | eTrackType | Type | ) | [inline, protected] |
Definition at line 24 of file player.h.
References device, and cDevice::SetCurrentAudioTrack().
bool cPlayer::DeviceSetCurrentSubtitleTrack | ( | eTrackType | Type | ) | [inline, protected] |
Definition at line 25 of file include/vdr/player.h.
References device, and cDevice::SetCurrentSubtitleTrack().
bool cPlayer::DeviceSetCurrentSubtitleTrack | ( | eTrackType | Type | ) | [inline, protected] |
Definition at line 25 of file player.h.
References device, and cDevice::SetCurrentSubtitleTrack().
void cPlayer::DeviceSetVideoDisplayFormat | ( | eVideoDisplayFormat | VideoDisplayFormat | ) | [inline, protected] |
Definition at line 35 of file player.h.
References device, and cDevice::SetVideoDisplayFormat().
void cPlayer::DeviceSetVideoDisplayFormat | ( | eVideoDisplayFormat | VideoDisplayFormat | ) | [inline, protected] |
Definition at line 35 of file include/vdr/player.h.
References device, and cDevice::SetVideoDisplayFormat().
void cPlayer::DeviceStillPicture | ( | const uchar * | Data, |
int | Length | ||
) | [inline, protected] |
Definition at line 36 of file player.h.
References device, and cDevice::StillPicture().
void cPlayer::DeviceStillPicture | ( | const uchar * | Data, |
int | Length | ||
) | [inline, protected] |
Definition at line 36 of file include/vdr/player.h.
References device, and cDevice::StillPicture().
Referenced by cPicturePlayer::Activate(), cDvbPlayer::Goto(), and cPicturePlayer::SetPicture().
void cPlayer::DeviceTrickSpeed | ( | int | Speed | ) | [inline, protected] |
Definition at line 30 of file player.h.
References device, and cDevice::TrickSpeed().
void cPlayer::DeviceTrickSpeed | ( | int | Speed | ) | [inline, protected] |
Definition at line 30 of file include/vdr/player.h.
References device, and cDevice::TrickSpeed().
Referenced by cDvbPlayer::TrickSpeed().
virtual double cPlayer::FramesPerSecond | ( | void | ) | [inline, virtual] |
Reimplemented in cDvbPlayer.
Definition at line 55 of file include/vdr/player.h.
References DEFAULTFRAMESPERSECOND.
Referenced by cControl::FramesPerSecond().
virtual double cPlayer::FramesPerSecond | ( | void | ) | [inline, virtual] |
Reimplemented in cDvbPlayer.
Definition at line 55 of file player.h.
References DEFAULTFRAMESPERSECOND.
virtual bool cPlayer::GetIndex | ( | int & | Current, |
int & | Total, | ||
bool | SnapToIFrame = false |
||
) | [inline, virtual] |
Reimplemented in cDvbPlayer.
virtual bool cPlayer::GetIndex | ( | int & | Current, |
int & | Total, | ||
bool | SnapToIFrame = false |
||
) | [inline, virtual] |
Reimplemented in cDvbPlayer.
Definition at line 57 of file include/vdr/player.h.
Referenced by cControl::GetIndex().
virtual bool cPlayer::GetReplayMode | ( | bool & | Play, |
bool & | Forward, | ||
int & | Speed | ||
) | [inline, virtual] |
Reimplemented in cDvbPlayer.
Definition at line 60 of file include/vdr/player.h.
Referenced by cControl::GetReplayMode().
virtual bool cPlayer::GetReplayMode | ( | bool & | Play, |
bool & | Forward, | ||
int & | Speed | ||
) | [inline, virtual] |
Reimplemented in cDvbPlayer.
bool cPlayer::IsAttached | ( | void | ) | [inline] |
Definition at line 54 of file include/vdr/player.h.
References device.
Referenced by cControl::Attach(), and cTransfer::Receive().
bool cPlayer::IsAttached | ( | void | ) | [inline] |
int cPlayer::PlayPes | ( | const uchar * | Data, |
int | Length, | ||
bool | VideoOnly = false |
||
) | [protected] |
int cPlayer::PlayPes | ( | const uchar * | Data, |
int | Length, | ||
bool | VideoOnly = false |
||
) | [protected] |
Definition at line 26 of file player.c.
References device, esyslog, and cDevice::PlayPes().
Referenced by cDvbPlayer::Action().
int cPlayer::PlayTs | ( | const uchar * | Data, |
int | Length, | ||
bool | VideoOnly = false |
||
) | [inline, protected] |
Definition at line 47 of file player.h.
References device, and cDevice::PlayTs().
int cPlayer::PlayTs | ( | const uchar * | Data, |
int | Length, | ||
bool | VideoOnly = false |
||
) | [inline, protected] |
Definition at line 47 of file include/vdr/player.h.
References device, and cDevice::PlayTs().
Referenced by cDvbPlayer::Action(), cTransfer::Activate(), and cTransfer::Receive().
virtual void cPlayer::SetAudioTrack | ( | eTrackType | Type, |
const tTrackId * | TrackId | ||
) | [inline, virtual] |
virtual void cPlayer::SetAudioTrack | ( | eTrackType | Type, |
const tTrackId * | TrackId | ||
) | [inline, virtual] |
Definition at line 66 of file include/vdr/player.h.
Referenced by cDevice::SetCurrentAudioTrack().
virtual void cPlayer::SetSubtitleTrack | ( | eTrackType | Type, |
const tTrackId * | TrackId | ||
) | [inline, virtual] |
virtual void cPlayer::SetSubtitleTrack | ( | eTrackType | Type, |
const tTrackId * | TrackId | ||
) | [inline, virtual] |
Definition at line 70 of file include/vdr/player.h.
Referenced by cDevice::SetCurrentSubtitleTrack().
cDevice [friend] |
Definition at line 17 of file include/vdr/player.h.
cDevice * cPlayer::device [private] |
Definition at line 19 of file include/vdr/player.h.
Referenced by cDevice::AttachPlayer(), cPlayer(), Detach(), cDevice::Detach(), DeviceClear(), DeviceClrAvailableTracks(), DeviceFlush(), DeviceFreeze(), DeviceGetSTC(), DeviceHasIBPTrickSpeed(), DeviceIsPlayingVideo(), DeviceMute(), DevicePlay(), DevicePoll(), DeviceSetAvailableTrack(), DeviceSetCurrentAudioTrack(), DeviceSetCurrentSubtitleTrack(), DeviceSetVideoDisplayFormat(), DeviceStillPicture(), DeviceTrickSpeed(), IsAttached(), PlayPes(), and PlayTs().
ePlayMode cPlayer::playMode [private] |
Reimplemented in cDvbPlayer.
Definition at line 20 of file include/vdr/player.h.
Referenced by cDevice::AttachPlayer(), and cPlayer().