1 ;*****************************************************************************
2 ;* Copyright 2016 Anton Khirnov
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
19 ;******************************************************************************
21 %include "libavutil/x86/x86util.asm"
26 cglobal image_copy_plane_uc_from, 6, 7, 4, dst, dst_linesize, src, src_linesize, bw, height, rowpos
35 movntdqa m0, [srcq + rowposq + 0 * mmsize]
36 movntdqa m1, [srcq + rowposq + 1 * mmsize]
37 movntdqa m2, [srcq + rowposq + 2 * mmsize]
38 movntdqa m3, [srcq + rowposq + 3 * mmsize]
40 mova [dstq + rowposq + 0 * mmsize], m0
41 mova [dstq + rowposq + 1 * mmsize], m1
42 mova [dstq + rowposq + 2 * mmsize], m2
43 mova [dstq + rowposq + 3 * mmsize], m3
45 add rowposq, 4 * mmsize
48 add srcq, src_linesizeq
49 add dstq, dst_linesizeq