Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorVictorien Le Couviour--Tuffet <victorien@videolan.org>2021-10-11 15:57:11 +0300
committerVictorien Le Couviour--Tuffet <victorien@videolan.org>2021-10-29 23:18:20 +0300
commitf7e0d4c032dad31a46129c9eaf30ad5c2f704d2b (patch)
treeedcea1c0cc1e534ff17fa31ba9c9c40154dbdfbf /tests
parent609fbaba84b8e15a25de9efbc8b14988be6df94d (diff)
Remove lpf_stride parameter from LR filters
Diffstat (limited to 'tests')
-rw-r--r--tests/checkasm/looprestoration.c26
1 files changed, 10 insertions, 16 deletions
diff --git a/tests/checkasm/looprestoration.c b/tests/checkasm/looprestoration.c
index bbee796..c542901 100644
--- a/tests/checkasm/looprestoration.c
+++ b/tests/checkasm/looprestoration.c
@@ -63,8 +63,8 @@ static void check_wiener(Dav1dLoopRestorationDSPContext *const c, const int bpc)
declare_func(void, pixel *dst, ptrdiff_t dst_stride,
const pixel (*const left)[4],
- const pixel *lpf, ptrdiff_t lpf_stride,
- int w, int h, const LooprestorationParams *params,
+ const pixel *lpf, int w, int h,
+ const LooprestorationParams *params,
enum LrEdgeFlags edges HIGHBD_DECL_SUFFIX);
for (int t = 0; t < 2; t++) {
@@ -97,11 +97,9 @@ static void check_wiener(Dav1dLoopRestorationDSPContext *const c, const int bpc)
memcpy(a_src, c_src, 448 * 64 * sizeof(pixel));
call_ref(c_dst, 448 * sizeof(pixel), left,
- h_edge, 448 * sizeof(pixel),
- w, h, &params, edges HIGHBD_TAIL_SUFFIX);
+ h_edge, w, h, &params, edges HIGHBD_TAIL_SUFFIX);
call_new(a_dst, 448 * sizeof(pixel), left,
- h_edge, 448 * sizeof(pixel),
- w, h, &params, edges HIGHBD_TAIL_SUFFIX);
+ h_edge, w, h, &params, edges HIGHBD_TAIL_SUFFIX);
if (checkasm_check_pixel(c_dst, 448 * sizeof(pixel),
a_dst, 448 * sizeof(pixel),
w, h, "dst"))
@@ -111,8 +109,7 @@ static void check_wiener(Dav1dLoopRestorationDSPContext *const c, const int bpc)
break;
}
}
- bench_new(a_dst, 448 * sizeof(pixel), left,
- h_edge, 448 * sizeof(pixel),
+ bench_new(a_dst, 448 * sizeof(pixel), left, h_edge,
256, 64, &params, 0xf HIGHBD_TAIL_SUFFIX);
}
}
@@ -127,8 +124,8 @@ static void check_sgr(Dav1dLoopRestorationDSPContext *const c, const int bpc) {
declare_func(void, pixel *dst, ptrdiff_t dst_stride,
const pixel (*const left)[4],
- const pixel *lpf, ptrdiff_t lpf_stride,
- int w, int h, const LooprestorationParams *params,
+ const pixel *lpf, int w, int h,
+ const LooprestorationParams *params,
enum LrEdgeFlags edges HIGHBD_DECL_SUFFIX);
static const struct { char name[4]; uint8_t idx; } sgr_data[3] = {
@@ -159,11 +156,9 @@ static void check_sgr(Dav1dLoopRestorationDSPContext *const c, const int bpc) {
memcpy(a_src, c_src, 448 * 64 * sizeof(pixel));
- call_ref(c_dst, 448 * sizeof(pixel), left,
- h_edge, 448 * sizeof(pixel),
+ call_ref(c_dst, 448 * sizeof(pixel), left, h_edge,
w, h, &params, edges HIGHBD_TAIL_SUFFIX);
- call_new(a_dst, 448 * sizeof(pixel), left,
- h_edge, 448 * sizeof(pixel),
+ call_new(a_dst, 448 * sizeof(pixel), left, h_edge,
w, h, &params, edges HIGHBD_TAIL_SUFFIX);
if (checkasm_check_pixel(c_dst, 448 * sizeof(pixel),
a_dst, 448 * sizeof(pixel),
@@ -174,8 +169,7 @@ static void check_sgr(Dav1dLoopRestorationDSPContext *const c, const int bpc) {
break;
}
}
- bench_new(a_dst, 448 * sizeof(pixel), left,
- h_edge, 448 * sizeof(pixel),
+ bench_new(a_dst, 448 * sizeof(pixel), left, h_edge,
256, 64, &params, 0xf HIGHBD_TAIL_SUFFIX);
}
}