summaryrefslogtreecommitdiffstats
path: root/common/ih264_inter_pred_filters.h
blob: c439ab8429f4f22d438d3212f9379f6498939da7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
/******************************************************************************
 *
 * Copyright (C) 2015 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at:
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 *****************************************************************************
 * Originally developed and contributed by Ittiam Systems Pvt. Ltd, Bangalore
*/

/**
 *******************************************************************************
 * @file
 *  ih264_inter_pred_filters.h
 *
 * @brief
 *  Declarations of functions used for inter prediction
 *
 * @author
 *  Ittiam
 *
 * @par List of Functions:
 *  -ih264_inter_pred_luma_copy
 *  -ih264_interleave_copy
 *  -ih264_inter_pred_luma_horz
 *  -ih264_inter_pred_luma_vert
 *  -ih264_inter_pred_luma_horz_hpel_vert_hpel
 *  -ih264_inter_pred_luma_vert_qpel
 *  -ih264_inter_pred_luma_horz_qpel
 *  -ih264_inter_pred_luma_horz_qpel_vert_qpel
 *  -ih264_inter_pred_luma_horz_qpel_vert_hpel
 *  -ih264_inter_pred_luma_horz_hpel_vert_qpel
 *  -ih264_inter_pred_luma_bilinear
 *  -ih264_inter_pred_chroma
 *  -ih264_inter_pred_luma_copy_a9q
 *  -ih264_interleave_copy_a9
 *  -ih264_inter_pred_luma_horz_a9q
 *  -ih264_inter_pred_luma_vert_a9q
 *  -ih264_inter_pred_luma_bilinear_a9q
 *  -ih264_inter_pred_luma_horz_hpel_vert_hpel_a9q
 *  -ih264_inter_pred_luma_horz_qpel_a9q
 *  -ih264_inter_pred_luma_vert_qpel_a9q
 *  -ih264_inter_pred_luma_horz_qpel_vert_qpel_a9q
 *  -ih264_inter_pred_luma_horz_qpel_vert_hpel_a9q
 *  -ih264_inter_pred_luma_horz_hpel_vert_qpel_a9q
 *  -ih264_inter_pred_chroma_a9q
 *  -ih264_inter_pred_luma_copy_av8
 *  -ih264_interleave_copy_av8
 *  -ih264_inter_pred_luma_horz_av8
 *  -ih264_inter_pred_luma_vert_av8
  *  -ih264_inter_pred_luma_bilinear_av8
 *  -ih264_inter_pred_luma_horz_hpel_vert_hpel_av8
 *  -ih264_inter_pred_luma_horz_qpel_av8
 *  -ih264_inter_pred_luma_vert_qpel_av8
 *  -ih264_inter_pred_luma_horz_qpel_vert_qpel_av8
 *  -ih264_inter_pred_luma_horz_qpel_vert_hpel_av8
 *  -ih264_inter_pred_luma_horz_hpel_vert_qpel_av8
 *  -ih264_inter_pred_chroma_av8
 *  -ih264_inter_pred_chroma_dx_zero_av8
 *  -ih264_inter_pred_chroma_dy_zero_av8
 *  -ih264_inter_pred_luma_copy_ssse3
 *  -ih264_inter_pred_luma_copy_ssse3
 *  -ih264_inter_pred_luma_horz_ssse3
 *  -ih264_inter_pred_luma_vert_ssse3
 *  -ih264_inter_pred_luma_bilinear_ssse3
 *  -ih264_inter_pred_luma_horz_hpel_vert_hpel_ssse3
 *  -ih264_inter_pred_luma_horz_qpel_ssse3
 *  -ih264_inter_pred_luma_vert_qpel_ssse3
 *  -ih264_inter_pred_luma_horz_qpel_vert_qpel_ssse3
 *  -ih264_inter_pred_luma_horz_qpel_vert_hpel_ssse3
 *  -ih264_inter_pred_luma_horz_hpel_vert_qpel_ssse3
 *  -ih264_inter_pred_chroma_ssse3
 *
 * @remarks
 *  None
 *
 *******************************************************************************
 */

#ifndef _IH264_INTER_PRED_H_
#define _IH264_INTER_PRED_H_

/*****************************************************************************/
/* Constant Data variables                                                   */
/*****************************************************************************/

extern const WORD32 ih264_g_six_tap[3];/* coefficients for 6 tap filtering*/

/*****************************************************************************/
/* Extern Function Declarations                                              */
/*****************************************************************************/

typedef void ih264_inter_pred_luma_ft(UWORD8 *pu1_src,
                                      UWORD8 *pu1_dst,
                                      WORD32 src_strd,
                                      WORD32 dst_strd,
                                      WORD32 ht,
                                      WORD32 wd,
                                      UWORD8* pu1_tmp,
                                      WORD32 dydx);

typedef void ih264_interleave_copy_ft(UWORD8 *pu1_src,
                                      UWORD8 *pu1_dst,
                                      WORD32 src_strd,
                                      WORD32 dst_strd,
                                      WORD32 ht,
                                      WORD32 wd);

typedef void ih264_inter_pred_luma_bilinear_ft(UWORD8 *pu1_src1,
                                               UWORD8 *pu1_src2,
                                               UWORD8 *pu1_dst,
                                               WORD32 src_strd1,
                                               WORD32 src_strd2,
                                               WORD32 dst_strd,
                                               WORD32 height,
                                               WORD32 width);

typedef void ih264_inter_pred_chroma_ft(UWORD8 *pu1_src,
                                        UWORD8 *pu1_dst,
                                        WORD32 src_strd,
                                        WORD32 dst_strd,
                                        WORD32 dx,
                                        WORD32 dy,
                                        WORD32 ht,
                                        WORD32 wd);

/* No NEON Declarations */

ih264_inter_pred_luma_ft ih264_inter_pred_luma_copy;

ih264_interleave_copy_ft ih264_interleave_copy;

ih264_inter_pred_luma_ft ih264_inter_pred_luma_horz;

ih264_inter_pred_luma_ft ih264_inter_pred_luma_vert;

ih264_inter_pred_luma_ft ih264_inter_pred_luma_horz_hpel_vert_hpel;

ih264_inter_pred_luma_ft ih264_inter_pred_luma_vert_qpel;

ih264_inter_pred_luma_ft ih264_inter_pred_luma_horz_qpel;

ih264_inter_pred_luma_ft ih264_inter_pred_luma_horz_qpel_vert_qpel;

ih264_inter_pred_luma_ft ih264_inter_pred_luma_horz_qpel_vert_hpel;

ih264_inter_pred_luma_ft ih264_inter_pred_luma_horz_hpel_vert_qpel;

ih264_inter_pred_luma_bilinear_ft ih264_inter_pred_luma_bilinear;

ih264_inter_pred_chroma_ft ih264_inter_pred_chroma;

/* A9 NEON Declarations */
ih264_inter_pred_luma_ft ih264_inter_pred_luma_copy_a9q;

ih264_interleave_copy_ft ih264_interleave_copy_a9;

ih264_inter_pred_luma_ft ih264_inter_pred_luma_horz_a9q;

ih264_inter_pred_luma_ft ih264_inter_pred_luma_vert_a9q;

ih264_inter_pred_luma_bilinear_ft ih264_inter_pred_luma_bilinear_a9q;

ih264_inter_pred_luma_ft ih264_inter_pred_luma_horz_hpel_vert_hpel_a9q;

ih264_inter_pred_luma_ft ih264_inter_pred_luma_horz_qpel_a9q;

ih264_inter_pred_luma_ft ih264_inter_pred_luma_vert_qpel_a9q;

ih264_inter_pred_luma_ft ih264_inter_pred_luma_horz_qpel_vert_qpel_a9q;

ih264_inter_pred_luma_ft ih264_inter_pred_luma_horz_qpel_vert_hpel_a9q;

ih264_inter_pred_luma_ft ih264_inter_pred_luma_horz_hpel_vert_qpel_a9q;

ih264_inter_pred_chroma_ft ih264_inter_pred_chroma_a9q;

/* AV8 NEON Declarations */
ih264_inter_pred_luma_ft ih264_inter_pred_luma_copy_av8;

ih264_interleave_copy_ft ih264_interleave_copy_av8;

ih264_inter_pred_luma_ft ih264_inter_pred_luma_horz_av8;

ih264_inter_pred_luma_ft ih264_inter_pred_luma_vert_av8;

ih264_inter_pred_luma_ft ih264_inter_pred_luma_horz_hpel_vert_hpel_av8;

ih264_inter_pred_luma_ft ih264_inter_pred_luma_horz_qpel_av8;

ih264_inter_pred_luma_ft ih264_inter_pred_luma_vert_qpel_av8;

ih264_inter_pred_luma_ft ih264_inter_pred_luma_horz_qpel_vert_qpel_av8;

ih264_inter_pred_luma_ft ih264_inter_pred_luma_horz_qpel_vert_hpel_av8;

ih264_inter_pred_luma_ft ih264_inter_pred_luma_horz_hpel_vert_qpel_av8;

ih264_inter_pred_chroma_ft ih264_inter_pred_chroma_av8;

ih264_inter_pred_chroma_ft ih264_inter_pred_chroma_dx_zero_av8;

ih264_inter_pred_chroma_ft ih264_inter_pred_chroma_dy_zero_av8;


/* SSSE3 Intrinsic Declarations */
ih264_inter_pred_luma_ft ih264_inter_pred_luma_copy_ssse3;

ih264_inter_pred_luma_ft ih264_inter_pred_luma_horz_ssse3;

ih264_inter_pred_luma_ft ih264_inter_pred_luma_vert_ssse3;

ih264_inter_pred_luma_bilinear_ft ih264_inter_pred_luma_bilinear_ssse3;

ih264_inter_pred_luma_ft ih264_inter_pred_luma_horz_hpel_vert_hpel_ssse3;

ih264_inter_pred_luma_ft ih264_inter_pred_luma_horz_qpel_ssse3;

ih264_inter_pred_luma_ft ih264_inter_pred_luma_vert_qpel_ssse3;

ih264_inter_pred_luma_ft ih264_inter_pred_luma_horz_qpel_vert_qpel_ssse3;

ih264_inter_pred_luma_ft ih264_inter_pred_luma_horz_qpel_vert_hpel_ssse3;

ih264_inter_pred_luma_ft ih264_inter_pred_luma_horz_hpel_vert_qpel_ssse3;

ih264_inter_pred_chroma_ft ih264_inter_pred_chroma_ssse3;

#endif

/** Nothing past this point */