SASC-NG
DVBSoftCAM

cPlayer Class Reference

#include <player.h>

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)

Friends

class cDevice

Detailed Description

Definition at line 16 of file player.h.


Constructor & Destructor Documentation

cPlayer::cPlayer ( ePlayMode  PlayMode = pmAudioVideo)
virtual cPlayer::~cPlayer ( ) [virtual]

Member Function Documentation

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

Definition at line 35 of file player.h.

{}
void cPlayer::Detach ( void  ) [protected]
void cPlayer::DeviceClear ( void  ) [inline, protected]

Definition at line 28 of file player.h.

References cDevice::Clear().

{ if (device) device->Clear(); }
void cPlayer::DeviceClrAvailableTracks ( bool  DescriptionsOnly = false) [inline, protected]

Definition at line 22 of file player.h.

References cDevice::ClrAvailableTracks().

{ if (device) device->ClrAvailableTracks(DescriptionsOnly); }
bool cPlayer::DeviceFlush ( int  TimeoutMs = 0) [inline, protected]

Definition at line 26 of file player.h.

References cDevice::Flush().

{ return device ? device->Flush(TimeoutMs) : true; }
void cPlayer::DeviceFreeze ( void  ) [inline, protected]

Definition at line 30 of file player.h.

References cDevice::Freeze().

{ if (device) device->Freeze(); }
void cPlayer::DeviceMute ( void  ) [inline, protected]

Definition at line 31 of file player.h.

References cDevice::Mute().

{ if (device) device->Mute(); }
void cPlayer::DevicePlay ( void  ) [inline, protected]

Definition at line 29 of file player.h.

References cDevice::Play().

{ if (device) device->Play(); }
bool cPlayer::DevicePoll ( cPoller &  Poller,
int  TimeoutMs = 0 
) [inline, protected]

Definition at line 25 of file player.h.

References cDevice::Poll().

{ return device ? device->Poll(Poller, TimeoutMs) : false; }
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 cDevice::SetAvailableTrack().

{ return device ? device->SetAvailableTrack(Type, Index, Id, Language, Description) : false; }
bool cPlayer::DeviceSetCurrentAudioTrack ( eTrackType  Type) [inline, protected]

Definition at line 24 of file player.h.

References cDevice::SetCurrentAudioTrack().

{ return device ? device->SetCurrentAudioTrack(Type) : false; }
void cPlayer::DeviceSetVideoDisplayFormat ( eVideoDisplayFormat  VideoDisplayFormat) [inline, protected]

Definition at line 32 of file player.h.

References cDevice::SetVideoDisplayFormat().

{ if (device) device->SetVideoDisplayFormat(VideoDisplayFormat); }
void cPlayer::DeviceStillPicture ( const uchar *  Data,
int  Length 
) [inline, protected]

Definition at line 33 of file player.h.

References cDevice::StillPicture().

{ if (device) device->StillPicture(Data, Length); }
void cPlayer::DeviceTrickSpeed ( int  Speed) [inline, protected]

Definition at line 27 of file player.h.

References cDevice::TrickSpeed().

{ if (device) device->TrickSpeed(Speed); }
virtual bool cPlayer::GetIndex ( int &  Current,
int &  Total,
bool  SnapToIFrame = false 
) [inline, virtual]

Definition at line 47 of file player.h.

Referenced by cControl::GetIndex().

{ return false; }
virtual bool cPlayer::GetReplayMode ( bool &  Play,
bool &  Forward,
int &  Speed 
) [inline, virtual]

Definition at line 50 of file player.h.

Referenced by cControl::GetReplayMode().

{ return false; }
bool cPlayer::IsAttached ( void  ) [inline]

Definition at line 46 of file player.h.

References NULL.

{ return device != NULL; }
int cPlayer::PlayPes ( const uchar *  Data,
int  Length,
bool  VideoOnly = false 
) [protected]
virtual void cPlayer::SetAudioTrack ( eTrackType  Type,
const tTrackId *  TrackId 
) [inline, virtual]

Definition at line 56 of file player.h.

{}

Friends And Related Function Documentation

friend class cDevice [friend]

Definition at line 17 of file player.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines