comparison arm/dsputil_init_arm.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
71 { 71 {
72 ff_simple_idct_arm (block); 72 ff_simple_idct_arm (block);
73 ff_add_pixels_clamped(block, dest, line_size); 73 ff_add_pixels_clamped(block, dest, line_size);
74 } 74 }
75 75
76 int mm_support(void)
77 {
78 return HAVE_IWMMXT * AV_CPU_FLAG_IWMMXT;
79 }
80
81 void dsputil_init_arm(DSPContext* c, AVCodecContext *avctx) 76 void dsputil_init_arm(DSPContext* c, AVCodecContext *avctx)
82 { 77 {
83 ff_put_pixels_clamped = c->put_pixels_clamped; 78 ff_put_pixels_clamped = c->put_pixels_clamped;
84 ff_add_pixels_clamped = c->add_pixels_clamped; 79 ff_add_pixels_clamped = c->add_pixels_clamped;
85 80