Skip to content

Commit 0ef1470

Browse files
committed
Added AVX512 support.
1 parent d953fa3 commit 0ef1470

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

OKEGui/OKEGui/JobProcessor/Video/x265Encoder.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ private string BuildCommandline(string extractParam, int numaNode, List<string>
118118

119119
// 构建x265参数
120120
sb.Append(" \"" + X265Path + "\"");
121+
if (Initializer.Config.avx512 && !extractParam.ToLower().Contains("--asm"))
122+
{
123+
sb.Append(" --asm avx512");
124+
}
121125
sb.Append(" --y4m " + extractParam + " -o");
122126
sb.Append(" \"" + job.Output + "\" -");
123127
sb.Append("\"");

0 commit comments

Comments
 (0)