summaryrefslogtreecommitdiff
path: root/softhddevice.cpp
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2012-01-20 21:46:22 +0100
committerJohns <johns98@gmx.net>2012-01-20 21:46:22 +0100
commite32857a27ac74ac063507eebd3e39bb2fdee1b3e (patch)
tree0d704db6e6473d5805826c95aeb7bbcb67b8e9a7 /softhddevice.cpp
parent5ba88bb822d8feb01eefc4c1938bf427c5b96ee2 (diff)
downloadvdr-plugin-softhddevice-e32857a27ac74ac063507eebd3e39bb2fdee1b3e.tar.gz
vdr-plugin-softhddevice-e32857a27ac74ac063507eebd3e39bb2fdee1b3e.tar.bz2
VDPAU: Add screenshot support.
Diffstat (limited to 'softhddevice.cpp')
-rw-r--r--softhddevice.cpp23
1 files changed, 16 insertions, 7 deletions
diff --git a/softhddevice.cpp b/softhddevice.cpp
index 2e5ef41..cbfd242 100644
--- a/softhddevice.cpp
+++ b/softhddevice.cpp
@@ -126,7 +126,7 @@ extern "C" void FeedKeyPress(const char *keymap, const char *key, int repeat,
csoft = new cSoftRemote(keymap);
}
- dsyslog("[softhddev]%s %s, %s\n", __FUNCTION__, keymap, key);
+ //dsyslog("[softhddev]%s %s, %s\n", __FUNCTION__, keymap, key);
csoft->Put(key, repeat, release);
}
@@ -295,8 +295,8 @@ void cSoftOsd::Flush(void)
h = pm->ViewPort().Height();
/*
- dsyslog("[softhddev]%s: draw %dx%d+%d+%d %p\n", __FUNCTION__, w, h, x,
- y, pm->Data());
+ dsyslog("[softhddev]%s: draw %dx%d+%d+%d %p\n", __FUNCTION__, w, h,
+ x, y, pm->Data());
*/
OsdDrawARGB(x, y, w, h, pm->Data());
@@ -832,13 +832,22 @@ int cSoftHdDevice::PlayTsAudio(const uchar * data, int length)
#endif
-uchar *cSoftHdDevice::GrabImage(int &size, bool jpeg, int quality, int sizex,
- int sizey)
+/**
+** Grabs the currently visible screen image.
+**
+** @param size size of the returned data
+** @param jpeg flag true, create JPEG data
+** @param quality JPEG quality
+** @param width number of horizontal pixels in the frame
+** @param height number of vertical pixels in the frame
+*/
+uchar *cSoftHdDevice::GrabImage(int &size, bool jpeg, int quality, int width,
+ int height)
{
dsyslog("[softhddev]%s: %d, %d, %d, %dx%d\n", __FUNCTION__, size, jpeg,
- quality, sizex, sizey);
+ quality, width, height);
- return NULL;
+ return ::GrabImage(&size, jpeg, quality, width, height);
}
//////////////////////////////////////////////////////////////////////////////