]> git.sesse.net Git - ffmpeg/blob - libavcodec/bfin/hpeldsp_bfin.h
bfin: hpeldsp: Move half-pel assembly from dsputil to hpeldsp
[ffmpeg] / libavcodec / bfin / hpeldsp_bfin.h
1 /*
2  * Copyright (C) 2007 Marc Hoffman <mmh@pleasantst.com>
3  *
4  * This file is part of Libav.
5  *
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.
10  *
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.
15  *
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  */
20
21 #ifndef AVCODEC_BFIN_HPELDSP_BFIN_H
22 #define AVCODEC_BFIN_HPELDSP_BFIN_H
23
24 #include <stdint.h>
25
26 #include "config.h"
27
28 #if defined(__FDPIC__) && CONFIG_SRAM
29 #define attribute_l1_text  __attribute__ ((l1_text))
30 #define attribute_l1_data_b __attribute__((l1_data_B))
31 #else
32 #define attribute_l1_text
33 #define attribute_l1_data_b
34 #endif
35
36 void ff_bfin_z_put_pixels16_xy2     (uint8_t *block, const uint8_t *s0, int dest_size, int line_size, int h) attribute_l1_text;
37 void ff_bfin_z_put_pixels8_xy2      (uint8_t *block, const uint8_t *s0, int dest_size, int line_size, int h) attribute_l1_text;
38 void ff_bfin_put_pixels16_xy2_nornd (uint8_t *block, const uint8_t *s0, int line_size, int h) attribute_l1_text;
39 void ff_bfin_put_pixels8_xy2_nornd  (uint8_t *block, const uint8_t *s0, int line_size, int h) attribute_l1_text;
40
41
42 void ff_bfin_put_pixels8uc        (uint8_t *block, const uint8_t *s0, const uint8_t *s1, int dest_size, int line_size, int h) attribute_l1_text;
43 void ff_bfin_put_pixels16uc       (uint8_t *block, const uint8_t *s0, const uint8_t *s1, int dest_size, int line_size, int h) attribute_l1_text;
44 void ff_bfin_put_pixels8uc_nornd  (uint8_t *block, const uint8_t *s0, const uint8_t *s1, int line_size, int h) attribute_l1_text;
45 void ff_bfin_put_pixels16uc_nornd (uint8_t *block, const uint8_t *s0, const uint8_t *s1, int line_size, int h) attribute_l1_text;
46
47 #endif /* AVCODEC_BFIN_HPELDSP_BFIN_H */