Mercurial > libavcodec.hg
comparison x86/mpegaudiodec_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 |
---|---|
17 * You should have received a copy of the GNU Lesser General Public | 17 * You should have received a copy of the GNU Lesser General Public |
18 * License along with FFmpeg; if not, write to the Free Software | 18 * License along with FFmpeg; if not, write to the Free Software |
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
20 */ | 20 */ |
21 | 21 |
22 #include "libavutil/cpu.h" | |
22 #include "libavutil/x86_cpu.h" | 23 #include "libavutil/x86_cpu.h" |
23 | 24 |
24 #define CONFIG_FLOAT 1 | 25 #define CONFIG_FLOAT 1 |
25 #include "libavcodec/mpegaudio.h" | 26 #include "libavcodec/mpegaudio.h" |
26 | 27 |
147 *out = sum; | 148 *out = sum; |
148 } | 149 } |
149 | 150 |
150 void ff_mpegaudiodec_init_mmx(MPADecodeContext *s) | 151 void ff_mpegaudiodec_init_mmx(MPADecodeContext *s) |
151 { | 152 { |
152 int mm_flags = mm_support(); | 153 int mm_flags = av_get_cpu_flags(); |
153 | 154 |
154 if (mm_flags & AV_CPU_FLAG_SSE2) { | 155 if (mm_flags & AV_CPU_FLAG_SSE2) { |
155 s->apply_window_mp3 = apply_window_mp3; | 156 s->apply_window_mp3 = apply_window_mp3; |
156 } | 157 } |
157 } | 158 } |