summaryrefslogtreecommitdiff
path: root/dvbdevice.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2003-08-15 13:05:50 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2003-08-15 13:05:50 +0200
commit26ffdd1c8361f714fff78fd746f209f386e6b997 (patch)
tree8ba5c9cd172cb4c93a17e4ca1c0b3d84d64e7689 /dvbdevice.c
parent71283dbeb112e182a39a59734a5ce451934ac581 (diff)
downloadvdr-26ffdd1c8361f714fff78fd746f209f386e6b997.tar.gz
vdr-26ffdd1c8361f714fff78fd746f209f386e6b997.tar.bz2
Fixed scaling SPU bitmaps in Letterbox mode when playing NTSC material
Diffstat (limited to 'dvbdevice.c')
-rw-r--r--dvbdevice.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/dvbdevice.c b/dvbdevice.c
index 7fc50a71..34d55829 100644
--- a/dvbdevice.c
+++ b/dvbdevice.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: dvbdevice.c 1.60 2003/05/24 13:23:51 kls Exp $
+ * $Id: dvbdevice.c 1.61 2003/08/15 13:03:41 kls Exp $
*/
#include "dvbdevice.h"
@@ -525,6 +525,19 @@ void cDvbDevice::SetVideoFormat(bool VideoFormat16_9)
CHECK(ioctl(fd_video, VIDEO_SET_FORMAT, VideoFormat16_9 ? VIDEO_FORMAT_16_9 : VIDEO_FORMAT_4_3));
}
+eVideoSystem cDvbDevice::GetVideoSystem(void)
+{
+ eVideoSystem VideoSytem = vsPAL;
+ video_size_t vs;
+ if (ioctl(fd_video, VIDEO_GET_SIZE, &vs) == 0) {
+ if (vs.h == 480 || vs.h == 240)
+ VideoSytem = vsNTSC;
+ }
+ else
+ LOG_ERROR;
+ return VideoSytem;
+}
+
// ptAudio ptVideo ptPcr ptTeletext ptDolby ptOther
dmx_pes_type_t PesTypes[] = { DMX_PES_AUDIO, DMX_PES_VIDEO, DMX_PES_PCR, DMX_PES_TELETEXT, DMX_PES_OTHER, DMX_PES_OTHER };