1 ;******************************************************************************
2 ;* SIMD-optimized halfpel functions
4 ;* This file is part of Libav.
6 ;* Libav 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 ;* Libav 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 Libav; 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"
28 ; void ff_put_pixels8_x2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
29 %macro PUT_PIXELS8_X2 0
30 cglobal put_pixels8_x2, 4,5
60 ; void ff_put_pixels16_x2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
61 %macro PUT_PIXELS_16 0
62 cglobal put_pixels16_x2, 4,5
104 ; void ff_put_no_rnd_pixels8_x2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
105 %macro PUT_NO_RND_PIXELS8_X2 0
106 cglobal put_no_rnd_pixels8_x2, 4,5
140 PUT_NO_RND_PIXELS8_X2
142 PUT_NO_RND_PIXELS8_X2
145 ; void ff_put_no_rnd_pixels8_x2_exact(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
146 %macro PUT_NO_RND_PIXELS8_X2_EXACT 0
147 cglobal put_no_rnd_pixels8_x2_exact, 4,5
187 PUT_NO_RND_PIXELS8_X2_EXACT
189 PUT_NO_RND_PIXELS8_X2_EXACT
192 ; void ff_put_pixels8_y2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
193 %macro PUT_PIXELS8_Y2 0
194 cglobal put_pixels8_y2, 4,5
226 ; void ff_put_no_rnd_pixels8_y2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
227 %macro PUT_NO_RND_PIXELS8_Y2 0
228 cglobal put_no_rnd_pixels8_y2, 4,5
258 PUT_NO_RND_PIXELS8_Y2
260 PUT_NO_RND_PIXELS8_Y2
263 ; void ff_put_no_rnd_pixels8_y2_exact(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
264 %macro PUT_NO_RND_PIXELS8_Y2_EXACT 0
265 cglobal put_no_rnd_pixels8_y2_exact, 4,5
300 PUT_NO_RND_PIXELS8_Y2_EXACT
302 PUT_NO_RND_PIXELS8_Y2_EXACT
305 ; void ff_avg_pixels8(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
307 cglobal avg_pixels8, 4,5
335 ; void ff_avg_pixels8_x2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
336 %macro AVG_PIXELS8_X2 0
337 cglobal avg_pixels8_x2, 4,5
371 ; void ff_avg_pixels8_y2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
372 %macro AVG_PIXELS8_Y2 0
373 cglobal avg_pixels8_y2, 4,5
413 ; void ff_avg_pixels8_xy2(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h)
414 %macro AVG_PIXELS8_XY2 0
415 cglobal avg_pixels8_xy2, 4,5