1 ;*****************************************************************************
2 ;* x86-optimized functions for yadif filter
4 ;* Copyright (C) 2006 Michael Niedermayer <michaelni@gmx.at>
5 ;* Copyright (c) 2013 Daniel Kang <daniel.d.kang@gmail.com>
6 ;* Copyright (c) 2011-2013 James Darnley <james.darnley@gmail.com>
8 ;* This file is part of FFmpeg.
10 ;* FFmpeg is free software; you can redistribute it and/or modify
11 ;* it under the terms of the GNU General Public License as published by
12 ;* the Free Software Foundation; either version 2 of the License, or
13 ;* (at your option) any later version.
15 ;* FFmpeg is distributed in the hope that it will be useful,
16 ;* but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ;* GNU General Public License for more details.
20 ;* You should have received a copy of the GNU General Public License along
21 ;* with FFmpeg; if not, write to the Free Software Foundation, Inc.,
22 ;* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 ;******************************************************************************
25 %include "libavutil/x86/x86util.asm"
54 movu m2, [curq+t1+%1*2]
55 movu m3, [curq+t0+%2*2]
108 ; This version of CHECK2 is required for 14-bit samples. The left-shift trick
109 ; in the old code is not large enough to correctly select pixels or scores.
171 movu m2, [curq+t1-1*2]
172 movu m3, [curq+t0-1*2]
241 sub DWORD r4m, mmsize/2-2
247 cglobal yadif_filter_line_10bit, 4, 6, 8, 80, dst, prev, cur, next, w, \
248 prefs, mrefs, parity, mode
250 cglobal yadif_filter_line_10bit, 4, 7, 8, 80, dst, prev, cur, next, w, \
251 prefs, mrefs, parity, mode
265 FILTER 1, prevq, curq
269 FILTER 0, curq, nextq