[FFmpeg-devel] [PATCH 2/2] avcodec: optimize mpegvideo decoder for Loongson-3 v1

Carl Eugen Hoyos cehoyos at ag.or.at
Tue May 12 11:01:55 CEST 2015

周晓勇 <zhouxiaoyong <at> loongson.cn> writes:

> > why are the optimized functions and the code that 
> > sets them in the context in 2 seperate files ?
> > this seems unneccesarily complicated
> > 
> i case mipstec optimize the same functions of 
> mpegvideodec using msa they could use filename
> mpegviedo_mips.c and write init functions into 
> mpegvideo_init.c

Separating init code and asm code is necessary if 
one is compiled with a C compiler, the other with 
yasm / nasm. In your case, putting asm and init 
code in one file makes everything easier.

Carl Eugen

More information about the ffmpeg-devel mailing list