[FFmpeg-cvslog] avcodec/videodsp: Make ff_emulated_edge_mc_16 static

Andreas Rheinhardt git at videolan.org
Sat Jun 11 23:53:01 EEST 2022


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Wed Jun  8 15:59:25 2022 +0200| [1cb038a7d529f4012f8abd0443c9d4e80f5f201b] | committer: Andreas Rheinhardt

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 at gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1cb038a7d529f4012f8abd0443c9d4e80f5f201b
---

 libavcodec/videodsp.h          | 1 -
 libavcodec/videodsp_template.c | 4 ++++
 2 files changed, 4 insertions(+), 1 deletion(-)

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,



More information about the ffmpeg-cvslog mailing list