summaryrefslogtreecommitdiff
path: root/softhddev.c
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 /softhddev.c
parent5ba88bb822d8feb01eefc4c1938bf427c5b96ee2 (diff)
downloadvdr-plugin-softhddevice-e32857a27ac74ac063507eebd3e39bb2fdee1b3e.tar.gz
vdr-plugin-softhddevice-e32857a27ac74ac063507eebd3e39bb2fdee1b3e.tar.bz2
VDPAU: Add screenshot support.
Diffstat (limited to 'softhddev.c')
-rw-r--r--softhddev.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/softhddev.c b/softhddev.c
index 267b603..4ddf06c 100644
--- a/softhddev.c
+++ b/softhddev.c
@@ -791,6 +791,29 @@ int PlayVideo(const uint8_t * data, int size)
return size;
}
+/**
+** 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
+*/
+uint8_t *GrabImage(int *size, int jpeg, int quality, int width, int height)
+{
+ if (jpeg) {
+ (void)quality;
+ Error(_("softhddev: jpeg grabbing not supported\n"));
+ return NULL;
+ }
+ if (width != -1 && height != -1) {
+ Error(_("softhddev: scaling not supported\n"));
+ return NULL;
+ }
+ return VideoGrab(size, &width, &height);
+}
+
//////////////////////////////////////////////////////////////////////////////
/**