Go to the documentation of this file.
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);
112 virtual bool Probe(
int Adapter,
int Frontend);
115 #endif //__DVBSDFFDEVICE_H
cDvbSdFfDeviceProbe(void)
virtual int PlayTsAudio(const uchar *Data, int Length)
Plays the given data block as audio.
cDvbSpuDecoder * spuDecoder
virtual ~cDvbSdFfDevice()
virtual bool HasDecoder(void) const
Tells whether this device has an MPEG decoder.
virtual int PlayTsVideo(const uchar *Data, int Length)
Plays the given data block as video.
virtual void SetAudioTrackDevice(eTrackType Type)
Sets the current audio track to the given value.
void SetOutputOnly(bool On)
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 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 bool ProvidesSource(int Source) const
Returns true if this device can provide the given source.
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 void StillPicture(const uchar *Data, int Length)
Displays the given I-frame as a still picture.
virtual void Play(void)
Sets the device into play mode (after a previous trick mode).
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).
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 void SetDigitalAudioDevice(bool On)
Tells the output device that the current audio track is Dolby Digital.
virtual int64_t GetSTC(void)
Gets the current System Time Counter, which can be used to synchronize audio, video and subtitles.
bool SetAudioBypass(bool On)
virtual bool AvoidRecording(void) const
Returns true if this device should only be used for recording if no other device is available.
virtual bool CanReplay(void) const
Returns true if this device can currently start a replay session.
virtual void MakePrimaryDevice(bool On)
Informs a device that it will be the primary device.
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 bool Probe(int Adapter, int Frontend)
Probes for a DVB device at the given Adapter and creates the appropriate object derived from cDvbDevi...
virtual bool Flush(int TimeoutMs=0)
Returns true if the device's output buffers are empty, i.
cDvbSdFfDevice(int Adapter, int Frontend, bool OutputOnly)
The cDvbDevice implements a DVB device which can be accessed through the Linux DVB driver API.
virtual bool SetPid(cPidHandle *Handle, int Type, bool On)
Does the actual PID setting on this device.
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).
virtual int PlayVideo(const uchar *Data, int Length)
Plays the given data block as video.
static int devVideoOffset
virtual int NumProvidedSystems(void) const
Returns the number of individual "delivery systems" this device provides.
virtual void Clear(void)
Clears all video and audio data from the device.
virtual void GetVideoSize(int &Width, int &Height, double &VideoAspect)
Returns the Width, Height and VideoAspect ratio of the currently displayed video material.
virtual void SetVolumeDevice(int Volume)
Sets the audio volume on this device (Volume = 0...255).
The cDvbSdFfDevice implements a DVB device which can be accessed through the Linux DVB driver API.
virtual int GetAudioChannelDevice(void)
Gets the current audio channel, which is stereo (0), mono left (1) or mono right (2).
virtual void Freeze(void)
Puts the device into "freeze frame" mode.
virtual void TrickSpeed(int Speed, bool Forward)
Sets the device into a mode where replay is done slower.
virtual bool SetPlayMode(ePlayMode PlayMode)
Sets the device into the given play mode.