Added maximum SNR value for PCTV Systems PCTV 73ESE

This commit is contained in:
Klaus Schmidinger 2012-12-30 11:30:17 +01:00
parent 0dd2dcf5a2
commit 811078a0fe
3 changed files with 7 additions and 2 deletions

View File

@ -3029,3 +3029,6 @@ Stefan Blochberger <Stefan.Blochberger@gmx.de>
recording is started
for suggesting that floating point numbers presented to the user shall be displayed
in the way defined by the current locale
Cedric Dewijs <cedric.dewijs@telfort.nl>
for adding maximum SNR value for PCTV Systems PCTV 73ESE

View File

@ -7460,7 +7460,7 @@ Video Disk Recorder Revision History
is an I-frame (which normally shouldn't occur).
- Fixed replaying ongoing recordings from other VDR instances.
2012-12-29: Version 1.7.35
2012-12-30: Version 1.7.35
- Making sure that plugins include the VDR header files from the actual VDR source
directory when doing "make plugins" (suggested by Christoper Reimer).
@ -7492,3 +7492,4 @@ Video Disk Recorder Revision History
- Removed "include" from the DVBDIR setting in the VDR Makefile (reported by Oliver
Endriss). You may need to adjust your DVBDIR setting in Make.config, in case you
use it.
- Added maximum SNR value for PCTV Systems PCTV 73ESE (thanks to Cedric Dewijs).

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: dvbdevice.c 2.75 2012/12/03 14:07:01 kls Exp $
* $Id: dvbdevice.c 2.76 2012/12/30 11:27:39 kls Exp $
*/
#include "dvbdevice.h"
@ -632,6 +632,7 @@ int cDvbTuner::GetSignalQuality(void) const
// special treatment to map their Snr value into the range 0...0xFFFF.
switch (subsystemId) {
case 0x13C21019: MaxSnr = 200; break; // TT-budget S2-3200 (DVB-S/DVB-S2)
case 0x20130245: MaxSnr = 255; break; // PCTV Systems PCTV 73ESE
}
int a = int(Snr) * 100 / MaxSnr;
int b = 100 - (Unc * 10 + (Ber / 256) * 5);