-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathDeckLinkCapture.pro
More file actions
156 lines (132 loc) · 3.29 KB
/
DeckLinkCapture.pro
File metadata and controls
156 lines (132 loc) · 3.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
DESTDIR = $$PWD/_bin
QMAKE_PROJECT_DEPTH = 0
TARGET = DeckLinkCapture
TEMPLATE = app
QT += core gui widgets opengl multimedia
CONFIG += c++17
win32:DEFINES += NOMINMAX
win32:INCLUDEPATH += C:\opencv\build\include
linux:QMAKE_CXXFLAGS += -fopenmp
linux:QMAKE_LFLAGS += -fopenmp
linux:LIBS += -ldl
win32:LIBS += -lole32 -loleaut32
macx:LIBS += -framework CoreFoundation
gcc:QMAKE_CXXFLAGS += -Wno-switch
# pre.target = pre
# pre.commands = cd $$PWD && make
# QMAKE_EXTRA_TARGETS += pre
# PRE_TARGETDEPS += pre
# CONFIG += use_ffmpeg
use_ffmpeg {
DEFINES += USE_FFMPEG
# recording
win32 {
INCLUDEPATH += C:/ffmpeg/include
LIBS += -LC:/ffmpeg/bin
}
macx:INCLUDEPATH += /usr/local/Cellar/ffmpeg/4.1.4_1/include
macx:LIBS += -L/usr/local/Cellar/ffmpeg/4.1.4_1/lib
!linux:LIBS += -lavutil -lavcodec -lavformat -lswscale -lswresample
}
#CONFIG += static_ffmpeg
static_ffmpeg {
INCLUDEPATH += $$PWD/../FFmpeg
INCLUDEPATH += $$PWD/../FFmpeg/fftools
LIBS += \
$$PWD/../FFmpeg/libavdevice/libavdevice.a \
$$PWD/../FFmpeg/libavcodec/libavcodec.a \
$$PWD/../FFmpeg/libavformat/libavformat.a \
$$PWD/../FFmpeg/libavutil/libavutil.a \
$$PWD/../FFmpeg/libswresample/libswresample.a \
$$PWD/../FFmpeg/libavfilter/libavfilter.a \
$$PWD/../FFmpeg/libswscale/libswscale.a
LIBS += -lpthread
LIBS += -L/usr/local/lib -lSvtAv1Enc -lSvtAv1Dec -lpthread -lm
LIBS += -lX11 -lXext -lbz2 -lz -llzma -lopus -lva -lva-drm -lva-x11 -lvdpau
LIBS += -ldl
SOURCES += \
../FFmpeg/libavcodec/adts_parser.c \
../FFmpeg/libavcodec/avfft.c \
../FFmpeg/libavformat/mux.c \
../FFmpeg/libavutil/file.c \
../FFmpeg/libavutil/pixelutils.c
HEADERS += \
../FFmpeg/libavcodec/adts_parser.h \
../FFmpeg/libavcodec/avfft.h \
../FFmpeg/libavcodec/codec2utils.h \
../FFmpeg/libavutil/file.h \
../FFmpeg/libavutil/pixelutils.h
}
!static_ffmpeg {
linux:LIBS += -lavutil -lavcodec -lavformat -lswscale -lswresample
}
#
SOURCES += \
ActionHandler.cpp \
AncillaryDataTable.cpp \
DeckLinkCapture.cpp \
DeckLinkDeviceDiscovery.cpp \
DeckLinkInputDevice.cpp \
Deinterlace.cpp \
FrameProcessThread.cpp \
FrameRateCounter.cpp \
GlobalData.cpp \
Image.cpp \
ImageUtil.cpp \
ImageWidget.cpp \
MainWindow.cpp \
MyDeckLinkAPI.cpp \
MySettings.cpp \
ProfileCallback.cpp \
Rational.cpp \
RecordingDialog.cpp \
StatusLabel.cpp \
TestForm.cpp \
UIWidget.cpp \
VideoFrameData.cpp \
joinpath.cpp \
main.cpp
HEADERS += \
ActionHandler.h \
AncillaryDataTable.h \
DeckLinkCapture.h \
DeckLinkDeviceDiscovery.h \
DeckLinkInputDevice.h \
Deinterlace.h \
FrameProcessThread.h \
FrameRateCounter.h \
GlobalData.h \
Image.h \
ImageUtil.h \
ImageWidget.h \
MainWindow.h \
MyDeckLinkAPI.h \
MySettings.h \
ProfileCallback.h \
Rational.h \
RecordingDialog.h \
StatusLabel.h \
TestForm.h \
UIWidget.h \
VideoEncoderOption.h \
VideoFrameData.h \
common.h \
joinpath.h \
main.h
FORMS += \
MainWindow.ui \
RecordingDialog.ui \
TestForm.ui \
UIWidget.ui
RESOURCES += \
resources.qrc
use_ffmpeg {
SOURCES += FFmpegVideoEncoder.cpp
HEADERS += FFmpegVideoEncoder.h includeffmpeg.h
}
# DISTFILES += \
# CudaPlugin/src/cudalib.cu.cpp
win32:SOURCES += sdk/Win/DeckLinkAPI_i.c
win32:HEADERS += sdk/Win/DeckLinkAPI_h.h
linux:SOURCES += sdk/Linux/include/DeckLinkAPIDispatch.cpp
macx:SOURCES += sdk/Mac/include/DeckLinkAPIDispatch.cpp