From 3d5e59a6e516dd58d0e93d283787a1f54515ece1 Mon Sep 17 00:00:00 2001 From: Johns Date: Tue, 1 Jan 2013 15:21:28 +0100 Subject: Support multiple streams with ScaleVideo. --- softhddev.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'softhddev.c') 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); + } +} -- cgit v1.2.3