[vdr] hardcoded NTSC/PAL values in VDR?
Klaus Schmidinger
Klaus.Schmidinger at cadsoft.de
Wed Apr 5 22:53:34 CEST 2006
C.Y.M wrote:
> There seem to be a few hardcoded values for PAL in VDR's source code. Klaus, can
> you tell me if any of these would make a difference to a NTSC only system? I
> know that most tv's in Europe can do both NTSC and PAL. Unfortunately, almost
> all the tv's in America only support NTSC and cant handle the PAL formats.
I guess if you have an NTSC only system these changes should be ok for you.
Note to self: make these configurable/automatic after version 1.4 ;-)
Klaus
> diff -ruN vdr-1.3.45.orig/recording.h vdr-1.3.45/recording.h
> --- vdr-1.3.45.orig/recording.h 2006-03-26 08:34:35.000000000 -0800
> +++ vdr-1.3.45/recording.h 2006-03-26 08:36:45.000000000 -0800
> @@ -179,7 +179,7 @@
> };
>
> //XXX+
> -#define FRAMESPERSEC 25
> +#define FRAMESPERSEC 30
>
> // The maximum size of a single frame (up to HDTV 1920x1080):
> #define MAXFRAMESIZE KILOBYTE(512)
> --- vdr-1.3.45/dvbosd.c.orig 2006-04-04 02:46:01.000000000 -0700
> +++ vdr-1.3.45/dvbosd.c 2006-04-04 02:47:00.000000000 -0700
> @@ -85,7 +85,7 @@
> return oeBppNotSupported;
> if ((Areas[i].Width() & (8 / Areas[i].bpp - 1)) != 0)
> return oeWrongAlignment;
> - if (Areas[i].Width() < 1 || Areas[i].Height() < 1 || Areas[i].Width() > 720 || Areas[i].Height() > 576)
> + if (Areas[i].Width() < 1 || Areas[i].Height() < 1 || Areas[i].Width() > 720 || Areas[i].Height() > 480)
> return oeWrongAreaSize;
> TotalMemory += Areas[i].Width() * Areas[i].Height() / (8 / Areas[i].bpp);
> }
> --- vdr-1.3.45/dvbspu.c.orig 2006-04-04 02:46:15.000000000 -0700
> +++ vdr-1.3.45/dvbspu.c 2006-04-04 02:47:21.000000000 -0700
> @@ -56,7 +56,7 @@
> #define setMax(a, b) if (a < b) a = b
>
> #define spuXres 720
> -#define spuYres 576
> +#define spuYres 480
>
> #define revRect(r1, r2) { r1.x1 = r2.x2; r1.y1 = r2.y2; r1.x2 = r2.x1; r1.y2 = r2.y1; }
More information about the vdr
mailing list