Browse Source

ATV Demodulator: New frame rates and number of lines

chirpmodem-v8.0.0
f4exb 10 years ago
parent
commit
d046b7dd3e
  1. 30
      plugins/channelrx/demodatv/atvdemodgui.cpp
  2. 30
      plugins/channelrx/demodatv/atvdemodgui.ui

30
plugins/channelrx/demodatv/atvdemodgui.cpp

@ -699,6 +699,12 @@ float ATVDemodGUI::getFps(int fpsIndex) @@ -699,6 +699,12 @@ float ATVDemodGUI::getFps(int fpsIndex)
case 3:
return 16.0f;
break;
case 4:
return 12.0f;
break;
case 5:
return 10.0f;
break;
case 0:
default:
return 25.0f;
@ -718,6 +724,18 @@ float ATVDemodGUI::getNominalLineTime(int nbLinesIndex, int fpsIndex) @@ -718,6 +724,18 @@ float ATVDemodGUI::getNominalLineTime(int nbLinesIndex, int fpsIndex)
case 2:
return 1.0f / (405 * fps);
break;
case 3:
return 1.0f / (343 * fps);
break;
case 4:
return 1.0f / (240 * fps);
break;
case 5:
return 1.0f / (180 * fps);
break;
case 6:
return 1.0f / (90 * fps);
break;
case 0:
default:
return 1.0f / (625 * fps);
@ -735,6 +753,18 @@ int ATVDemodGUI::getNumberOfLines(int nbLinesIndex) @@ -735,6 +753,18 @@ int ATVDemodGUI::getNumberOfLines(int nbLinesIndex)
case 2:
return 405;
break;
case 3:
return 343;
break;
case 4:
return 240;
break;
case 5:
return 180;
break;
case 6:
return 90;
break;
case 0:
default:
return 625;

30
plugins/channelrx/demodatv/atvdemodgui.ui

@ -522,6 +522,26 @@ @@ -522,6 +522,26 @@
<string>405</string>
</property>
</item>
<item>
<property name="text">
<string>343</string>
</property>
</item>
<item>
<property name="text">
<string>240</string>
</property>
</item>
<item>
<property name="text">
<string>180</string>
</property>
</item>
<item>
<property name="text">
<string>90</string>
</property>
</item>
</widget>
</item>
<item>
@ -549,6 +569,16 @@ @@ -549,6 +569,16 @@
<string>16 Fps</string>
</property>
</item>
<item>
<property name="text">
<string>12 Fps</string>
</property>
</item>
<item>
<property name="text">
<string>10 Fps</string>
</property>
</item>
</widget>
</item>
<item>

Loading…
Cancel
Save