1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 09:48:45 -05:00

ATV Modulator: readme updates and set number of frames during FPS camera test to 100

This commit is contained in:
f4exb 2017-03-14 08:08:48 +01:00
parent f7626652e4
commit fa106b82c1
3 changed files with 10 additions and 6 deletions

View File

@ -38,6 +38,7 @@ const float ATVMod::m_blackLevel = 0.3f;
const float ATVMod::m_spanLevel = 0.7f; const float ATVMod::m_spanLevel = 0.7f;
const int ATVMod::m_levelNbSamples = 10000; // every 10ms const int ATVMod::m_levelNbSamples = 10000; // every 10ms
const int ATVMod::m_nbBars = 6; const int ATVMod::m_nbBars = 6;
const int ATVMod::m_cameraFPSTestNbFrames = 100;
ATVMod::ATVMod() : ATVMod::ATVMod() :
m_modPhasor(0.0f), m_modPhasor(0.0f),
@ -308,7 +309,7 @@ void ATVMod::pullVideo(Real& sample)
time(&start); time(&start);
for (int i = 0; i < 120; i++) for (int i = 0; i < m_cameraFPSTestNbFrames; i++)
{ {
camera.m_camera >> frame; camera.m_camera >> frame;
if (!frame.empty()) nbFrames++; if (!frame.empty()) nbFrames++;

View File

@ -523,7 +523,8 @@ private:
static const float m_blackLevel; static const float m_blackLevel;
static const float m_spanLevel; static const float m_spanLevel;
static const int m_levelNbSamples; static const int m_levelNbSamples;
static const int m_nbBars; // number of bars in bar or chessboard patterns static const int m_nbBars; //!< number of bars in bar or chessboard patterns
static const int m_cameraFPSTestNbFrames; //!< number of frames for camera FPS test
void apply(bool force = false); void apply(bool force = false);
void pullFinalize(Complex& ci, Sample& sample); void pullFinalize(Complex& ci, Sample& sample);

View File

@ -2,7 +2,7 @@
<h2>Introduction</h2> <h2>Introduction</h2>
This plugin can be used to generate an analog TV signal mostly used in amateur radio. This plugin can be used to generate an analog TV signal mostly used in amateur radio. It is limited to black and white images as only the luminance (256 levels) is supported.
<h2>Interface</h2> <h2>Interface</h2>
@ -29,17 +29,19 @@ Use this button to toggle mute for this channel.
The video signal can modulate the carrier in the following modes: The video signal can modulate the carrier in the following modes:
- AM: Amplitude modulation. Modulation index is 90%. - AM: Amplitude modulation. Modulation index is 90%.
- FM: Frequency modulation. Excursion is half the bandwidth available given the channel sample rate. - FM: Frequency modulation. Excursion is half the bandwidth available given the channel sample rate. e.g. for 4 MS/s sample rate this is +/-1 MHz (2 MHz total)
<h3>6: RF bandwidth</h3> <h3>6: RF bandwidth</h3>
This is the bandwidth in MHz of the channel filter when the interpolator is engaged. If the sink sample rate is a log2 multiple of the base rate that depends on the standard then there is no interpolation else the channel rate is set to the integer multiple of the base rate just below the sink sample rate. This is the bandwidth in MHz of the channel filter when the interpolator is engaged. If the sink sample rate is an integer multiple of the base rate that depends on the standard then there is no interpolation else the channel rate is set to the integer multiple of the base rate just below the sink sample rate.
The base rate depending on the standard is: The base rate depending on the standard is:
- PAL625L: 1 MS/s - PAL625L: 1 MS/s
- PAL525L: 1.008 MS/s - PAL525L: 1.008 MS/s
Each horizontal line (including sync and porchs) is split in a number of points so that each point represents a sample. e.g. for a 3 MS/s sample rate in PAL625L standard each point will last 1/3 us (3 points per base rate period).
<h3>7: Video signal level meter</h3> <h3>7: Video signal level meter</h3>
This is the level meter fed with the video signal. Units are the percentage of the 0.0 to 1.0 modulating video signal. This is the level meter fed with the video signal. Units are the percentage of the 0.0 to 1.0 modulating video signal.