summaryrefslogtreecommitdiff
path: root/device.h
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.h
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.h')
-rw-r--r--device.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/device.h b/device.h
index c3a170b..74f1277 100644
--- a/device.h
+++ b/device.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: device.h 2.9 2009/04/05 12:12:44 kls Exp $
+ * $Id: device.h 2.10 2009/05/02 12:16:20 kls Exp $
*/
#ifndef __DEVICE_H
@@ -56,6 +56,13 @@ enum eVideoSystem { vsPAL,
vsNTSC
};
+enum eVideoAspect { va4_3,
+ va16_9,
+ va221_9
+ };
+
+extern const char *VideoAspectString[];
+
enum eVideoDisplayFormat { vdfPanAndScan,
vdfLetterBox,
vdfCenterCutOut
@@ -377,6 +384,9 @@ public:
virtual eVideoSystem GetVideoSystem(void);
///< Returns the video system of the currently displayed material
///< (default is PAL).
+ virtual void GetVideoSize(int &Width, int &Height, eVideoAspect &Aspect);
+ ///< Returns the With, Height and Aspect ratio of the currently
+ ///< displayed material.
// Track facilities