diff options
author | Johns <johns98@gmx.net> | 2012-02-16 15:31:53 +0100 |
---|---|---|
committer | Johns <johns98@gmx.net> | 2012-02-16 15:31:53 +0100 |
commit | 852d3672252bd13b8337b1f28c05fa457a3f1b7f (patch) | |
tree | 2450cae54bb61dd38a0301783249d47f684dae0b /softhddevice.cpp | |
parent | a7f0cf6d6f2d18c982a08695ca4363aa2a55693e (diff) | |
download | vdr-plugin-softhddevice-852d3672252bd13b8337b1f28c05fa457a3f1b7f.tar.gz vdr-plugin-softhddevice-852d3672252bd13b8337b1f28c05fa457a3f1b7f.tar.bz2 |
Adds trick speed support.
Diffstat (limited to 'softhddevice.cpp')
-rw-r--r-- | softhddevice.cpp | 34 |
1 files changed, 26 insertions, 8 deletions
diff --git a/softhddevice.cpp b/softhddevice.cpp index 35d32ed..6002d6e 100644 --- a/softhddevice.cpp +++ b/softhddevice.cpp @@ -42,7 +42,7 @@ extern "C" ////////////////////////////////////////////////////////////////////////////// -static const char *const VERSION = "0.4.8"; +static const char *const VERSION = "0.4.9"; static const char *const DESCRIPTION = trNOOP("A software and GPU emulated HD device"); @@ -144,12 +144,15 @@ extern "C" void FeedKeyPress(const char *keymap, const char *key, int repeat, // OSD ////////////////////////////////////////////////////////////////////////////// +/** +** Soft device plugin OSD class. +*/ class cSoftOsd:public cOsd { - int Level; ///< level: subtitle + //int Level; ///< level: subtitle public: - cSoftOsd(int, int, uint); + cSoftOsd(int, int, uint); virtual ~ cSoftOsd(void); virtual void Flush(void); virtual void SetActive(bool); @@ -167,7 +170,7 @@ static volatile char OsdDirty; ///< flag force redraw everything */ void cSoftOsd::SetActive(bool on) { - dsyslog("[softhddev]%s: %d\n", __FUNCTION__, on); + //dsyslog("[softhddev]%s: %d\n", __FUNCTION__, on); if (Active() == on) { return; // already active, no action @@ -188,7 +191,7 @@ cSoftOsd::cSoftOsd(int left, int top, uint level) OsdHeight(), left, top, level); */ - this->Level = level; + //this->Level = level; SetActive(true); } @@ -334,6 +337,9 @@ void cSoftOsd::Flush(void) // OSD provider ////////////////////////////////////////////////////////////////////////////// +/** +** Soft device plugin OSD provider class. +*/ class cSoftOsdProvider:public cOsdProvider { private: @@ -357,12 +363,13 @@ cOsd *cSoftOsdProvider::CreateOsd(int left, int top, uint level) { //dsyslog("[softhddev]%s: %d, %d, %d\n", __FUNCTION__, left, top, level); - Osd = new cSoftOsd(left, top, level); - return Osd; + return Osd = new cSoftOsd(left, top, level); } /** -** Returns true if this OSD provider is able to handle a true color OSD. +** Check if this OSD provider is able to handle a true color OSD. +** +** @returns true we are able to handle a true color OSD. */ bool cSoftOsdProvider::ProvidesTrueColor(void) { @@ -810,13 +817,21 @@ int64_t cSoftHdDevice::GetSTC(void) /** ** Set trick play speed. ** +** Every single frame shall then be displayed the given number of +** times. +** ** @param speed trick speed */ void cSoftHdDevice::TrickSpeed(int speed) { dsyslog("[softhddev]%s: %d\n", __FUNCTION__, speed); + + ::TrickSpeed(speed); } +/** +** Clears all video and audio data from the device. +*/ void cSoftHdDevice::Clear(void) { dsyslog("[softhddev]%s:\n", __FUNCTION__); @@ -825,6 +840,9 @@ void cSoftHdDevice::Clear(void) ::Clear(); } +/** +** Sets the device into play mode (after a previous trick mode) +*/ void cSoftHdDevice::Play(void) { dsyslog("[softhddev]%s:\n", __FUNCTION__); |