comparison x86/vp8dsp-init.c @ 12475:9fef0a8ddd63 libavcodec

Move mm_support() from libavcodec to libavutil, make it a public function and rename it to av_get_cpu_flags().
author stefano
date Wed, 08 Sep 2010 15:07:14 +0000
parents a5ddb39627fd
children
comparison
equal deleted inserted replaced
12474:cf54b8e98e7a 12475:9fef0a8ddd63
18 * You should have received a copy of the GNU Lesser General Public 18 * You should have received a copy of the GNU Lesser General Public
19 * License along with FFmpeg; if not, write to the Free Software 19 * License along with FFmpeg; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 */ 21 */
22 22
23 #include "libavutil/cpu.h"
23 #include "libavutil/x86_cpu.h" 24 #include "libavutil/x86_cpu.h"
24 #include "libavcodec/vp8dsp.h" 25 #include "libavcodec/vp8dsp.h"
25 26
26 #if HAVE_YASM 27 #if HAVE_YASM
27 28
280 c->put_vp8_bilinear_pixels_tab[IDX][2][2] = ff_put_vp8_bilinear ## SIZE ## _hv_ ## OPT 281 c->put_vp8_bilinear_pixels_tab[IDX][2][2] = ff_put_vp8_bilinear ## SIZE ## _hv_ ## OPT
281 282
282 283
283 av_cold void ff_vp8dsp_init_x86(VP8DSPContext* c) 284 av_cold void ff_vp8dsp_init_x86(VP8DSPContext* c)
284 { 285 {
285 int mm_flags = mm_support(); 286 int mm_flags = av_get_cpu_flags();
286 287
287 #if HAVE_YASM 288 #if HAVE_YASM
288 if (mm_flags & AV_CPU_FLAG_MMX) { 289 if (mm_flags & AV_CPU_FLAG_MMX) {
289 c->vp8_idct_dc_add = ff_vp8_idct_dc_add_mmx; 290 c->vp8_idct_dc_add = ff_vp8_idct_dc_add_mmx;
290 c->vp8_idct_dc_add4y = ff_vp8_idct_dc_add4y_mmx; 291 c->vp8_idct_dc_add4y = ff_vp8_idct_dc_add4y_mmx;