1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-13 03:41:47 -05:00

ATV Modulator: transmit fixed image (1)

This commit is contained in:
f4exb 2017-03-08 23:48:14 +01:00
parent 4056fd0f5c
commit f20d522aa7
3 changed files with 8 additions and 2 deletions

View File

@ -250,6 +250,7 @@ bool ATVMod::handleMessage(const Message& cmd)
else if (MsgConfigureImageFileName::match(cmd))
{
MsgConfigureImageFileName& conf = (MsgConfigureImageFileName&) cmd;
openImage(conf.getFileName());
// m_fileName = conf.getFileName(); // TODO
// openFileStream();
return true;
@ -366,7 +367,7 @@ void ATVMod::applyStandard()
}
}
void ATVMod::openImage(QString& fileName)
void ATVMod::openImage(const QString& fileName)
{
cv::Mat tmpImage = cv::imread(qPrintable(fileName), CV_LOAD_IMAGE_GRAYSCALE);
m_imageOK = tmpImage.data != 0;

View File

@ -227,7 +227,7 @@ private:
void calculateLevel(Real& sample);
void modulateSample();
void applyStandard();
void openImage(QString& fileName);
void openImage(const QString& fileName);
inline void pullImageLine(Real& sample)
{

View File

@ -385,6 +385,11 @@
<string>V Grad</string>
</property>
</item>
<item>
<property name="text">
<string>Image</string>
</property>
</item>
</widget>
</item>
<item>