summaryrefslogtreecommitdiff
path: root/pkg/dav1d/patch/0002-Remove-invalid-at-top-level.patch
blob: ef8f9080b3022cff0a6fa0562170bfdb3b5cb624 (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
242
243
244
245
246
247
248
249
250
251
252
253
254
255
From 152e1ab7151fe8461ba4243a9d6bdea0edda7690 Mon Sep 17 00:00:00 2001
From: Michael Forney <mforney@mforney.org>
Date: Fri, 30 Apr 2021 18:56:27 -0700
Subject: [PATCH] Remove invalid ';' at top-level

This is not allowed in the ISO C grammar.
---
 src/cdef_tmpl.c                     |   6 +-
 src/film_grain_tmpl.c               |  12 ++--
 src/looprestoration.h               |   4 +-
 src/mc_tmpl.c                       |   6 +-
 src/x86/looprestoration_init_tmpl.c |  16 ++---
 src/x86/mc_init_tmpl.c              | 106 ++++++++++++++--------------
 6 files changed, 75 insertions(+), 75 deletions(-)

diff --git a/src/cdef_tmpl.c b/src/cdef_tmpl.c
index 91ac45b..7ad3cb0 100644
--- a/src/cdef_tmpl.c
+++ b/src/cdef_tmpl.c
@@ -222,9 +222,9 @@ static void cdef_filter_block_##w##x##h##_c(pixel *const dst, \
                         dir, damping, w, h, edges HIGHBD_TAIL_SUFFIX); \
 }
 
-cdef_fn(4, 4);
-cdef_fn(4, 8);
-cdef_fn(8, 8);
+cdef_fn(4, 4)
+cdef_fn(4, 8)
+cdef_fn(8, 8)
 
 static int cdef_find_dir_c(const pixel *img, const ptrdiff_t stride,
                            unsigned *const var HIGHBD_DECL_SUFFIX)
diff --git a/src/film_grain_tmpl.c b/src/film_grain_tmpl.c
index 0c6a17c..0ee4e53 100644
--- a/src/film_grain_tmpl.c
+++ b/src/film_grain_tmpl.c
@@ -149,9 +149,9 @@ static decl_generate_grain_uv_fn(generate_grain_uv_##nm##_c) { \
     generate_grain_uv_c(buf, buf_y, data, uv, ss_x, ss_y HIGHBD_TAIL_SUFFIX); \
 }
 
-gnuv_ss_fn(420, 1, 1);
-gnuv_ss_fn(422, 1, 0);
-gnuv_ss_fn(444, 0, 0);
+gnuv_ss_fn(420, 1, 1)
+gnuv_ss_fn(422, 1, 0)
+gnuv_ss_fn(444, 0, 0)
 
 // samples from the correct block of a grain LUT, while taking into account the
 // offsets provided by the offsets cache
@@ -408,9 +408,9 @@ static decl_fguv_32x32xn_fn(fguv_32x32xn_##nm##_c) { \
                    HIGHBD_TAIL_SUFFIX); \
 }
 
-fguv_ss_fn(420, 1, 1);
-fguv_ss_fn(422, 1, 0);
-fguv_ss_fn(444, 0, 0);
+fguv_ss_fn(420, 1, 1)
+fguv_ss_fn(422, 1, 0)
+fguv_ss_fn(444, 0, 0)
 
 COLD void bitfn(dav1d_film_grain_dsp_init)(Dav1dFilmGrainDSPContext *const c) {
     c->generate_grain_y = generate_grain_y_c;
diff --git a/src/looprestoration.h b/src/looprestoration.h
index a0a917f..3626aa4 100644
--- a/src/looprestoration.h
+++ b/src/looprestoration.h
@@ -66,8 +66,8 @@ void (name)(pixel *dst, ptrdiff_t dst_stride, \
             const_left_pixel_row left, \
             const pixel *lpf, ptrdiff_t lpf_stride, \
             int w, int h, const LooprestorationParams *params, \
-            enum LrEdgeFlags edges HIGHBD_DECL_SUFFIX)
-typedef decl_lr_filter_fn(*looprestorationfilter_fn);
+            enum LrEdgeFlags edges HIGHBD_DECL_SUFFIX);
+typedef decl_lr_filter_fn(*looprestorationfilter_fn)
 
 typedef struct Dav1dLoopRestorationDSPContext {
     looprestorationfilter_fn wiener[2]; /* 7-tap, 5-tap */
diff --git a/src/mc_tmpl.c b/src/mc_tmpl.c
index f8d3e3b..374db4c 100644
--- a/src/mc_tmpl.c
+++ b/src/mc_tmpl.c
@@ -735,9 +735,9 @@ static void w_mask_##ssn##_c(pixel *const dst, const ptrdiff_t dst_stride, \
              HIGHBD_TAIL_SUFFIX); \
 }
 
-w_mask_fns(444, 0, 0);
-w_mask_fns(422, 1, 0);
-w_mask_fns(420, 1, 1);
+w_mask_fns(444, 0, 0)
+w_mask_fns(422, 1, 0)
+w_mask_fns(420, 1, 1)
 
 #undef w_mask_fns
 
diff --git a/src/x86/looprestoration_init_tmpl.c b/src/x86/looprestoration_init_tmpl.c
index ae64cc8..c92b7cc 100644
--- a/src/x86/looprestoration_init_tmpl.c
+++ b/src/x86/looprestoration_init_tmpl.c
@@ -31,19 +31,19 @@
 #include "common/intops.h"
 
 #define decl_wiener_filter_fns(ext) \
-decl_lr_filter_fn(BF(dav1d_wiener_filter7, ext)); \
+decl_lr_filter_fn(BF(dav1d_wiener_filter7, ext)) \
 decl_lr_filter_fn(BF(dav1d_wiener_filter5, ext))
 
 #define decl_sgr_filter_fns(ext) \
-decl_lr_filter_fn(BF(dav1d_sgr_filter_5x5, ext)); \
-decl_lr_filter_fn(BF(dav1d_sgr_filter_3x3, ext)); \
+decl_lr_filter_fn(BF(dav1d_sgr_filter_5x5, ext)) \
+decl_lr_filter_fn(BF(dav1d_sgr_filter_3x3, ext)) \
 decl_lr_filter_fn(BF(dav1d_sgr_filter_mix, ext))
 
-decl_wiener_filter_fns(sse2);
-decl_wiener_filter_fns(ssse3);
-decl_wiener_filter_fns(avx2);
-decl_sgr_filter_fns(ssse3);
-decl_sgr_filter_fns(avx2);
+decl_wiener_filter_fns(sse2)
+decl_wiener_filter_fns(ssse3)
+decl_wiener_filter_fns(avx2)
+decl_sgr_filter_fns(ssse3)
+decl_sgr_filter_fns(avx2)
 
 COLD void bitfn(dav1d_loop_restoration_dsp_init_x86)(Dav1dLoopRestorationDSPContext *const c,
                                                      const int bpc)
diff --git a/src/x86/mc_init_tmpl.c b/src/x86/mc_init_tmpl.c
index 3991004..0bd6188 100644
--- a/src/x86/mc_init_tmpl.c
+++ b/src/x86/mc_init_tmpl.c
@@ -42,68 +42,68 @@
 #define init_mct_scaled_fn(type, name, suffix) \
     c->mct_scaled[type] = BF(dav1d_prep_##name, suffix)
 
-decl_fn(mc, dav1d_put_8tap_regular);
-decl_fn(mc, dav1d_put_8tap_regular_smooth);
-decl_fn(mc, dav1d_put_8tap_regular_sharp);
-decl_fn(mc, dav1d_put_8tap_smooth);
-decl_fn(mc, dav1d_put_8tap_smooth_regular);
-decl_fn(mc, dav1d_put_8tap_smooth_sharp);
-decl_fn(mc, dav1d_put_8tap_sharp);
-decl_fn(mc, dav1d_put_8tap_sharp_regular);
-decl_fn(mc, dav1d_put_8tap_sharp_smooth);
-decl_fn(mc, dav1d_put_bilin);
+decl_fn(mc, dav1d_put_8tap_regular)
+decl_fn(mc, dav1d_put_8tap_regular_smooth)
+decl_fn(mc, dav1d_put_8tap_regular_sharp)
+decl_fn(mc, dav1d_put_8tap_smooth)
+decl_fn(mc, dav1d_put_8tap_smooth_regular)
+decl_fn(mc, dav1d_put_8tap_smooth_sharp)
+decl_fn(mc, dav1d_put_8tap_sharp)
+decl_fn(mc, dav1d_put_8tap_sharp_regular)
+decl_fn(mc, dav1d_put_8tap_sharp_smooth)
+decl_fn(mc, dav1d_put_bilin)
 
-decl_fn(mct, dav1d_prep_8tap_regular);
-decl_fn(mct, dav1d_prep_8tap_regular_smooth);
-decl_fn(mct, dav1d_prep_8tap_regular_sharp);
-decl_fn(mct, dav1d_prep_8tap_smooth);
-decl_fn(mct, dav1d_prep_8tap_smooth_regular);
-decl_fn(mct, dav1d_prep_8tap_smooth_sharp);
-decl_fn(mct, dav1d_prep_8tap_sharp);
-decl_fn(mct, dav1d_prep_8tap_sharp_regular);
-decl_fn(mct, dav1d_prep_8tap_sharp_smooth);
-decl_fn(mct, dav1d_prep_bilin);
+decl_fn(mct, dav1d_prep_8tap_regular)
+decl_fn(mct, dav1d_prep_8tap_regular_smooth)
+decl_fn(mct, dav1d_prep_8tap_regular_sharp)
+decl_fn(mct, dav1d_prep_8tap_smooth)
+decl_fn(mct, dav1d_prep_8tap_smooth_regular)
+decl_fn(mct, dav1d_prep_8tap_smooth_sharp)
+decl_fn(mct, dav1d_prep_8tap_sharp)
+decl_fn(mct, dav1d_prep_8tap_sharp_regular)
+decl_fn(mct, dav1d_prep_8tap_sharp_smooth)
+decl_fn(mct, dav1d_prep_bilin)
 
-decl_fn(mc_scaled, dav1d_put_8tap_scaled_regular);
-decl_fn(mc_scaled, dav1d_put_8tap_scaled_regular_smooth);
-decl_fn(mc_scaled, dav1d_put_8tap_scaled_regular_sharp);
-decl_fn(mc_scaled, dav1d_put_8tap_scaled_smooth);
-decl_fn(mc_scaled, dav1d_put_8tap_scaled_smooth_regular);
-decl_fn(mc_scaled, dav1d_put_8tap_scaled_smooth_sharp);
-decl_fn(mc_scaled, dav1d_put_8tap_scaled_sharp);
-decl_fn(mc_scaled, dav1d_put_8tap_scaled_sharp_regular);
-decl_fn(mc_scaled, dav1d_put_8tap_scaled_sharp_smooth);
-decl_fn(mc_scaled, dav1d_put_bilin_scaled);
+decl_fn(mc_scaled, dav1d_put_8tap_scaled_regular)
+decl_fn(mc_scaled, dav1d_put_8tap_scaled_regular_smooth)
+decl_fn(mc_scaled, dav1d_put_8tap_scaled_regular_sharp)
+decl_fn(mc_scaled, dav1d_put_8tap_scaled_smooth)
+decl_fn(mc_scaled, dav1d_put_8tap_scaled_smooth_regular)
+decl_fn(mc_scaled, dav1d_put_8tap_scaled_smooth_sharp)
+decl_fn(mc_scaled, dav1d_put_8tap_scaled_sharp)
+decl_fn(mc_scaled, dav1d_put_8tap_scaled_sharp_regular)
+decl_fn(mc_scaled, dav1d_put_8tap_scaled_sharp_smooth)
+decl_fn(mc_scaled, dav1d_put_bilin_scaled)
 
-decl_fn(mct_scaled, dav1d_prep_8tap_scaled_regular);
-decl_fn(mct_scaled, dav1d_prep_8tap_scaled_regular_smooth);
-decl_fn(mct_scaled, dav1d_prep_8tap_scaled_regular_sharp);
-decl_fn(mct_scaled, dav1d_prep_8tap_scaled_smooth);
-decl_fn(mct_scaled, dav1d_prep_8tap_scaled_smooth_regular);
-decl_fn(mct_scaled, dav1d_prep_8tap_scaled_smooth_sharp);
-decl_fn(mct_scaled, dav1d_prep_8tap_scaled_sharp);
-decl_fn(mct_scaled, dav1d_prep_8tap_scaled_sharp_regular);
-decl_fn(mct_scaled, dav1d_prep_8tap_scaled_sharp_smooth);
-decl_fn(mct_scaled, dav1d_prep_bilin_scaled);
+decl_fn(mct_scaled, dav1d_prep_8tap_scaled_regular)
+decl_fn(mct_scaled, dav1d_prep_8tap_scaled_regular_smooth)
+decl_fn(mct_scaled, dav1d_prep_8tap_scaled_regular_sharp)
+decl_fn(mct_scaled, dav1d_prep_8tap_scaled_smooth)
+decl_fn(mct_scaled, dav1d_prep_8tap_scaled_smooth_regular)
+decl_fn(mct_scaled, dav1d_prep_8tap_scaled_smooth_sharp)
+decl_fn(mct_scaled, dav1d_prep_8tap_scaled_sharp)
+decl_fn(mct_scaled, dav1d_prep_8tap_scaled_sharp_regular)
+decl_fn(mct_scaled, dav1d_prep_8tap_scaled_sharp_smooth)
+decl_fn(mct_scaled, dav1d_prep_bilin_scaled)
 
-decl_fn(avg, dav1d_avg);
-decl_fn(w_avg, dav1d_w_avg);
-decl_fn(mask, dav1d_mask);
-decl_fn(w_mask, dav1d_w_mask_420);
-decl_fn(w_mask, dav1d_w_mask_422);
-decl_fn(w_mask, dav1d_w_mask_444);
-decl_fn(blend, dav1d_blend);
-decl_fn(blend_dir, dav1d_blend_v);
-decl_fn(blend_dir, dav1d_blend_h);
+decl_fn(avg, dav1d_avg)
+decl_fn(w_avg, dav1d_w_avg)
+decl_fn(mask, dav1d_mask)
+decl_fn(w_mask, dav1d_w_mask_420)
+decl_fn(w_mask, dav1d_w_mask_422)
+decl_fn(w_mask, dav1d_w_mask_444)
+decl_fn(blend, dav1d_blend)
+decl_fn(blend_dir, dav1d_blend_v)
+decl_fn(blend_dir, dav1d_blend_h)
 
-decl_fn(warp8x8, dav1d_warp_affine_8x8);
+decl_fn(warp8x8, dav1d_warp_affine_8x8)
 decl_warp8x8_fn(BF(dav1d_warp_affine_8x8, sse4));
-decl_fn(warp8x8t, dav1d_warp_affine_8x8t);
+decl_fn(warp8x8t, dav1d_warp_affine_8x8t)
 decl_warp8x8t_fn(BF(dav1d_warp_affine_8x8t, sse4));
 
-decl_fn(emu_edge, dav1d_emu_edge);
+decl_fn(emu_edge, dav1d_emu_edge)
 
-decl_fn(resize, dav1d_resize);
+decl_fn(resize, dav1d_resize)
 
 COLD void bitfn(dav1d_mc_dsp_init_x86)(Dav1dMCDSPContext *const c) {
     const unsigned flags = dav1d_get_cpu_flags();
-- 
2.32.0