diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-06-08 15:59:25 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-06-11 22:42:29 +0200 |
commit | 1cb038a7d529f4012f8abd0443c9d4e80f5f201b (patch) | |
tree | 280d23fd8e037fda220cc4a07a86eb3d40bb32ac | |
parent | ae2dd5d42b04e287f1200c049db0a6febd229dc0 (diff) | |
download | ffmpeg-1cb038a7d529f4012f8abd0443c9d4e80f5f201b.tar.gz |
avcodec/videodsp: Make ff_emulated_edge_mc_16 static
Only ff_emulated_edge_mc_8() is used outside of lavc/videodsp.c.
Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavcodec/videodsp.h | 1 | ||||
-rw-r--r-- | libavcodec/videodsp_template.c | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/videodsp.h b/libavcodec/videodsp.h index ac971dc57f..b5219d236c 100644 --- a/libavcodec/videodsp.h +++ b/libavcodec/videodsp.h @@ -36,7 +36,6 @@ void ff_emulated_edge_mc_ ## depth(uint8_t *dst, const uint8_t *src, \ int src_x, int src_y, int w, int h); EMULATED_EDGE(8) -EMULATED_EDGE(16) typedef struct VideoDSPContext { /** diff --git a/libavcodec/videodsp_template.c b/libavcodec/videodsp_template.c index 55123a5844..324d70f2cb 100644 --- a/libavcodec/videodsp_template.c +++ b/libavcodec/videodsp_template.c @@ -20,6 +20,10 @@ */ #include "bit_depth_template.c" +#if BIT_DEPTH != 8 +// ff_emulated_edge_mc_8 is used by the x86 MpegVideoDSP API. +static +#endif void FUNC(ff_emulated_edge_mc)(uint8_t *buf, const uint8_t *src, ptrdiff_t buf_linesize, ptrdiff_t src_linesize, |