Mercurial > libavcodec.hg
comparison ppc/vp8dsp_altivec.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 | 06abedae2906 |
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 "libavcodec/vp8dsp.h" | 24 #include "libavcodec/vp8dsp.h" |
24 #include "dsputil_altivec.h" | 25 #include "dsputil_altivec.h" |
25 #include "types_altivec.h" | 26 #include "types_altivec.h" |
26 #include "util_altivec.h" | 27 #include "util_altivec.h" |
27 | 28 |
263 put_pixels16_altivec(dst, src, stride, h); | 264 put_pixels16_altivec(dst, src, stride, h); |
264 } | 265 } |
265 | 266 |
266 av_cold void ff_vp8dsp_init_altivec(VP8DSPContext *c) | 267 av_cold void ff_vp8dsp_init_altivec(VP8DSPContext *c) |
267 { | 268 { |
268 if (!(mm_support() & AV_CPU_FLAG_ALTIVEC)) | 269 if (!(av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC)) |
269 return; | 270 return; |
270 | 271 |
271 c->put_vp8_epel_pixels_tab[0][0][0] = put_vp8_pixels16_altivec; | 272 c->put_vp8_epel_pixels_tab[0][0][0] = put_vp8_pixels16_altivec; |
272 c->put_vp8_epel_pixels_tab[0][0][2] = put_vp8_epel16_h6_altivec; | 273 c->put_vp8_epel_pixels_tab[0][0][2] = put_vp8_epel16_h6_altivec; |
273 c->put_vp8_epel_pixels_tab[0][2][0] = put_vp8_epel16_v6_altivec; | 274 c->put_vp8_epel_pixels_tab[0][2][0] = put_vp8_epel16_v6_altivec; |