1 ;*****************************************************************************
2 ;* x86-optimized functions for scene SAD
4 ;* Copyright (C) 2018 Marton Balint
6 ;* Based on vf_blend.asm, Copyright (C) 2015 Paul B Mahol
8 ;* This file is part of FFmpeg.
10 ;* FFmpeg is free software; you can redistribute it and/or
11 ;* modify it under the terms of the GNU Lesser General Public
12 ;* License as published by the Free Software Foundation; either
13 ;* version 2.1 of the License, or (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 GNU
18 ;* Lesser General Public License for more details.
20 ;* You should have received a copy of the GNU Lesser General Public
21 ;* License along with FFmpeg; if not, write to the Free Software
22 ;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23 ;******************************************************************************
25 %include "libavutil/x86/x86util.asm"
31 cglobal scene_sad, 6, 7, 2, src1, stride1, src2, stride2, width, end, x
45 psadbw m0, [src2q + xq]
69 %if HAVE_AVX2_EXTERNAL