|
|
|
@ -59,6 +59,7 @@ void av_force_cpu_flags(int arg){ |
|
|
|
|
AV_CPU_FLAG_SSE4 | |
|
|
|
|
AV_CPU_FLAG_SSE42 | |
|
|
|
|
AV_CPU_FLAG_AVX | |
|
|
|
|
AV_CPU_FLAG_AVXSLOW | |
|
|
|
|
AV_CPU_FLAG_XOP | |
|
|
|
|
AV_CPU_FLAG_FMA3 | |
|
|
|
|
AV_CPU_FLAG_FMA4 | |
|
|
|
@ -111,6 +112,7 @@ int av_parse_cpu_flags(const char *s) |
|
|
|
|
#define CPUFLAG_SSE4 (AV_CPU_FLAG_SSE4 | CPUFLAG_SSSE3) |
|
|
|
|
#define CPUFLAG_SSE42 (AV_CPU_FLAG_SSE42 | CPUFLAG_SSE4) |
|
|
|
|
#define CPUFLAG_AVX (AV_CPU_FLAG_AVX | CPUFLAG_SSE42) |
|
|
|
|
#define CPUFLAG_AVXSLOW (AV_CPU_FLAG_AVXSLOW | CPUFLAG_AVX) |
|
|
|
|
#define CPUFLAG_XOP (AV_CPU_FLAG_XOP | CPUFLAG_AVX) |
|
|
|
|
#define CPUFLAG_FMA3 (AV_CPU_FLAG_FMA3 | CPUFLAG_AVX) |
|
|
|
|
#define CPUFLAG_FMA4 (AV_CPU_FLAG_FMA4 | CPUFLAG_AVX) |
|
|
|
@ -133,6 +135,7 @@ int av_parse_cpu_flags(const char *s) |
|
|
|
|
{ "sse4.1" , NULL, 0, AV_OPT_TYPE_CONST, { .i64 = CPUFLAG_SSE4 }, .unit = "flags" }, |
|
|
|
|
{ "sse4.2" , NULL, 0, AV_OPT_TYPE_CONST, { .i64 = CPUFLAG_SSE42 }, .unit = "flags" }, |
|
|
|
|
{ "avx" , NULL, 0, AV_OPT_TYPE_CONST, { .i64 = CPUFLAG_AVX }, .unit = "flags" }, |
|
|
|
|
{ "avxslow" , NULL, 0, AV_OPT_TYPE_CONST, { .i64 = CPUFLAG_AVXSLOW }, .unit = "flags" }, |
|
|
|
|
{ "xop" , NULL, 0, AV_OPT_TYPE_CONST, { .i64 = CPUFLAG_XOP }, .unit = "flags" }, |
|
|
|
|
{ "fma3" , NULL, 0, AV_OPT_TYPE_CONST, { .i64 = CPUFLAG_FMA3 }, .unit = "flags" }, |
|
|
|
|
{ "fma4" , NULL, 0, AV_OPT_TYPE_CONST, { .i64 = CPUFLAG_FMA4 }, .unit = "flags" }, |
|
|
|
@ -192,6 +195,7 @@ int av_parse_cpu_caps(unsigned *flags, const char *s) |
|
|
|
|
{ "sse4.1" , NULL, 0, AV_OPT_TYPE_CONST, { .i64 = AV_CPU_FLAG_SSE4 }, .unit = "flags" }, |
|
|
|
|
{ "sse4.2" , NULL, 0, AV_OPT_TYPE_CONST, { .i64 = AV_CPU_FLAG_SSE42 }, .unit = "flags" }, |
|
|
|
|
{ "avx" , NULL, 0, AV_OPT_TYPE_CONST, { .i64 = AV_CPU_FLAG_AVX }, .unit = "flags" }, |
|
|
|
|
{ "avxslow" , NULL, 0, AV_OPT_TYPE_CONST, { .i64 = AV_CPU_FLAG_AVXSLOW }, .unit = "flags" }, |
|
|
|
|
{ "xop" , NULL, 0, AV_OPT_TYPE_CONST, { .i64 = AV_CPU_FLAG_XOP }, .unit = "flags" }, |
|
|
|
|
{ "fma3" , NULL, 0, AV_OPT_TYPE_CONST, { .i64 = AV_CPU_FLAG_FMA3 }, .unit = "flags" }, |
|
|
|
|
{ "fma4" , NULL, 0, AV_OPT_TYPE_CONST, { .i64 = AV_CPU_FLAG_FMA4 }, .unit = "flags" }, |
|
|
|
@ -320,6 +324,7 @@ static const struct { |
|
|
|
|
{ AV_CPU_FLAG_SSE4, "sse4.1" }, |
|
|
|
|
{ AV_CPU_FLAG_SSE42, "sse4.2" }, |
|
|
|
|
{ AV_CPU_FLAG_AVX, "avx" }, |
|
|
|
|
{ AV_CPU_FLAG_AVXSLOW, "avxslow" }, |
|
|
|
|
{ AV_CPU_FLAG_XOP, "xop" }, |
|
|
|
|
{ AV_CPU_FLAG_FMA3, "fma3" }, |
|
|
|
|
{ AV_CPU_FLAG_FMA4, "fma4" }, |
|
|
|
|