mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-26 01:39:05 -05:00
ATV modulator: fixed horizontal and vertical bars
This commit is contained in:
parent
1d2bcf95f5
commit
cbb963754c
@ -50,7 +50,16 @@
|
||||
<property name="spacing">
|
||||
<number>3</number>
|
||||
</property>
|
||||
<property name="margin">
|
||||
<property name="leftMargin">
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="topMargin">
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="rightMargin">
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="bottomMargin">
|
||||
<number>2</number>
|
||||
</property>
|
||||
<item>
|
||||
@ -680,12 +689,6 @@
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="standard">
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>70</width>
|
||||
<height>16777215</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>TV standard scheme</string>
|
||||
</property>
|
||||
@ -706,12 +709,12 @@
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>ShI</string>
|
||||
<string>ShortI</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>ShNI</string>
|
||||
<string>ShortNI</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
|
@ -27,7 +27,7 @@
|
||||
|
||||
const PluginDescriptor ATVModPlugin::m_pluginDescriptor = {
|
||||
QString("ATV Modulator"),
|
||||
QString("4.12.1"),
|
||||
QString("4.12.2"),
|
||||
QString("(c) Edouard Griffiths, F4EXB"),
|
||||
QString("https://github.com/f4exb/sdrangel"),
|
||||
true,
|
||||
|
@ -530,7 +530,7 @@ void ATVModSource::applyStandard(const ATVModSettings& settings)
|
||||
m_nbHorizPoints = m_pointsPerLine;
|
||||
|
||||
m_pointsPerHBar = m_pointsPerImgLine / m_nbBars;
|
||||
m_hBarIncrement = m_spanLevel / (float) m_nbBars;
|
||||
m_hBarIncrement = m_spanLevel / (float) (m_nbBars-1);
|
||||
m_vBarIncrement = m_spanLevel / (float) m_nbBars;
|
||||
|
||||
m_nbLines = settings.m_nbLines;
|
||||
|
@ -263,10 +263,10 @@ private:
|
||||
switch(m_settings.m_atvModInput)
|
||||
{
|
||||
case ATVModSettings::ATVModInputHBars:
|
||||
sample = (((float)pointIndex) / m_pointsPerHBar) * m_hBarIncrement + m_blackLevel;
|
||||
sample = (pointIndex / m_pointsPerHBar) * m_hBarIncrement + m_blackLevel;
|
||||
break;
|
||||
case ATVModSettings::ATVModInputVBars:
|
||||
sample = (((float)iLine) / m_linesPerVBar) * m_vBarIncrement + m_blackLevel;
|
||||
sample = (iLine / m_linesPerVBar) * m_vBarIncrement + m_blackLevel;
|
||||
break;
|
||||
case ATVModSettings::ATVModInputChessboard:
|
||||
sample = (((iLine / m_linesPerVBar)*5 + (pointIndex / m_pointsPerHBar)) % 2) * m_spanLevel * m_settings.m_uniformLevel + m_blackLevel;
|
||||
|
Loading…
Reference in New Issue
Block a user