From 26ffdd1c8361f714fff78fd746f209f386e6b997 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Fri, 15 Aug 2003 13:05:50 +0200 Subject: Fixed scaling SPU bitmaps in Letterbox mode when playing NTSC material --- dvbdevice.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'dvbdevice.c') 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 }; -- cgit v1.2.3