• Shiyou Yin's avatar
    avcodec/mips: [loongson] refine process of setting block as 0 in h264dsp_mmi. · 62e6b634
    Shiyou Yin authored
    In function ff_h264_add_pixels4_8_mmi, there is no need to reset '%[ftmp0]'
    to 0, because it's value has never changed since the start of the asm block.
    This patch remove the redundant 'xor' and set src to zero once it was loaded.
    
    In function ff_h264_idct_add_8_mmi, 'block' is seted to zero twice.
    This patch removed the first setting zero operation and move the second one
    after the load operation of block.
    
    In function ff_h264_idct8_add_8_mmi, 'block' is seted to zero twice too.
    This patch just removed the second setting zero operation.
    
    This patch mainly simplifies the implementation of functions above,
    the effect on the performance of whole h264 decoding process is not obvious.
    According to the perf data, proportion of ff_h264_idct_add_8_mmi decreased from
    0.29% to 0.26% and ff_h264_idct8_add_8_mmi decreased from 0.62% to 0.59% when decoding
    H264 format on loongson 3A3000(For reference only , not very stable.).
    Reviewed-by: 's avatarReimar Döffinger <Reimar.Doeffinger@gmx.de>
    Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
    62e6b634
Name
Last commit
Last update
compat Loading commit data...
doc Loading commit data...
ffbuild Loading commit data...
fftools Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavresample Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswresample Loading commit data...
libswscale Loading commit data...
presets Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
INSTALL.md Loading commit data...
LICENSE.md Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
RELEASE Loading commit data...
configure Loading commit data...