avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for hpel functions
[ffmpeg.git] / libavcodec / mips / hpeldsp_mips.h
1 /*
2  * Copyright (c) 2015 Parag Salasakar (Parag.Salasakar@imgtec.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 #ifndef AVCODEC_MIPS_HPELDSP_MIPS_H
22 #define AVCODEC_MIPS_HPELDSP_MIPS_H
23
24 #include "libavcodec/bit_depth_template.c"
25
26 void ff_put_pixels16_msa(uint8_t *block, const uint8_t *pixels,
27                          ptrdiff_t line_size, int32_t h);
28 void ff_put_pixels16_x2_msa(uint8_t *block, const uint8_t *pixels,
29                             ptrdiff_t line_size, int32_t h);
30 void ff_put_pixels16_y2_msa(uint8_t *block, const uint8_t *pixels,
31                             ptrdiff_t line_size, int32_t h);
32 void ff_put_pixels16_xy2_msa(uint8_t *block, const uint8_t *pixels,
33                              ptrdiff_t line_size, int32_t h);
34 void ff_put_pixels8_msa(uint8_t *block, const uint8_t *pixels,
35                         ptrdiff_t line_size, int32_t h);
36 void ff_put_pixels8_x2_msa(uint8_t *block, const uint8_t *pixels,
37                            ptrdiff_t line_size, int32_t h);
38 void ff_put_pixels8_y2_msa(uint8_t *block, const uint8_t *pixels,
39                            ptrdiff_t line_size, int32_t h);
40 void ff_put_pixels8_xy2_msa(uint8_t *block, const uint8_t *pixels,
41                             ptrdiff_t line_size, int32_t h);
42 void ff_put_pixels4_msa(uint8_t *block, const uint8_t *pixels,
43                         ptrdiff_t line_size, int32_t h);
44 void ff_put_pixels4_x2_msa(uint8_t *block, const uint8_t *pixels,
45                            ptrdiff_t line_size, int32_t h);
46 void ff_put_pixels4_y2_msa(uint8_t *block, const uint8_t *pixels,
47                            ptrdiff_t line_size, int32_t h);
48 void ff_put_pixels4_xy2_msa(uint8_t *block, const uint8_t *pixels,
49                             ptrdiff_t line_size, int32_t h);
50 void ff_put_no_rnd_pixels16_x2_msa(uint8_t *block, const uint8_t *pixels,
51                                    ptrdiff_t line_size, int32_t h);
52 void ff_put_no_rnd_pixels16_y2_msa(uint8_t *block, const uint8_t *pixels,
53                                    ptrdiff_t line_size, int32_t h);
54 void ff_put_no_rnd_pixels16_xy2_msa(uint8_t *block, const uint8_t *pixels,
55                                     ptrdiff_t line_size, int32_t h);
56 void ff_put_no_rnd_pixels8_x2_msa(uint8_t *block, const uint8_t *pixels,
57                                   ptrdiff_t line_size, int32_t h);
58 void ff_put_no_rnd_pixels8_y2_msa(uint8_t *block, const uint8_t *pixels,
59                                   ptrdiff_t line_size, int32_t h);
60 void ff_put_no_rnd_pixels8_xy2_msa(uint8_t *block, const uint8_t *pixels,
61                                    ptrdiff_t line_size, int32_t h);
62 void ff_avg_pixels16_msa(uint8_t *block, const uint8_t *pixels,
63                          ptrdiff_t line_size, int32_t h);
64 void ff_avg_pixels16_x2_msa(uint8_t *block, const uint8_t *pixels,
65                             ptrdiff_t line_size, int32_t h);
66 void ff_avg_pixels16_y2_msa(uint8_t *block, const uint8_t *pixels,
67                             ptrdiff_t line_size, int32_t h);
68 void ff_avg_pixels16_xy2_msa(uint8_t *block, const uint8_t *pixels,
69                              ptrdiff_t line_size, int32_t h);
70 void ff_avg_pixels8_msa(uint8_t *block, const uint8_t *pixels,
71                         ptrdiff_t line_size, int32_t h);
72 void ff_avg_pixels8_x2_msa(uint8_t *block, const uint8_t *pixels,
73                            ptrdiff_t line_size, int32_t h);
74 void ff_avg_pixels8_y2_msa(uint8_t *block, const uint8_t *pixels,
75                            ptrdiff_t line_size, int32_t h);
76 void ff_avg_pixels8_xy2_msa(uint8_t *block, const uint8_t *pixels,
77                             ptrdiff_t line_size, int32_t h);
78 void ff_avg_pixels4_msa(uint8_t *block, const uint8_t *pixels,
79                         ptrdiff_t line_size, int32_t h);
80 void ff_avg_pixels4_x2_msa(uint8_t *block, const uint8_t *pixels,
81                            ptrdiff_t line_size, int32_t h);
82 void ff_avg_pixels4_y2_msa(uint8_t *block, const uint8_t *pixels,
83                            ptrdiff_t line_size, int32_t h);
84 void ff_avg_pixels4_xy2_msa(uint8_t *block, const uint8_t *pixels,
85                             ptrdiff_t line_size, int32_t h);
86
87 #endif  // #ifndef AVCODEC_MIPS_HPELDSP_MIPS_H