summaryrefslogtreecommitdiff
path: root/softhddev.c
diff options
context:
space:
mode:
Diffstat (limited to 'softhddev.c')
-rw-r--r--softhddev.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/softhddev.c b/softhddev.c
index 61b6258..4c99b7d 100644
--- a/softhddev.c
+++ b/softhddev.c
@@ -1,7 +1,7 @@
///
/// @file softhddev.c @brief A software HD device plugin for VDR.
///
-/// Copyright (c) 2011, 2013 by Johns. All Rights Reserved.
+/// Copyright (c) 2011 - 2013 by Johns. All Rights Reserved.
///
/// Contributor(s):
///
@@ -2836,3 +2836,18 @@ void GetStats(int *missed, int *duped, int *dropped, int *counter)
VideoGetStats(MyHwDecoder, missed, duped, dropped, counter);
}
}
+
+/**
+** Scale the currently shown video.
+**
+** @param x video window x coordinate OSD relative
+** @param y video window y coordinate OSD relative
+** @param width video window width OSD relative
+** @param height video window height OSD relative
+*/
+void ScaleVideo(int x, int y, int width, int height)
+{
+ if (MyHwDecoder) {
+ VideoSetOutputPosition(MyHwDecoder, x, y, width, height);
+ }
+}