2 * Copyright (c) 2009 David Conrad
4 * This file is part of FFmpeg.
6 * FFmpeg is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * FFmpeg is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
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
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23 .macro vp3_loop_filter
47 function ff_vp3_v_loop_filter_neon, export=1
49 sub r0, r0, r1, lsl #1
50 vld1.64 {d16}, [r0,:64], r1
51 vld1.64 {d17}, [r0,:64], r1
52 vld1.64 {d18}, [r0,:64], r1
53 vld1.64 {d19}, [r0,:64], r1
58 vst1.64 {d0}, [ip,:64], r1
59 vst1.64 {d1}, [ip,:64], r1
63 function ff_vp3_h_loop_filter_neon, export=1
66 vld1.32 {d16[]}, [r0], r1
67 vld1.32 {d17[]}, [r0], r1
68 vld1.32 {d18[]}, [r0], r1
69 vld1.32 {d19[]}, [r0], r1
70 vld1.32 {d16[1]}, [r0], r1
71 vld1.32 {d17[1]}, [r0], r1
72 vld1.32 {d18[1]}, [r0], r1
73 vld1.32 {d19[1]}, [r0], r1
85 vst1.16 {d0[0]}, [ip], r1
86 vst1.16 {d1[0]}, [ip], r1
87 vst1.16 {d0[1]}, [ip], r1
88 vst1.16 {d1[1]}, [ip], r1
89 vst1.16 {d0[2]}, [ip], r1
90 vst1.16 {d1[2]}, [ip], r1
91 vst1.16 {d0[3]}, [ip], r1
92 vst1.16 {d1[3]}, [ip], r1