Mercurial > libavcodec.hg
comparison x86/snowdsp_mmx.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 |
---|---|
873 ff_snow_inner_add_yblock(obmc, obmc_stride, block, b_w, b_h, src_x,src_y, src_stride, sb, add, dst8); | 873 ff_snow_inner_add_yblock(obmc, obmc_stride, block, b_w, b_h, src_x,src_y, src_stride, sb, add, dst8); |
874 } | 874 } |
875 | 875 |
876 void ff_dwt_init_x86(DWTContext *c) | 876 void ff_dwt_init_x86(DWTContext *c) |
877 { | 877 { |
878 int mm_flags = mm_support(); | 878 int mm_flags = av_get_cpu_flags(); |
879 | 879 |
880 if (mm_flags & AV_CPU_FLAG_MMX) { | 880 if (mm_flags & AV_CPU_FLAG_MMX) { |
881 if(mm_flags & AV_CPU_FLAG_SSE2 & 0){ | 881 if(mm_flags & AV_CPU_FLAG_SSE2 & 0){ |
882 c->horizontal_compose97i = ff_snow_horizontal_compose97i_sse2; | 882 c->horizontal_compose97i = ff_snow_horizontal_compose97i_sse2; |
883 #if HAVE_7REGS | 883 #if HAVE_7REGS |