Skip to content

Commit

Permalink
svtav1: VCビルドでプロファイル付きの最適化を行うように。
Browse files Browse the repository at this point in the history
  • Loading branch information
rigaya committed Oct 7, 2020
1 parent beef8af commit 5681d03
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions svtav1/Build_svtav1.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ set TMP_PATH=F:\temp\build_svtav1
set INSTALL_DIR=%TMP_PATH%\build
set SVTAV1_PATH=%TMP_PATH%\svt-av1
set BUILD_PROP_PATH=Build_svtav1.props
set YUVFILE=F:\temp\sakura_op_1280x720.yuv
set YUVFILE_10=F:\temp\sakura_op_10bit.yuv

set PATH=%CMAKE_DIR%;%PATH%

Expand All @@ -20,7 +22,13 @@ cmake -A x64 ^
-DBUILD_TESTING=OFF ^
..

MSBuild svt-av1.sln /t:SvtAv1Enc /property:WindowsTargetPlatformVersion=10.0;PlatformToolset=v142;Configuration="Release";Platform=x64;WholeProgramOptimization=true;ConfigurationType=StaticLibrary;ForceImportBeforeCppTargets="%BUILD_PROP_PATH%" /p:BuildProjectReferences=true
MSBuild svt-av1.sln /t:SvtAv1EncApp /property:WindowsTargetPlatformVersion=10.0;PlatformToolset=v142;Configuration="Release";Platform=x64;WholeProgramOptimization=true;ForceImportBeforeCppTargets="%BUILD_PROP_PATH%" /p:BuildProjectReferences=false
MSBuild svt-av1.sln /t:SvtAv1Enc /property:WindowsTargetPlatformVersion=10.0;PlatformToolset=v142;Configuration="Release";Platform=x64;WholeProgramOptimization=PGInstrument;ConfigurationType=StaticLibrary;ForceImportBeforeCppTargets="%BUILD_PROP_PATH%" /p:BuildProjectReferences=true
MSBuild svt-av1.sln /t:SvtAv1EncApp /property:WindowsTargetPlatformVersion=10.0;PlatformToolset=v142;Configuration="Release";Platform=x64;WholeProgramOptimization=PGInstrument;ForceImportBeforeCppTargets="%BUILD_PROP_PATH%" /p:BuildProjectReferences=false

"%SVTAV1_PATH%\Bin\Release\SvtAv1EncApp.exe" -i "%YUVFILE%" -w 1280 -h 720 -n 50 --rc 1 --fps 30 --preset 4
"%SVTAV1_PATH%\Bin\Release\SvtAv1EncApp.exe" -i "%YUVFILE_10%" -w 1280 -h 720 -n 50 --rc 1 --fps 30 --preset 4 --input-depth 10

MSBuild svt-av1.sln /t:SvtAv1Enc /property:WindowsTargetPlatformVersion=10.0;PlatformToolset=v142;Configuration="Release";Platform=x64;WholeProgramOptimization=PGOptimize;ConfigurationType=StaticLibrary;ForceImportBeforeCppTargets="%BUILD_PROP_PATH%" /p:BuildProjectReferences=true
MSBuild svt-av1.sln /t:SvtAv1EncApp /property:WindowsTargetPlatformVersion=10.0;PlatformToolset=v142;Configuration="Release";Platform=x64;WholeProgramOptimization=PGOptimize;ForceImportBeforeCppTargets="%BUILD_PROP_PATH%" /p:BuildProjectReferences=false

pause
2 changes: 1 addition & 1 deletion svtav1/Build_svtav1.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<FavorSizeOrSpeed>Size</FavorSizeOrSpeed>
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
<OmitFramePointers>true</OmitFramePointers>
<EnableFiberSafeOptimizations>true</EnableFiberSafeOptimizations>
<SDLCheck>false</SDLCheck>
Expand Down

0 comments on commit 5681d03

Please sign in to comment.