Mercurial > libavcodec.hg
comparison x86/h264_intrapred_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 |
---|---|
16 * You should have received a copy of the GNU Lesser General Public | 16 * You should have received a copy of the GNU Lesser General Public |
17 * License along with FFmpeg; if not, write to the Free Software | 17 * License along with FFmpeg; if not, write to the Free Software |
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
19 */ | 19 */ |
20 | 20 |
21 #include "libavutil/cpu.h" | |
21 #include "libavcodec/h264pred.h" | 22 #include "libavcodec/h264pred.h" |
22 | 23 |
23 void ff_pred16x16_vertical_mmx (uint8_t *src, int stride); | 24 void ff_pred16x16_vertical_mmx (uint8_t *src, int stride); |
24 void ff_pred16x16_vertical_sse (uint8_t *src, int stride); | 25 void ff_pred16x16_vertical_sse (uint8_t *src, int stride); |
25 void ff_pred16x16_horizontal_mmx (uint8_t *src, int stride); | 26 void ff_pred16x16_horizontal_mmx (uint8_t *src, int stride); |
46 void ff_pred4x4_tm_vp8_ssse3 (uint8_t *src, const uint8_t *topright, int stride); | 47 void ff_pred4x4_tm_vp8_ssse3 (uint8_t *src, const uint8_t *topright, int stride); |
47 void ff_pred4x4_vertical_vp8_mmxext(uint8_t *src, const uint8_t *topright, int stride); | 48 void ff_pred4x4_vertical_vp8_mmxext(uint8_t *src, const uint8_t *topright, int stride); |
48 | 49 |
49 void ff_h264_pred_init_x86(H264PredContext *h, int codec_id) | 50 void ff_h264_pred_init_x86(H264PredContext *h, int codec_id) |
50 { | 51 { |
51 int mm_flags = mm_support(); | 52 int mm_flags = av_get_cpu_flags(); |
52 | 53 |
53 #if HAVE_YASM | 54 #if HAVE_YASM |
54 if (mm_flags & AV_CPU_FLAG_MMX) { | 55 if (mm_flags & AV_CPU_FLAG_MMX) { |
55 h->pred16x16[VERT_PRED8x8] = ff_pred16x16_vertical_mmx; | 56 h->pred16x16[VERT_PRED8x8] = ff_pred16x16_vertical_mmx; |
56 h->pred16x16[HOR_PRED8x8 ] = ff_pred16x16_horizontal_mmx; | 57 h->pred16x16[HOR_PRED8x8 ] = ff_pred16x16_horizontal_mmx; |