1 ;*****************************************************************************
2 ;* x86-optimized functions for eq filter
4 ;* Original MPlayer filters by Richard Felker.
6 ;* This file is part of FFmpeg.
8 ;* FFmpeg is free software; you can redistribute it and/or modify
9 ;* it under the terms of the GNU General Public License as published by
10 ;* the Free Software Foundation; either version 2 of the License, or
11 ;* (at your option) any later version.
13 ;* FFmpeg is distributed in the hope that it will be useful,
14 ;* but WITHOUT ANY WARRANTY; without even the implied warranty of
15 ;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 ;* GNU General Public License for more details.
18 ;* You should have received a copy of the GNU General Public License along
19 ;* with FFmpeg; if not, write to the Free Software Foundation, Inc.,
20 ;* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 ;*****************************************************************************
23 %include "libavutil/x86/x86util.asm"
27 %macro PROCESS_ONE_LINE 1
28 cglobal process_one_line, 5, 7, 5, src, dst, contrast, brightness, w
32 movsx r6d, brightnessw
36 DEFINE_ARGS src, dst, tmp, scalar, w
68 movzx tmpd, byte [srcq]