1/* 2 * Copyright (c) 2009 Mans Rullgard <mans@mansr.com> 3 * 4 * This file is part of FFmpeg. 5 * 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. 10 * 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. 15 * 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 */ 20 21#include <stddef.h> 22#include <stdint.h> 23 24#include "libavutil/attributes.h" 25#include "hpeldsp_arm.h" 26 27void ff_put_pixels16_armv6(uint8_t *, const uint8_t *, ptrdiff_t, int); 28void ff_put_pixels16_x2_armv6(uint8_t *, const uint8_t *, ptrdiff_t, int); 29void ff_put_pixels16_y2_armv6(uint8_t *, const uint8_t *, ptrdiff_t, int); 30 31void ff_put_pixels16_x2_no_rnd_armv6(uint8_t *, const uint8_t *, ptrdiff_t, int); 32void ff_put_pixels16_y2_no_rnd_armv6(uint8_t *, const uint8_t *, ptrdiff_t, int); 33 34void ff_avg_pixels16_armv6(uint8_t *, const uint8_t *, ptrdiff_t, int); 35 36void ff_put_pixels8_armv6(uint8_t *, const uint8_t *, ptrdiff_t, int); 37void ff_put_pixels8_x2_armv6(uint8_t *, const uint8_t *, ptrdiff_t, int); 38void ff_put_pixels8_y2_armv6(uint8_t *, const uint8_t *, ptrdiff_t, int); 39 40void ff_put_pixels8_x2_no_rnd_armv6(uint8_t *, const uint8_t *, ptrdiff_t, int); 41void ff_put_pixels8_y2_no_rnd_armv6(uint8_t *, const uint8_t *, ptrdiff_t, int); 42 43void ff_avg_pixels8_armv6(uint8_t *, const uint8_t *, ptrdiff_t, int); 44 45av_cold void ff_hpeldsp_init_armv6(HpelDSPContext *c, int flags) 46{ 47 c->put_pixels_tab[0][0] = ff_put_pixels16_armv6; 48 c->put_pixels_tab[0][1] = ff_put_pixels16_x2_armv6; 49 c->put_pixels_tab[0][2] = ff_put_pixels16_y2_armv6; 50/* c->put_pixels_tab[0][3] = ff_put_pixels16_xy2_armv6; */ 51 c->put_pixels_tab[1][0] = ff_put_pixels8_armv6; 52 c->put_pixels_tab[1][1] = ff_put_pixels8_x2_armv6; 53 c->put_pixels_tab[1][2] = ff_put_pixels8_y2_armv6; 54/* c->put_pixels_tab[1][3] = ff_put_pixels8_xy2_armv6; */ 55 56 c->put_no_rnd_pixels_tab[0][0] = ff_put_pixels16_armv6; 57 c->put_no_rnd_pixels_tab[0][1] = ff_put_pixels16_x2_no_rnd_armv6; 58 c->put_no_rnd_pixels_tab[0][2] = ff_put_pixels16_y2_no_rnd_armv6; 59/* c->put_no_rnd_pixels_tab[0][3] = ff_put_pixels16_xy2_no_rnd_armv6; */ 60 c->put_no_rnd_pixels_tab[1][0] = ff_put_pixels8_armv6; 61 c->put_no_rnd_pixels_tab[1][1] = ff_put_pixels8_x2_no_rnd_armv6; 62 c->put_no_rnd_pixels_tab[1][2] = ff_put_pixels8_y2_no_rnd_armv6; 63/* c->put_no_rnd_pixels_tab[1][3] = ff_put_pixels8_xy2_no_rnd_armv6; */ 64 65 c->avg_pixels_tab[0][0] = ff_avg_pixels16_armv6; 66 c->avg_pixels_tab[1][0] = ff_avg_pixels8_armv6; 67} 68