mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-26 09:48:45 -05:00
ATV mod: corrected line timings and created a diagonal pattern
This commit is contained in:
parent
d67174ef8d
commit
31555e4476
@ -760,6 +760,11 @@
|
|||||||
<string>V Grad</string>
|
<string>V Grad</string>
|
||||||
</property>
|
</property>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>Diagonal</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Image</string>
|
<string>Image</string>
|
||||||
|
@ -44,6 +44,7 @@ struct ATVModSettings
|
|||||||
ATVModInputChessboard,
|
ATVModInputChessboard,
|
||||||
ATVModInputHGradient,
|
ATVModInputHGradient,
|
||||||
ATVModInputVGradient,
|
ATVModInputVGradient,
|
||||||
|
ATVModInputDiagonal,
|
||||||
ATVModInputImage,
|
ATVModInputImage,
|
||||||
ATVModInputVideo,
|
ATVModInputVideo,
|
||||||
ATVModInputCamera
|
ATVModInputCamera
|
||||||
|
@ -517,8 +517,8 @@ float ATVModSource::getRFBandwidthDivisor(ATVModSettings::ATVModulation modulati
|
|||||||
void ATVModSource::applyStandard(const ATVModSettings& settings)
|
void ATVModSource::applyStandard(const ATVModSettings& settings)
|
||||||
{
|
{
|
||||||
m_pointsPerSync = (uint32_t) ((4.7f / 64.0f) * m_pointsPerLine);
|
m_pointsPerSync = (uint32_t) ((4.7f / 64.0f) * m_pointsPerLine);
|
||||||
m_pointsPerBP = (uint32_t) ((4.7f / 64.0f) * m_pointsPerLine);
|
m_pointsPerBP = (uint32_t) ((5.8f / 64.0f) * m_pointsPerLine);
|
||||||
m_pointsPerFP = (uint32_t) ((2.6f / 64.0f) * m_pointsPerLine);
|
m_pointsPerFP = (uint32_t) ((1.5f / 64.0f) * m_pointsPerLine);
|
||||||
m_pointsPerFSync = (uint32_t) ((2.3f / 64.0f) * m_pointsPerLine);
|
m_pointsPerFSync = (uint32_t) ((2.3f / 64.0f) * m_pointsPerLine);
|
||||||
|
|
||||||
m_pointsPerImgLine = m_pointsPerLine - m_pointsPerSync - m_pointsPerBP - m_pointsPerFP;
|
m_pointsPerImgLine = m_pointsPerLine - m_pointsPerSync - m_pointsPerBP - m_pointsPerFP;
|
||||||
|
@ -144,7 +144,7 @@ private:
|
|||||||
int m_pointsPerBP; //!< number of line points for the back porch
|
int m_pointsPerBP; //!< number of line points for the back porch
|
||||||
int m_pointsPerImgLine; //!< number of line points for the image line
|
int m_pointsPerImgLine; //!< number of line points for the image line
|
||||||
uint32_t m_pointsPerFP; //!< number of line points for the front porch
|
uint32_t m_pointsPerFP; //!< number of line points for the front porch
|
||||||
int m_pointsPerFSync; //!< number of line points for the field first sync
|
int m_pointsPerFSync; //!< number of line points for the field first sync - a.k.a Equalizing pulse
|
||||||
uint32_t m_pointsPerHBar; //!< number of line points for a bar of the bar chart
|
uint32_t m_pointsPerHBar; //!< number of line points for a bar of the bar chart
|
||||||
uint32_t m_linesPerVBar; //!< number of lines for a bar of the bar chart
|
uint32_t m_linesPerVBar; //!< number of lines for a bar of the bar chart
|
||||||
uint32_t m_pointsPerTU; //!< number of line points per time unit
|
uint32_t m_pointsPerTU; //!< number of line points per time unit
|
||||||
@ -276,6 +276,9 @@ private:
|
|||||||
case ATVModSettings::ATVModInputVGradient:
|
case ATVModSettings::ATVModInputVGradient:
|
||||||
sample = ((iLine -5) / (float) m_nbImageLines2) * m_spanLevel + m_blackLevel;
|
sample = ((iLine -5) / (float) m_nbImageLines2) * m_spanLevel + m_blackLevel;
|
||||||
break;
|
break;
|
||||||
|
case ATVModSettings::ATVModInputDiagonal:
|
||||||
|
sample = pointIndex < (iLine * m_pointsPerImgLine) / m_nbLines2 ? m_blackLevel : m_settings.m_uniformLevel + m_blackLevel;
|
||||||
|
break;
|
||||||
case ATVModSettings::ATVModInputImage:
|
case ATVModSettings::ATVModInputImage:
|
||||||
if (!m_imageOK || (iLineImage < -oddity) || m_image.empty())
|
if (!m_imageOK || (iLineImage < -oddity) || m_image.empty())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user