00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #include <stdint.h>
00020
00021 #include "libavutil/attributes.h"
00022 #include "libavutil/cpu.h"
00023 #include "libavutil/arm/cpu.h"
00024 #include "libavcodec/vp3dsp.h"
00025
00026 void ff_vp3_idct_put_neon(uint8_t *dest, int line_size, DCTELEM *data);
00027 void ff_vp3_idct_add_neon(uint8_t *dest, int line_size, DCTELEM *data);
00028 void ff_vp3_idct_dc_add_neon(uint8_t *dest, int line_size, const DCTELEM *data);
00029
00030 void ff_vp3_v_loop_filter_neon(uint8_t *, int, int *);
00031 void ff_vp3_h_loop_filter_neon(uint8_t *, int, int *);
00032
00033 av_cold void ff_vp3dsp_init_arm(VP3DSPContext *c, int flags)
00034 {
00035 int cpu_flags = av_get_cpu_flags();
00036
00037 if (have_neon(cpu_flags)) {
00038 c->idct_put = ff_vp3_idct_put_neon;
00039 c->idct_add = ff_vp3_idct_add_neon;
00040 c->idct_dc_add = ff_vp3_idct_dc_add_neon;
00041 c->v_loop_filter = ff_vp3_v_loop_filter_neon;
00042 c->h_loop_filter = ff_vp3_h_loop_filter_neon;
00043 c->idct_perm = FF_TRANSPOSE_IDCT_PERM;
00044 }
00045 }