forked from feiyangqingyun/QWidgetDemo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
123a5b4
commit 2806faa
Showing
565 changed files
with
4,083 additions
and
118,662 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,22 @@ | ||
HEADERS += $$PWD/ffmpeghead.h | ||
HEADERS += $$PWD/ffmpeg.h | ||
SOURCES += $$PWD/ffmpeg.cpp | ||
|
||
#如果用的是ffmpeg4内核请将ffmpeg3改成ffmpeg4,两种内核不兼容,头文件也不一样 | ||
#如果用的是ffmpeg4内核请将ffmpeg3改成ffmpeg4 | ||
DEFINES += ffmpeg4 | ||
|
||
#ffmpeg4则使用ffmpeg4的目录 | ||
|
||
contains(DEFINES, ffmpeg4) { | ||
strPath = ffmpeg4 | ||
path_main = ffmpeg4 | ||
} else { | ||
strPath = ffmpeg3 | ||
path_main = ffmpeg3 | ||
} | ||
|
||
#表示64位的构建套件 | ||
contains(QT_ARCH, x86_64) { | ||
strLib = winlib64 | ||
strInclude = include64 | ||
path_lib = libwin64 | ||
} else { | ||
#由于Qt4不支持QT_ARCH所以会执行下面的 | ||
#如果用的64位的Qt4则需要自行修改 | ||
|
||
strLib = winlib | ||
strInclude = include | ||
path_lib = libwin32 | ||
} | ||
|
||
#表示arm平台构建套件 | ||
|
||
contains(QT_ARCH, arm) { | ||
strInclude = include | ||
} | ||
#包含头文件 | ||
INCLUDEPATH += $$PWD/$$path_main/include | ||
#链接库文件 | ||
LIBS += -L$$PWD/$$path_main/$$path_lib/ -lavformat -lavfilter -lavcodec -lswresample -lswscale -lavutil | ||
|
||
!android { | ||
INCLUDEPATH += $$PWD/$$strPath/$$strInclude | ||
} | ||
|
||
win32 { | ||
LIBS += -L$$PWD/$$strPath/$$strLib/ -lavcodec -lavfilter -lavformat -lswscale -lavutil -lswresample -lavdevice | ||
} | ||
|
||
#请自行替换 | ||
|
||
!android { | ||
unix:!macx { | ||
LIBS += -L$$PWD/linuxlib/ -lavfilter -lavformat -lavdevice -lavcodec -lswscale -lavutil -lswresample -lavdevice -lpthread -lm -lz -lrt -ldl | ||
}} | ||
|
||
#android系统 | ||
android { | ||
INCLUDEPATH += $$PWD/androidlib/include | ||
LIBS += -L$$PWD/androidlib/ -lavcodec -lavfilter -lavformat -lswscale -lavutil -lswresample | ||
#将动态库文件一起打包 | ||
ANDROID_EXTRA_LIBS += $$PWD/androidlib/libavcodec.so | ||
ANDROID_EXTRA_LIBS += $$PWD/androidlib/libavfilter.so | ||
ANDROID_EXTRA_LIBS += $$PWD/androidlib/libavformat.so | ||
ANDROID_EXTRA_LIBS += $$PWD/androidlib/libavutil.so | ||
ANDROID_EXTRA_LIBS += $$PWD/androidlib/libswresample.so | ||
ANDROID_EXTRA_LIBS += $$PWD/androidlib/libswscale.so | ||
} | ||
HEADERS += $$PWD/ffmpeginclude.h | ||
HEADERS += $$PWD/ffmpeg.h | ||
SOURCES += $$PWD/ffmpeg.cpp |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.