[FFmpeg-devel] [PATCH] avutil: runtime cpu detection for mips
Shivraj Patil
Shivraj.Patil at imgtec.com
Wed Sep 30 16:21:18 CEST 2015
On Wed, Sep 30, 2015 at 07:03:46PM +0530, shivraj.patil at imgtec.com wrote:
> From: Shivraj Patil <shivraj.patil at imgtec.com>
[...]
> +static int get_cpuinfo(uint32_t *hwcap) {
> + FILE *f = fopen("/proc/cpuinfo", "r");
under qemu i get this:
cpu_flags(raw) = 0x00000000
cpu_flags_str(raw) =
cpu_flags(effective) = 0x00000000
cpu_flags_str(effective) =
threads = 1 (cpu_count = 12)
IIUC this disables all cpu extensions
is that intended ?
(we currently only have loongson hardware to test so this would mean an end to testing imgtec specific mips optimizations)
Shivraj:- cpu detection will not work for qemu, however we have tested it on mips hardware at our end.
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Avoid a single point of failure, be that a person or equipment.
More information about the ffmpeg-devel
mailing list