Encode framedumps in AVI format on linux as on windows. This adds the additional dependency of libavformat-dev. Remember if you want raw framedumps as before add -DENCODE_FRAMEDUMPS=OFF to the cmake command line.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6438 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Glenn Rice
2010-11-18 16:46:17 +00:00
parent e1e43fa2a6
commit f8fbcecad6
4 changed files with 85 additions and 60 deletions

View File

@ -171,17 +171,18 @@ else()
message("Xrandr NOT found")
endif(XRANDR_FOUND)
option(ENCODE_FRAMEDUMPS "Encode framedumps in MPG format" ON)
option(ENCODE_FRAMEDUMPS "Encode framedumps in AVI format" ON)
if(ENCODE_FRAMEDUMPS)
pkg_search_module(AVCODEC libavcodec>=52.72.2)
pkg_search_module(AVFORMAT libavformat>=52.64.2)
pkg_search_module(SWSCALE libswscale>=0.11.0)
if(AVCODEC_FOUND AND SWSCALE_FOUND)
message("avcodec found, enabling MPG frame dumps")
if(AVCODEC_FOUND AND AVFORMAT_FOUND AND SWSCALE_FOUND)
message("libav found, enabling AVI frame dumps")
set(ENCODE_FRAMEDUMPS ON)
add_definitions(-DHAVE_AVCODEC)
else()
set(ENCODE_FRAMEDUMPS OFF)
message("avcodec not found, disabling MPG frame dumps")
message("libav not found, disabling AVI frame dumps")
endif()
endif()