[FFmpeg-devel] [PATCH 4/4] avcodec: loongson optimized h264pred with mmi

周晓勇 zhouxiaoyong at loongson.cn
Mon Jul 6 15:58:57 CEST 2015


the new FC21 download address:
http://loongnix.org/ftp/os/Fedora21/

the fault caused by ARCH_MIPS64 in configure doesn't match with O32 API in old FC19.
it's different on loongson arch(or other mips arch) and x86 arch that 32bit system can only use mips32 instruction set.
to achieve high performance, loongson use mips64r2 instruction set, and to use mmi SIMD loongson use -march=loongson3a in compiling.
after running configure file, on old O32 FC19 you get ARCH_MIPS only, but on new FC21 you could specify API as O32, N32 or N64,
because the new FC21 supported multi-libs. as most of the rpms were build with N64 and OS mainly aiming at 64bit application, ffmpeg should be configured and compiled into N64.
with the new mips64el FC21 OS, you could compile correctly.

the new FC21 you will download was a test release with gst-libav inside, which could decode 1080p mainline now.
the ccache, dash and screen have been installed.
the yum repo should be work abroad. if it doesn't, send your requirement to me. ^ ^



> -----原始邮件-----
> 发件人: "Michael Niedermayer" <michaelni at gmx.at>
> 发送时间: 2015年7月6日 星期一
> 收件人: "FFmpeg development discussions and patches" <ffmpeg-devel at ffmpeg.org>
> 抄送: 
> 主题: Re: [FFmpeg-devel] [PATCH 4/4] avcodec: loongson optimized h264pred with mmi
> 
> On Fri, Jul 03, 2015 at 06:13:25PM +0800, 周晓勇 wrote:
> > From dc50d05ba8a4d40e17f15a52237f33cff0205fea Mon Sep 17 00:00:00 2001
> > From: ZhouXiaoyong <zhouxiaoyong at loongson.cn>
> > Date: Fri, 3 Jul 2015 16:56:01 +0800
> > Subject: [PATCH 4/4] avcodec: loongson optimized h264pred with mmi
> > 
> > 
> > Signed-off-by: ZhouXiaoyong <zhouxiaoyong at loongson.cn>
> > ---
> >  libavcodec/mips/Makefile             |   1 +
> >  libavcodec/mips/h264pred_init_mips.c |  53 +++
> >  libavcodec/mips/h264pred_mips.h      |  53 +++
> >  libavcodec/mips/h264pred_mmi.c       | 799 +++++++++++++++++++++++++++++++++++
> >  4 files changed, 906 insertions(+)
> 
> this fails with:
> 
> /tmp/ccbnexwo.s: Assembler messages:
> /tmp/ccbnexwo.s:44: Error: Number (0xfffbfffafff9fff8) larger than 32 bits
> /tmp/ccbnexwo.s:46: Error: Number (0xfffffffefffdfffc) larger than 32 bits
> /tmp/ccbnexwo.s:48: Error: Number (0x0004000300020001) larger than 32 bits
> /tmp/ccbnexwo.s:50: Error: Number (0x0008000700060005) larger than 32 bits
> /tmp/ccbnexwo.s:195: Error: Number (0x0003000200010000) larger than 32 bits
> /tmp/ccbnexwo.s:198: Error: Number (0x0007000600050004) larger than 32 bits
> /tmp/ccbnexwo.s:201: Error: Number (0x000b000a00090008) larger than 32 bits
> /tmp/ccbnexwo.s:204: Error: Number (0x000f000e000d000c) larger than 32 bits
> /tmp/ccbnexwo.s:302: Error: Number (0x0101010101010101) larger than 32 bits
> /tmp/ccbnexwo.s:360: Error: Number (0x0101010101010101) larger than 32 bits
> /tmp/ccbnexwo.s:1451: Error: Number (0x0001010101010101) larger than 32 bits
> /tmp/ccbnexwo.s:1531: Error: Number (0x0101010101010101) larger than 32 bits
> /tmp/ccbnexwo.s:1870: Error: Number (0x0101010101010101) larger than 32 bits
> make: *** No rule to make target `libavcodec/mips/h264pred_mmi.o', needed by `libavcodec/libavcodec.a'.  Stop.
> 
> [...]
> -- 
> Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
> 
> I do not agree with what you have to say, but I'll defend to the death your
> right to say it. -- Voltaire





More information about the ffmpeg-devel mailing list