9 #ifndef __DVBSDFFDEVICE_H 10 #define __DVBSDFFDEVICE_H 12 #include <vdr/dvbdevice.h> 13 #include <vdr/dvbspu.h> 59 virtual uchar *
GrabImage(
int &Size,
bool Jpeg =
true,
int Quality = -1,
int SizeX = -1,
int SizeY = -1);
66 virtual void GetVideoSize(
int &Width,
int &Height,
double &VideoAspect);
67 virtual void GetOsdSize(
int &Width,
int &Height,
double &PixelAspect);
95 virtual int64_t
GetSTC(
void);
96 virtual void TrickSpeed(
int Speed,
bool Forward);
97 virtual void Clear(
void);
98 virtual void Play(
void);
100 virtual void Mute(
void);
102 virtual bool Poll(
cPoller &Poller,
int TimeoutMs = 0);
103 virtual bool Flush(
int TimeoutMs = 0);
115 #endif //__DVBSDFFDEVICE_H
virtual void Clear(void)
Clears all video and audio data from the device.
virtual void SetAudioTrackDevice(eTrackType Type)
Sets the current audio track to the given value.
virtual int PlayTsAudio(const uchar *Data, int Length)
Plays the given data block as audio.
virtual void SetVolumeDevice(int Volume)
Sets the audio volume on this device (Volume = 0...255).
virtual void SetVideoFormat(bool VideoFormat16_9)
Sets the output video format to either 16:9 or 4:3 (only useful if this device has an MPEG decoder)...
virtual int PlayTsVideo(const uchar *Data, int Length)
Plays the given data block as video.
virtual void Freeze(void)
Puts the device into "freeze frame" mode.
virtual bool CanReplay(void) const
Returns true if this device can currently start a replay session.
virtual void TrickSpeed(int Speed, bool Forward)
Sets the device into a mode where replay is done slower.
virtual ~cDvbSdFfDevice()
virtual int PlayAudio(const uchar *Data, int Length, uchar Id)
Plays the given data block as audio.
virtual void Mute(void)
Turns off audio while replaying.
virtual bool AvoidRecording(void) const
Returns true if this device should only be used for recording if no other device is available...
cDvbSpuDecoder * spuDecoder
virtual int64_t GetSTC(void)
Gets the current System Time Counter, which can be used to synchronize audio, video and subtitles...
virtual void MakePrimaryDevice(bool On)
Informs a device that it will be the primary device.
virtual bool ProvidesSource(int Source) const
Returns true if this device can provide the given source.
virtual void GetOsdSize(int &Width, int &Height, double &PixelAspect)
Returns the Width, Height and PixelAspect ratio the OSD should use to best fit the resolution of the ...
virtual void Play(void)
Sets the device into play mode (after a previous trick mode).
virtual bool HasDecoder(void) const
Tells whether this device has an MPEG decoder.
virtual void SetDigitalAudioDevice(bool On)
Tells the output device that the current audio track is Dolby Digital.
virtual bool SetChannelDevice(const cChannel *Channel, bool LiveView)
Sets the device to the given channel (actual physical setup).
virtual void SetAudioChannelDevice(int AudioChannel)
Sets the audio channel to stereo (0), mono left (1) or mono right (2).
The cDvbSdFfDevice implements a DVB device which can be accessed through the Linux DVB driver API...
virtual bool Poll(cPoller &Poller, int TimeoutMs=0)
Returns true if the device itself or any of the file handles in Poller is ready for further action...
virtual int NumProvidedSystems(void) const
Returns the number of individual "delivery systems" this device provides.
static bool Probe(int Adapter, int Frontend)
Probes for existing DVB devices.
virtual void StillPicture(const uchar *Data, int Length)
Displays the given I-frame as a still picture.
bool SetAudioBypass(bool On)
virtual cSpuDecoder * GetSpuDecoder(void)
Returns a pointer to the device's SPU decoder (or NULL, if this device doesn't have an SPU decoder)...
virtual bool Flush(int TimeoutMs=0)
Returns true if the device's output buffers are empty, i.
cDvbSdFfDevice(int Adapter, int Frontend, bool OutputOnly)
virtual int PlayVideo(const uchar *Data, int Length)
Plays the given data block as video.
void SetOutputOnly(bool On)
void TurnOffLiveMode(bool LiveView)
virtual uchar * GrabImage(int &Size, bool Jpeg=true, int Quality=-1, int SizeX=-1, int SizeY=-1)
Grabs the currently visible screen image.
virtual void SetVideoDisplayFormat(eVideoDisplayFormat VideoDisplayFormat)
Sets the video display format to the given one (only useful if this device has an MPEG decoder)...
The cDvbDevice implements a DVB device which can be accessed through the Linux DVB driver API...
static int devVideoOffset
virtual bool SetPid(cPidHandle *Handle, int Type, bool On)
Does the actual PID setting on this device.
virtual bool SetPlayMode(ePlayMode PlayMode)
Sets the device into the given play mode.
virtual void GetVideoSize(int &Width, int &Height, double &VideoAspect)
Returns the Width, Height and VideoAspect ratio of the currently displayed video material.
virtual int GetAudioChannelDevice(void)
Gets the current audio channel, which is stereo (0), mono left (1) or mono right (2).