summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKacper Michajłow <[email protected]>2025-09-13 16:12:16 +0200
committerKacper Michajłow <[email protected]>2025-09-13 19:12:44 +0200
commit1294ab5db1b029b05e27ddefe1dd583087644b3c (patch)
tree6a5c762ecd3bd7deaaa1714ce90d242f5da361e1
parent66faef3dbe74bdae40c852caa0ab28ca8cb7a8f7 (diff)
swscale/ops_tmpl_int: remove unused arguments from wrap read decl
Signed-off-by: Kacper Michajłow <[email protected]>
-rw-r--r--libswscale/ops_backend.h6
-rw-r--r--libswscale/ops_tmpl_int.c2
2 files changed, 6 insertions, 2 deletions
diff --git a/libswscale/ops_backend.h b/libswscale/ops_backend.h
index 7880bb608e..4a1794af8a 100644
--- a/libswscale/ops_backend.h
+++ b/libswscale/ops_backend.h
@@ -110,7 +110,11 @@ typedef struct SwsOpIter {
static SWS_FUNC void fn(NAME)(SwsOpIter *restrict iter, \
const SwsOpImpl *restrict impl, \
block_t x, block_t y, \
- block_t z, block_t w) \
+ block_t z, block_t w)
+
+#define DECL_IMPL_READ(NAME) \
+ static SWS_FUNC void fn(NAME)(SwsOpIter *restrict iter, \
+ const SwsOpImpl *restrict impl)
/* Helper macro to call into the next continuation with a given type */
#define CONTINUE(TYPE, ...) \
diff --git a/libswscale/ops_tmpl_int.c b/libswscale/ops_tmpl_int.c
index 0337ae5708..857031ada9 100644
--- a/libswscale/ops_tmpl_int.c
+++ b/libswscale/ops_tmpl_int.c
@@ -121,7 +121,7 @@ DECL_WRITE(write_packed, const int elems)
}
#define WRAP_READ(FUNC, ELEMS, FRAC, PACKED) \
-DECL_IMPL(FUNC##ELEMS) \
+DECL_IMPL_READ(FUNC##ELEMS) \
{ \
CALL_READ(FUNC, ELEMS); \
for (int i = 0; i < (PACKED ? 1 : ELEMS); i++) \