[FFmpeg-devel] [PATCH] avcodec: loongson3 optimized mpegvideo dct unquantize and denoise with mmi

周晓勇 zhouxiaoyong at loongson.cn
Thu May 28 04:47:27 CEST 2015




> -----原始邮件-----
> 发件人: "Michael Niedermayer" <michaelni at gmx.at>
> 发送时间: 2015年5月27日 星期三
> 收件人: "FFmpeg development discussions and patches" <ffmpeg-devel at ffmpeg.org>
> 抄送: 
> 主题: Re: [FFmpeg-devel] [PATCH] avcodec: loongson3 optimized mpegvideo dct unquantize and denoise with mmi
> 
> On Wed, May 27, 2015 at 06:10:31PM +0800, 周晓勇 wrote:
> > From eb476eba51fffd30989917606a9b239f7c67ad26 Mon Sep 17 00:00:00 2001
> > From: ZhouXiaoyong <zhouxiaoyong at loongson.cn>
> > Date: Thu, 21 May 2015 16:32:35 +0800
> > Subject: [PATCH] avcodec: loongson3 optimized mpegvideo dct unquantize and
> >  denoise with mmi
> > 
> > 
> > Signed-off-by: ZhouXiaoyong <zhouxiaoyong at loongson.cn>
> > ---
> >  libavcodec/mips/Makefile              |   2 +
> >  libavcodec/mips/mpegvideo_init_mips.c |  40 ++++
> >  libavcodec/mips/mpegvideo_mips.h      |  36 ++++
> >  libavcodec/mips/mpegvideo_mmi.c       | 365 ++++++++++++++++++++++++++++++++++
> >  libavcodec/mpegvideo.c                |   2 +
> >  libavcodec/mpegvideo.h                |   1 +
> >  6 files changed, 446 insertions(+)
> 
> this seems to break fate-mpeg4-resolution-change-up-down on loongson3
> 
> [...]
i have done the test, fate-mpeg4 passed all with no problem.
and also, all fate passed, not only the loongson3a but also loongson3b.

i wonder the break maybe caused by the os, the FC19 version on your machine is FC19-Build090-20150317.
here is the Build-010 download address: 
http://www.loongnix.org/dev/ftp/os/Fedora19/iso/Fedora19-Desktop-Loongson-Release-Build010-20150429.iso

i have the same problem, for example, make fate -j4 break down at vsynth_lena-h263p.
but do make fate-vsynth_lena-h263p again, i will pass.
i do the fate-test on loongson3b machine with same setting and evironment, it pass all correctly.
i doubt it's about the cpu's SIMD unit problem or the glib-math's, also maybe the multi-threads compiling.
so, you could remake the breakdown fate-mpeg4-resolution-change-up-down for a try.

to update the os with these steps:
1.mkfs.ext4 the partition, and rename it FC19
2.mount iso to /mnt/ and mount the FC19 partition to /run/media/loongson/FC19/
3.sudo tar xf  /mnt/live/Fedora19-xxx.tar.gz -C /run/media/loongson/FC19/ --numeric-owner
4.copy the /boot/vmlinuz-3.10.0-2015.03.17.fc19.mipsel on new partition to /dev/sda1 's /boot/
5.modify the boot.cfg on /dev/sda1 to use the new kernel




More information about the ffmpeg-devel mailing list