cPlayer Class Reference

#include <player.h>

Inheritance diagram for cPlayer:

Inheritance graph
[legend]
Collaboration diagram for cPlayer:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 cPlayer (ePlayMode PlayMode=pmAudioVideo)
virtual ~cPlayer ()
bool IsAttached (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)

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 DevicePoll (cPoller &Poller, int TimeoutMs=0)
bool DeviceFlush (int TimeoutMs=0)
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)
void Detach (void)
virtual void Activate (bool On)
int PlayPes (const uchar *Data, int Length, bool VideoOnly=false)

Private Attributes

cDevicedevice
ePlayMode playMode

Friends

class cDevice


Detailed Description

Definition at line 16 of file player.h.


Constructor & Destructor Documentation

cPlayer::cPlayer ( ePlayMode  PlayMode = pmAudioVideo  ) 

Definition at line 15 of file player.c.

References device, and playMode.

cPlayer::~cPlayer (  )  [virtual]

Definition at line 21 of file player.c.

References Detach().

Here is the call graph for this function:


Member Function Documentation

void cPlayer::DeviceClrAvailableTracks ( bool  DescriptionsOnly = false  )  [inline, protected]

Definition at line 22 of file player.h.

References cDevice::ClrAvailableTracks(), and device.

Here is the call graph for this function:

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().

Here is the call graph for this function:

bool cPlayer::DeviceSetCurrentAudioTrack ( eTrackType  Type  )  [inline, protected]

Definition at line 24 of file player.h.

References device, and cDevice::SetCurrentAudioTrack().

Here is the call graph for this function:

bool cPlayer::DevicePoll ( cPoller Poller,
int  TimeoutMs = 0 
) [inline, protected]

Definition at line 25 of file player.h.

References device, and cDevice::Poll().

Referenced by cTransfer::Action(), and cDvbPlayer::Action().

Here is the call graph for this function:

bool cPlayer::DeviceFlush ( int  TimeoutMs = 0  )  [inline, protected]

Definition at line 26 of file player.h.

References device, and cDevice::Flush().

Referenced by cDvbPlayer::Action().

Here is the call graph for this function:

void cPlayer::DeviceTrickSpeed ( int  Speed  )  [inline, protected]

Definition at line 27 of file player.h.

References device, and cDevice::TrickSpeed().

Referenced by cDvbPlayer::TrickSpeed().

Here is the call graph for this function:

void cPlayer::DeviceClear ( void   )  [inline, protected]

Definition at line 28 of file player.h.

References cDevice::Clear(), and device.

Referenced by cTransfer::Action(), and cDvbPlayer::Empty().

Here is the call graph for this function:

void cPlayer::DevicePlay ( void   )  [inline, protected]

Definition at line 29 of file player.h.

References device, and cDevice::Play().

Referenced by cDvbPlayer::Action(), cDvbPlayer::Goto(), and cDvbPlayer::Play().

Here is the call graph for this function:

void cPlayer::DeviceFreeze ( void   )  [inline, protected]

Definition at line 30 of file player.h.

References device, and cDevice::Freeze().

Referenced by cDvbPlayer::Pause().

Here is the call graph for this function:

void cPlayer::DeviceMute ( void   )  [inline, protected]

Definition at line 31 of file player.h.

References device, and cDevice::Mute().

Referenced by cDvbPlayer::Backward(), and cDvbPlayer::Forward().

Here is the call graph for this function:

void cPlayer::DeviceSetVideoDisplayFormat ( eVideoDisplayFormat  VideoDisplayFormat  )  [inline, protected]

Definition at line 32 of file player.h.

References device, and cDevice::SetVideoDisplayFormat().

Here is the call graph for this function:

void cPlayer::DeviceStillPicture ( const uchar Data,
int  Length 
) [inline, protected]

Definition at line 33 of file player.h.

References device, and cDevice::StillPicture().

Referenced by cDvbPlayer::Goto().

Here is the call graph for this function:

void cPlayer::Detach ( void   )  [protected]

Definition at line 34 of file player.c.

References cDevice::Detach(), and device.

Referenced by cDvbPlayer::~cDvbPlayer(), ~cPlayer(), and cTransfer::~cTransfer().

Here is the call graph for this function:

virtual void cPlayer::Activate ( bool  On  )  [inline, protected, virtual]

Reimplemented in cDvbPlayer, and cTransfer.

Definition at line 35 of file player.h.

Referenced by cDevice::AttachPlayer(), and cDevice::Detach().

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 cTransfer::Action(), and cDvbPlayer::Action().

Here is the call graph for this function:

bool cPlayer::IsAttached ( void   )  [inline]

Definition at line 46 of file player.h.

References device.

Referenced by cControl::Attach(), and cTransfer::Receive().

virtual bool cPlayer::GetIndex ( int &  Current,
int &  Total,
bool  SnapToIFrame = false 
) [inline, virtual]

Reimplemented in cDvbPlayer.

Definition at line 47 of file player.h.

Referenced by cControl::GetIndex().

virtual bool cPlayer::GetReplayMode ( bool &  Play,
bool &  Forward,
int &  Speed 
) [inline, virtual]

Reimplemented in cDvbPlayer.

Definition at line 50 of file player.h.

Referenced by cControl::GetReplayMode().

virtual void cPlayer::SetAudioTrack ( eTrackType  Type,
const tTrackId TrackId 
) [inline, virtual]

Definition at line 56 of file player.h.

Referenced by cDevice::SetCurrentAudioTrack().


Friends And Related Function Documentation

friend class cDevice [friend]

Definition at line 17 of file player.h.


Member Data Documentation

cDevice* cPlayer::device [private]

Definition at line 19 of file player.h.

Referenced by cDevice::AttachPlayer(), cPlayer(), Detach(), cDevice::Detach(), DeviceClear(), DeviceClrAvailableTracks(), DeviceFlush(), DeviceFreeze(), DeviceMute(), DevicePlay(), DevicePoll(), DeviceSetAvailableTrack(), DeviceSetCurrentAudioTrack(), DeviceSetVideoDisplayFormat(), DeviceStillPicture(), DeviceTrickSpeed(), IsAttached(), and PlayPes().

ePlayMode cPlayer::playMode [private]

Reimplemented in cDvbPlayer.

Definition at line 20 of file player.h.

Referenced by cDevice::AttachPlayer(), and cPlayer().


The documentation for this class was generated from the following files:
Generated on Tue Nov 6 20:21:52 2007 for VDR by  doxygen 1.5.3-20071008