1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-15 12:51:49 -05:00

ATV: added 120 lines mode

This commit is contained in:
f4exb 2017-04-06 08:28:30 +02:00
parent 7a7d65b999
commit cb9329e6de
4 changed files with 22 additions and 35 deletions

View File

@ -718,38 +718,9 @@ float ATVDemodGUI::getFps(int fpsIndex)
float ATVDemodGUI::getNominalLineTime(int nbLinesIndex, int fpsIndex) float ATVDemodGUI::getNominalLineTime(int nbLinesIndex, int fpsIndex)
{ {
float fps = getFps(fpsIndex); float fps = getFps(fpsIndex);
int nbLines = getNumberOfLines(nbLinesIndex);
switch(nbLinesIndex) return 1.0f / (nbLines * fps);
{
case 1:
return 1.0f / (525 * fps);
break;
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 7:
return 1.0f / (60 * fps);
break;
case 8:
return 1.0f / (32 * fps);
break;
case 0:
default:
return 1.0f / (625 * fps);
break;
}
} }
int ATVDemodGUI::getNumberOfLines(int nbLinesIndex) int ATVDemodGUI::getNumberOfLines(int nbLinesIndex)
@ -772,12 +743,15 @@ int ATVDemodGUI::getNumberOfLines(int nbLinesIndex)
return 180; return 180;
break; break;
case 6: case 6:
return 90; return 120;
break; break;
case 7: case 7:
return 60; return 90;
break; break;
case 8: case 8:
return 60;
break;
case 9:
return 32; return 32;
break; break;
case 0: case 0:

View File

@ -544,6 +544,11 @@
<string>180</string> <string>180</string>
</property> </property>
</item> </item>
<item>
<property name="text">
<string>120</string>
</property>
</item>
<item> <item>
<property name="text"> <property name="text">
<string>90</string> <string>90</string>

View File

@ -286,12 +286,15 @@ int ATVModGUI::getNbLines()
return 180; return 180;
break; break;
case 6: case 6:
return 90; return 120;
break; break;
case 7: case 7:
return 60; return 90;
break; break;
case 8: case 8:
return 60;
break;
case 9:
return 32; return 32;
break; break;
case 0: case 0:

View File

@ -569,6 +569,11 @@
<string>180</string> <string>180</string>
</property> </property>
</item> </item>
<item>
<property name="text">
<string>120</string>
</property>
</item>
<item> <item>
<property name="text"> <property name="text">
<string>90</string> <string>90</string>