mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-12-24 11:52:06 +08:00
libavutil: Detect MMI and MSA flags for MIPS
Add MMI & MSA runtime detection for MIPS. Basically there are two code pathes. For systems that natively support CPUCFG instruction or kernel emulated that instruction, we'll sense this feature from HWCAP and report the flags according to values grab from CPUCFG. For systems that have no CPUCFG (or not export it in HWCAP), we'll parse /proc/cpuinfo instead. Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com> Reviewed-by: Shiyou Yin <yinshiyou-hf@loongson.cn> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
committed by
Michael Niedermayer
parent
d5380f068d
commit
e387fcd01c
@@ -49,6 +49,9 @@ static const struct {
|
||||
{ AV_CPU_FLAG_SETEND, "setend" },
|
||||
#elif ARCH_PPC
|
||||
{ AV_CPU_FLAG_ALTIVEC, "altivec" },
|
||||
#elif ARCH_MIPS
|
||||
{ AV_CPU_FLAG_MMI, "mmi" },
|
||||
{ AV_CPU_FLAG_MSA, "msa" },
|
||||
#elif ARCH_X86
|
||||
{ AV_CPU_FLAG_MMX, "mmx" },
|
||||
{ AV_CPU_FLAG_MMXEXT, "mmxext" },
|
||||
|
||||
Reference in New Issue
Block a user