summaryrefslogtreecommitdiff
path: root/device.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <kls (at) cadsoft (dot) de>2009-05-03 17:15:00 +0200
committerKlaus Schmidinger <kls (at) cadsoft (dot) de>2009-05-03 17:15:00 +0200
commit991eda006700f1703bcec528c1ff178a4cab9048 (patch)
tree11f216938606e63027bc717e3d36668df646f474 /device.c
parent733a2becc44a02daf10b97d24b8a9c8b00de3964 (diff)
downloadvdr-patch-lnbsharing-991eda006700f1703bcec528c1ff178a4cab9048.tar.gz
vdr-patch-lnbsharing-991eda006700f1703bcec528c1ff178a4cab9048.tar.bz2
Version 1.7.7vdr-1.7.7
- The new function cDevice::GetVideoSize() returns the size and aspect ratio of the video material currently displayed. This function is used to determine the proper size of the OSD. Plugin authors should implement this function in classes derived from cDevice, if they are able to replay video. - The OSD and font sizes are now defined in percent of the actual video display size. The maximum OSD size has been raised to 1920x1080, to allow full screen OSD on HD systems. - The OSD size is now automatically adjusted to the actual video display (provided the output device implements the GetVideoSize() function). - cFrameDetector::Analyze() now syncs on the TS packet sync bytes (thanks to Oliver Endriss for reporting broken index generation after a buffer overflow).
Diffstat (limited to 'device.c')
-rw-r--r--device.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/device.c b/device.c
index 6121620..ca2c3b3 100644
--- a/device.c
+++ b/device.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: device.c 2.16 2009/04/18 09:41:00 kls Exp $
+ * $Id: device.c 2.17 2009/05/02 12:17:39 kls Exp $
*/
#include "device.h"
@@ -19,6 +19,11 @@
#include "status.h"
#include "transfer.h"
+const char *VideoAspectString[] = { "4:3",
+ "16:9",
+ "2.21:9"
+ };
+
// --- cLiveSubtitle ---------------------------------------------------------
class cLiveSubtitle : public cReceiver {
@@ -384,6 +389,13 @@ eVideoSystem cDevice::GetVideoSystem(void)
return vsPAL;
}
+void cDevice::GetVideoSize(int &Width, int &Height, eVideoAspect &Aspect)
+{
+ Width = MINOSDWIDTH;
+ Height = MINOSDHEIGHT;
+ Aspect = va4_3;
+}
+
//#define PRINTPIDS(s) { char b[500]; char *q = b; q += sprintf(q, "%d %s ", CardIndex(), s); for (int i = 0; i < MAXPIDHANDLES; i++) q += sprintf(q, " %s%4d %d", i == ptOther ? "* " : "", pidHandles[i].pid, pidHandles[i].used); dsyslog(b); }
#define PRINTPIDS(s)