-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathfallback.cc
141 lines (124 loc) · 6.01 KB
/
fallback.cc
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
/*
* H.265 video codec.
* Copyright (c) 2013-2014 struktur AG, Dirk Farin <[email protected]>
*
* This file is part of libde265.
*
* libde265 is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of
* the License, or (at your option) any later version.
*
* libde265 is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with libde265. If not, see <http://www.gnu.org/licenses/>.
*/
#include "fallback.h"
#include "fallback-motion.h"
#include "fallback-dct.h"
void init_acceleration_functions_fallback(struct acceleration_functions* accel)
{
#if 0
accel->put_weighted_pred_avg_8 = put_weighted_pred_avg_8_fallback;
accel->put_unweighted_pred_8 = put_unweighted_pred_8_fallback;
accel->put_weighted_pred_8 = put_weighted_pred_8_fallback;
accel->put_weighted_bipred_8 = put_weighted_bipred_8_fallback;
#endif
#if 0
accel->put_weighted_pred_avg_16 = put_weighted_pred_avg_16_fallback;
accel->put_unweighted_pred_16 = put_unweighted_pred_16_fallback;
accel->put_weighted_pred_16 = put_weighted_pred_16_fallback;
accel->put_weighted_bipred_16 = put_weighted_bipred_16_fallback;
#endif
#if 0
accel->put_hevc_epel_8 = put_epel_8_fallback;
accel->put_hevc_epel_h_8 = put_epel_hv_fallback<uint8_t>;
accel->put_hevc_epel_v_8 = put_epel_hv_fallback<uint8_t>;
accel->put_hevc_epel_hv_8 = put_epel_hv_fallback<uint8_t>;
#endif
#if 0
accel->put_hevc_qpel_8[0][0] = put_qpel_0_0_fallback;
accel->put_hevc_qpel_8[0][1] = put_qpel_0_1_fallback;
accel->put_hevc_qpel_8[0][2] = put_qpel_0_2_fallback;
accel->put_hevc_qpel_8[0][3] = put_qpel_0_3_fallback;
accel->put_hevc_qpel_8[1][0] = put_qpel_1_0_fallback;
accel->put_hevc_qpel_8[1][1] = put_qpel_1_1_fallback;
accel->put_hevc_qpel_8[1][2] = put_qpel_1_2_fallback;
accel->put_hevc_qpel_8[1][3] = put_qpel_1_3_fallback;
accel->put_hevc_qpel_8[2][0] = put_qpel_2_0_fallback;
accel->put_hevc_qpel_8[2][1] = put_qpel_2_1_fallback;
accel->put_hevc_qpel_8[2][2] = put_qpel_2_2_fallback;
accel->put_hevc_qpel_8[2][3] = put_qpel_2_3_fallback;
accel->put_hevc_qpel_8[3][0] = put_qpel_3_0_fallback;
accel->put_hevc_qpel_8[3][1] = put_qpel_3_1_fallback;
accel->put_hevc_qpel_8[3][2] = put_qpel_3_2_fallback;
accel->put_hevc_qpel_8[3][3] = put_qpel_3_3_fallback;
#endif
#if 0
accel->put_hevc_epel_16 = put_epel_16_fallback;
accel->put_hevc_epel_h_16 = put_epel_hv_fallback<uint16_t>;
accel->put_hevc_epel_v_16 = put_epel_hv_fallback<uint16_t>;
accel->put_hevc_epel_hv_16 = put_epel_hv_fallback<uint16_t>;
accel->put_hevc_qpel_16[0][0] = put_qpel_0_0_fallback_16;
accel->put_hevc_qpel_16[0][1] = put_qpel_0_1_fallback_16;
accel->put_hevc_qpel_16[0][2] = put_qpel_0_2_fallback_16;
accel->put_hevc_qpel_16[0][3] = put_qpel_0_3_fallback_16;
accel->put_hevc_qpel_16[1][0] = put_qpel_1_0_fallback_16;
accel->put_hevc_qpel_16[1][1] = put_qpel_1_1_fallback_16;
accel->put_hevc_qpel_16[1][2] = put_qpel_1_2_fallback_16;
accel->put_hevc_qpel_16[1][3] = put_qpel_1_3_fallback_16;
accel->put_hevc_qpel_16[2][0] = put_qpel_2_0_fallback_16;
accel->put_hevc_qpel_16[2][1] = put_qpel_2_1_fallback_16;
accel->put_hevc_qpel_16[2][2] = put_qpel_2_2_fallback_16;
accel->put_hevc_qpel_16[2][3] = put_qpel_2_3_fallback_16;
accel->put_hevc_qpel_16[3][0] = put_qpel_3_0_fallback_16;
accel->put_hevc_qpel_16[3][1] = put_qpel_3_1_fallback_16;
accel->put_hevc_qpel_16[3][2] = put_qpel_3_2_fallback_16;
accel->put_hevc_qpel_16[3][3] = put_qpel_3_3_fallback_16;
#endif
#if 0
accel->transform_skip_8 = transform_skip_8_fallback;
accel->transform_skip_rdpcm_h_8 = transform_skip_rdpcm_h_8_fallback;
accel->transform_skip_rdpcm_v_8 = transform_skip_rdpcm_v_8_fallback;
accel->transform_bypass = transform_bypass_fallback;
accel->transform_bypass_rdpcm_h = transform_bypass_rdpcm_h_fallback;
accel->transform_bypass_rdpcm_v = transform_bypass_rdpcm_v_fallback;
accel->transform_4x4_dst_add_8 = transform_4x4_luma_add_8_fallback;
accel->transform_add_8[0] = transform_4x4_add_8_fallback;
accel->transform_add_8[1] = transform_8x8_add_8_fallback;
accel->transform_add_8[2] = transform_16x16_add_8_fallback;
accel->transform_add_8[3] = transform_32x32_add_8_fallback;
#endif
accel->transform_skip_16 = transform_skip_16_fallback;
accel->transform_4x4_dst_add_16 = transform_4x4_luma_add_16_fallback;
accel->transform_add_16[0] = transform_4x4_add_16_fallback;
accel->transform_add_16[1] = transform_8x8_add_16_fallback;
accel->transform_add_16[2] = transform_16x16_add_16_fallback;
accel->transform_add_16[3] = transform_32x32_add_16_fallback;
accel->rotate_coefficients = rotate_coefficients_fallback;
accel->add_residual_8 = add_residual_fallback<uint8_t>;
accel->add_residual_16 = add_residual_fallback<uint16_t>;
accel->rdpcm_h = rdpcm_h_fallback;
accel->rdpcm_v = rdpcm_v_fallback;
accel->transform_skip_residual = transform_skip_residual_fallback;
#if 0
accel->transform_idst_4x4 = transform_idst_4x4_fallback;
accel->transform_idct_4x4 = transform_idct_4x4_fallback;
accel->transform_idct_8x8 = transform_idct_8x8_fallback;
accel->transform_idct_16x16 = transform_idct_16x16_fallback;
accel->transform_idct_32x32 = transform_idct_32x32_fallback;
#endif
accel->fwd_transform_4x4_dst_8 = fdst_4x4_8_fallback;
accel->fwd_transform_8[0] = fdct_4x4_8_fallback;
accel->fwd_transform_8[1] = fdct_8x8_8_fallback;
accel->fwd_transform_8[2] = fdct_16x16_8_fallback;
accel->fwd_transform_8[3] = fdct_32x32_8_fallback;
accel->hadamard_transform_8[0] = hadamard_4x4_8_fallback;
accel->hadamard_transform_8[1] = hadamard_8x8_8_fallback;
accel->hadamard_transform_8[2] = hadamard_16x16_8_fallback;
accel->hadamard_transform_8[3] = hadamard_32x32_8_fallback;
}