|
|
|
@ -47,7 +47,7 @@ void av_set_cpu_flags_mask(int mask) |
|
|
|
|
|
|
|
|
|
int av_parse_cpu_flags(const char *s) |
|
|
|
|
{ |
|
|
|
|
#define CPUFLAG_MMX2 (AV_CPU_FLAG_MMX | AV_CPU_FLAG_MMX2) |
|
|
|
|
#define CPUFLAG_MMX2 (AV_CPU_FLAG_MMX | AV_CPU_FLAG_MMX2 | AV_CPU_FLAG_CMOV) |
|
|
|
|
#define CPUFLAG_3DNOW (AV_CPU_FLAG_3DNOW | AV_CPU_FLAG_MMX) |
|
|
|
|
#define CPUFLAG_3DNOWEXT (AV_CPU_FLAG_3DNOWEXT | CPUFLAG_3DNOW) |
|
|
|
|
#define CPUFLAG_SSE (AV_CPU_FLAG_SSE | CPUFLAG_MMX2) |
|
|
|
@ -82,6 +82,7 @@ int av_parse_cpu_flags(const char *s) |
|
|
|
|
{ "fma4" , NULL, 0, AV_OPT_TYPE_CONST, { CPUFLAG_FMA4 }, .unit = "flags" }, |
|
|
|
|
{ "3dnow" , NULL, 0, AV_OPT_TYPE_CONST, { CPUFLAG_3DNOW }, .unit = "flags" }, |
|
|
|
|
{ "3dnowext", NULL, 0, AV_OPT_TYPE_CONST, { CPUFLAG_3DNOWEXT }, .unit = "flags" }, |
|
|
|
|
{ "cmov", NULL, 0, AV_OPT_TYPE_CONST, { AV_CPU_FLAG_CMOV }, .unit = "flags" }, |
|
|
|
|
#elif ARCH_ARM |
|
|
|
|
{ "armv5te", NULL, 0, AV_OPT_TYPE_CONST, { AV_CPU_FLAG_ARMV5TE }, .unit = "flags" }, |
|
|
|
|
{ "armv6", NULL, 0, AV_OPT_TYPE_CONST, { AV_CPU_FLAG_ARMV6 }, .unit = "flags" }, |
|
|
|
@ -143,6 +144,7 @@ static const struct { |
|
|
|
|
{ AV_CPU_FLAG_FMA4, "fma4" }, |
|
|
|
|
{ AV_CPU_FLAG_3DNOW, "3dnow" }, |
|
|
|
|
{ AV_CPU_FLAG_3DNOWEXT, "3dnowext" }, |
|
|
|
|
{ AV_CPU_FLAG_CMOV, "cmov" }, |
|
|
|
|
#endif |
|
|
|
|
{ 0 } |
|
|
|
|
}; |
|
|
|
|