aboutsummaryrefslogtreecommitdiff
path: root/common/ih264_inter_pred_filters.h
blob: f42222fde5fdc20ad8e2b3b4e19a5818e00cb560 (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
/******************************************************************************
 *
 * 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
*
* @remarks
*  none
*
*******************************************************************************
*/

#ifndef _IH264_INTER_PRED_FILTERS_H_
#define _IH264_INTER_PRED_FILTERS_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);

/* C 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 /* _IH264_INTER_PRED_FILTERS_H_ */