mirror of https://git.ffmpeg.org/ffmpeg.git
ppc: Recognize the PPC VSX and Power8 CPU flags
Signed-off-by: Brad Smith <brad@comstyle.com>
This commit is contained in:
parent
2f77ecc6bc
commit
6ec6b07900
|
@ -120,6 +120,8 @@ int av_parse_cpu_caps(unsigned *flags, const char *s)
|
|||
{ "flags" , NULL, 0, AV_OPT_TYPE_FLAGS, { .i64 = 0 }, INT64_MIN, INT64_MAX, .unit = "flags" },
|
||||
#if ARCH_PPC
|
||||
{ "altivec" , NULL, 0, AV_OPT_TYPE_CONST, { .i64 = AV_CPU_FLAG_ALTIVEC }, .unit = "flags" },
|
||||
{ "vsx" , NULL, 0, AV_OPT_TYPE_CONST, { .i64 = AV_CPU_FLAG_VSX }, .unit = "flags" },
|
||||
{ "power8" , NULL, 0, AV_OPT_TYPE_CONST, { .i64 = AV_CPU_FLAG_POWER8 }, .unit = "flags" },
|
||||
#elif ARCH_X86
|
||||
{ "mmx" , NULL, 0, AV_OPT_TYPE_CONST, { .i64 = AV_CPU_FLAG_MMX }, .unit = "flags" },
|
||||
{ "mmx2" , NULL, 0, AV_OPT_TYPE_CONST, { .i64 = AV_CPU_FLAG_MMX2 }, .unit = "flags" },
|
||||
|
|
|
@ -57,6 +57,8 @@ static const struct {
|
|||
{ AV_CPU_FLAG_SETEND, "setend" },
|
||||
#elif ARCH_PPC
|
||||
{ AV_CPU_FLAG_ALTIVEC, "altivec" },
|
||||
{ AV_CPU_FLAG_VSX, "vsx" },
|
||||
{ AV_CPU_FLAG_POWER8, "power8" },
|
||||
#elif ARCH_MIPS
|
||||
{ AV_CPU_FLAG_MMI, "mmi" },
|
||||
{ AV_CPU_FLAG_MSA, "msa" },
|
||||
|
|
Loading…
Reference in New Issue