1 ;*****************************************************************************
2 ;* x86-optimized functions for overlay filter
4 ;* Copyright (C) 2018 Paul B Mahol
5 ;* Copyright (C) 2018 Henrik Gramner
7 ;* This file is part of FFmpeg.
9 ;* FFmpeg is free software; you can redistribute it and/or
10 ;* modify it under the terms of the GNU Lesser General Public
11 ;* License as published by the Free Software Foundation; either
12 ;* version 2.1 of the License, or (at your option) any later version.
14 ;* FFmpeg is distributed in the hope that it will be useful,
15 ;* but WITHOUT ANY WARRANTY; without even the implied warranty of
16 ;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 ;* Lesser General Public License for more details.
19 ;* You should have received a copy of the GNU Lesser General Public
20 ;* License along with FFmpeg; if not, write to the Free Software
21 ;* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22 ;*****************************************************************************
24 %include "libavutil/x86/x86util.asm"
29 pw_128: times
8 dw 128
30 pw_255: times
8 dw 255
31 pw_257: times
8 dw 257
36 cglobal overlay_row_44
, 5, 7, 6, 0, dst
, da
, s
, a
, w
, r
, x
50 pmovzxbw m1
, [dstq
+xq
]
68 cglobal overlay_row_22
, 5, 7, 6, 0, dst
, da
, s
, a
, w
, r
, x
88 pmovzxbw m1
, [dstq
+xq
]
106 cglobal overlay_row_20
, 6, 7, 7, 0, dst
, da
, s
, a
, w
, r
, x
129 pmovzxbw m1
, [dstq
+xq
]