Windows MSVC2017: include DATV Demod

This commit is contained in:
f4exb 2018-11-28 10:57:03 +01:00
parent 788ffa7c86
commit 6f4969f417
5 changed files with 24 additions and 15 deletions

View File

@ -7,7 +7,7 @@
TEMPLATE = lib
CONFIG += plugin
QT += core gui multimedia multimediawidgets widgets opengl
QT += core gui multimedia multimediawidgets widgets opengl qml
TARGET = demoddatv
@ -18,25 +18,26 @@ QMAKE_CXXFLAGS += -msse4.1
QMAKE_CXXFLAGS += -std=c++11
INCLUDEPATH += $$PWD
INCLUDEPATH += ../../../exports
INCLUDEPATH += ../../../sdrbase
INCLUDEPATH += ../../../sdrgui
CONFIG(Release):build_subdir = release
CONFIG(Debug):build_subdir = debug
CONFIG(MINGW32):INCLUDEPATH += "D:\boost_1_58_0"
CONFIG(MINGW64):INCLUDEPATH += "D:\boost_1_58_0"
CONFIG(MSVC):INCLUDEPATH += "C:\softs\boost_1_66_0"
CONFIG(MSVC):INCLUDEPATH += "C:\softs\ffmpeg-20181127-1035206-win64-dev\include"
CONFIG(macx):INCLUDEPATH += "../../../../../boost_1_64_0"
SOURCES += datvdemod.cpp\
datvdemodgui.cpp\
datvdemodplugin.cpp\
datvdemodgui.cpp\
datvdemodplugin.cpp\
datvideostream.cpp \
datvideorender.cpp
HEADERS += datvdemod.h\
datvdemodgui.h\
datvdemodplugin.h\
datvdemodgui.h\
datvdemodplugin.h\
leansdr/convolutional.h \
leansdr/dsp.h \
leansdr/dvb.h \
@ -58,6 +59,7 @@ FORMS += datvdemodgui.ui
LIBS += -L../../../sdrbase/$${build_subdir} -lsdrbase
LIBS += -L../../../sdrgui/$${build_subdir} -lsdrgui
LIBS += -lavutil -lswscale -lavdevice -lavformat -lavcodec -lswresample
#LIBS += -lavutil -lswscale -lavdevice -lavformat -lavcodec -lswresample
LIBS += -L"C:\softs\ffmpeg-20181127-1035206-win64-dev\lib" -lavutil -lswscale -lavdevice -lavformat -lavcodec -lswresample
RESOURCES = ../../../sdrbase/resources/res.qrc

View File

@ -671,13 +671,13 @@ static struct fec_spec
}
fec_specs[FEC_MAX] = {
[FEC12] = { 1, 2, polys_fec12 },
[FEC23] = { 2, 3, polys_fec23 },
[FEC46] = { 4, 6, polys_fec46 },
[FEC34] = { 3, 4, polys_fec34 },
[FEC56] = { 5, 6, polys_fec56 },
[FEC78] = { 7, 8, polys_fec78 },
[FEC45] = { 4, 5, polys_fec45 }, // Non-standard
{ 1, 2, polys_fec12 },
{ 2, 3, polys_fec23 },
{ 4, 6, polys_fec46 },
{ 3, 4, polys_fec34 },
{ 5, 6, polys_fec56 },
{ 7, 8, polys_fec78 },
{ 4, 5, polys_fec45 }, // Non-standard
};
struct dvb_convol: runnable

View File

@ -1,6 +1,7 @@
#ifndef LEANSDR_MATH_H
#define LEANSDR_MATH_H
#define _USE_MATH_DEFINES
#include <math.h>
#include <stdint.h>

View File

@ -53,6 +53,7 @@ SUBDIRS += plugins/channelrx/chanalyzer
SUBDIRS += plugins/channelrx/demodam
SUBDIRS += plugins/channelrx/demodatv
SUBDIRS += plugins/channelrx/demodbfm
CONFIG(!MSVC):SUBDIRS += plugins/channelrx/demoddatv
CONFIG(!MSVC):SUBDIRS += plugins/channelrx/demoddsd
CONFIG(!MSVC):SUBDIRS += plugins/channelrx/demodlora
SUBDIRS += plugins/channelrx/demodnfm

View File

@ -5,6 +5,8 @@ SET libiconvdir="C:\softs\iconv-1.9.2.win32"
SET libzlib1dir="C:\softs\zlib-1.2.5"
SET pothosdir="C:\Program Files\PothosSDR"
SET pthreadsdir="C:\softs\pthreads-w32"
SET ffmpegdir="C:\softs\ffmpeg-20181127-1035206-win64-shared\bin"
SET qt5dir="C:\Qt\5.11.1\msvc2017_64\bin"
copy app\%1\sdrangel.exe %2
copy sdrbase\%1\sdrbase.dll %2
@ -39,6 +41,8 @@ REM copy %opencvdir%\opencv_ffmpeg2413.dll %2
REM copy %opencvdir%\libopencv_imgproc2413.dll %2
REM copy %opencvdir%\libopencv_highgui2413.dll %2
REM copy %opencvdir%\libopencv_core2413.dll %2
copy %ffmpegdir%\*.dll %2
copy %qt5dir%\Qt5Qml.dll %2
mkdir %2\plugins
mkdir %2\plugins\channelrx
@ -50,6 +54,7 @@ copy plugins\channelrx\chanalyzer\%1\chanalyzer.dll %2\plugins\channelrx
copy plugins\channelrx\demodam\%1\demodam.dll %2\plugins\channelrx
copy plugins\channelrx\demodatv\%1\demodatv.dll %2\plugins\channelrx
copy plugins\channelrx\demodbfm\%1\demodbfm.dll %2\plugins\channelrx
copy plugins\channelrx\demoddatv\%1\demoddatv.dll %2\plugins\channelrx
REM copy plugins\channelrx\demoddsd\%1\demoddsd.dll %2\plugins\channelrx
REM copy plugins\channelrx\demodlora\%1\demodlora.dll %2\plugins\channelrx
copy plugins\channelrx\demodnfm\%1\demodnfm.dll %2\plugins\channelrx