diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2009-05-03 14:15:21 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2009-05-03 14:15:21 +0200 |
commit | f161d1b2fe69d4fcfac37581fa60b5d9ce5ded11 (patch) | |
tree | ff65b9bcb3041e0733ebb1c59bac1203002c5903 /device.c | |
parent | 34b3d467849d0e8192c9cfbd65a630973f602863 (diff) | |
download | vdr-f161d1b2fe69d4fcfac37581fa60b5d9ce5ded11.tar.gz vdr-f161d1b2fe69d4fcfac37581fa60b5d9ce5ded11.tar.bz2 |
OSD sizes in percent; automatic update of OSD size
Diffstat (limited to 'device.c')
-rw-r--r-- | device.c | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -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) |