[FFmpeg-devel] Loongson Optimization Patchs Submitting Question - new branch of mipsel64

周晓勇 zhouxiaoyong at loongson.cn
Fri Mar 20 09:06:56 CET 2015

Dear Michael,

    Hi, ffmpeg and mplayer have achieved huge performance improvement on x86 under your leadership. And MIPS corporation have contributed the optimizations on their chips, which mainly aiming at audio codecs. As we know, ffmpeg and mplayer began to support loongson as a branch of mipsel from about version n0.6.x, but without assembly optimization. In 2009 and 2011, we taped out Loongson-3A and Loongson-3B. Loongson-3 series have the same core with Loongson-2E and Loongson-2F named GS464, which also added multimedia extension instructs but more powerful. 

    From last year, we began to optimize the H.264 and MPEG1/2/4 codecs based on ffmpeg-0.10.x, and achieved about 70%~80% boost with H.264 decode, about 30% boost with MPEG4 decode and 130% boost with RV40 decode(the xls data attached in the accessory).  The rough test was done on Loongson-3A, and we are very pleased to present some machines to the community for testing and verifying. Just send me your address.

    In this year, we will release Loongson Fedora19 based on the community, and I have finished parts of optimization for n2.1.7. By contrast, the decode boost(VC+VO+A) come up with 170% for H264-720P(one is calvc, the other one is cabac), 78% for H264-1080P(two cabac), 59% for RV40, and 70% for MPEG4. The optimization mainly include libavcodec, libavutil, and mplayer's fast_memcpy.

    Now, for questions.
    1.Our optimization based on n2.1.7, would you like me to send you the n2.1.7-patches or patches on master?
    2.Same question for mplayer patches based on SVN-r37150.
    3.Could we use the suffix of "mmi" for the optimized function? For instance below, does ARM have registered "mmi" like Intel does for "MMX"?
    av_cold void ff_h264dsp_init_loongson(...){
        c->h264_idct_dc_add = ff_h264_idct_dc_add_8_mmi;

    Expect your reply. Yours sincerely,
    Chris Zhou

---------------------------- ←(:з X∠)_
周晓勇 @系统研发部
Christian Zhou @System R & D

Loongson Technology Corporation Limited

Loongson Industrial Park, building 2 , Zhongguancun Environmental protection park,
Haidian District, Beijing, China

E at mail: zhouxiaoyong at loongson.cn
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mplayer&ffmpeg-benchmark-Loongson3A.xls
Type: application/vnd.ms-excel
Size: 71680 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150320/6e85be8d/attachment.xls>

More information about the ffmpeg-devel mailing list