[FFmpeg-cvslog] Make the avfilter debug functions and macros static to avfilter.c
Diego Elio Pettenò
git
Fri Jan 28 03:43:31 CET 2011
ffmpeg | branch: master | Diego Elio Petten? <flameeyes at gmail.com> | Tue Jan 25 00:29:34 2011 +0000| [97e528a9e1b09a30db192e1a6f2d90c7643a1d5a] | committer: Michael Niedermayer
Make the avfilter debug functions and macros static to avfilter.c
This removes ff_get_ref_perms_string, ff_dprintf_ref and ff_dprintf_link
fro the interface of libavfilter.
Signed-off-by: Mans Rullgard <mans at mansr.com>
(cherry picked from commit eb7ccf8f3369f9e15029ce65370a114206b39fd5)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=97e528a9e1b09a30db192e1a6f2d90c7643a1d5a
---
libavfilter/avfilter.c | 8 +++++---
libavfilter/internal.h | 8 --------
2 files changed, 5 insertions(+), 11 deletions(-)
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index 456ac9c..3d8d08a 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -205,7 +205,7 @@ int avfilter_config_links(AVFilterContext *filter)
return 0;
}
-char *ff_get_ref_perms_string(char *buf, size_t buf_size, int perms)
+static char *ff_get_ref_perms_string(char *buf, size_t buf_size, int perms)
{
snprintf(buf, buf_size, "%s%s%s%s%s%s",
perms & AV_PERM_READ ? "r" : "",
@@ -217,7 +217,7 @@ char *ff_get_ref_perms_string(char *buf, size_t buf_size, int perms)
return buf;
}
-void ff_dprintf_ref(void *ctx, AVFilterBufferRef *ref, int end)
+static void ff_dprintf_ref(void *ctx, AVFilterBufferRef *ref, int end)
{
av_unused char buf[16];
dprintf(ctx,
@@ -245,7 +245,7 @@ void ff_dprintf_ref(void *ctx, AVFilterBufferRef *ref, int end)
dprintf(ctx, "]%s", end ? "\n" : "");
}
-void ff_dprintf_link(void *ctx, AVFilterLink *link, int end)
+static void ff_dprintf_link(void *ctx, AVFilterLink *link, int end)
{
if (link->type == AVMEDIA_TYPE_VIDEO) {
dprintf(ctx,
@@ -269,6 +269,8 @@ void ff_dprintf_link(void *ctx, AVFilterLink *link, int end)
}
}
+#define FF_DPRINTF_START(ctx, func) dprintf(NULL, "%-16s: ", #func)
+
AVFilterBufferRef *avfilter_get_video_buffer(AVFilterLink *link, int perms, int w, int h)
{
AVFilterBufferRef *ret = NULL;
diff --git a/libavfilter/internal.h b/libavfilter/internal.h
index 8f352ef..188da87 100644
--- a/libavfilter/internal.h
+++ b/libavfilter/internal.h
@@ -27,14 +27,6 @@
#include "avfilter.h"
#include "avfiltergraph.h"
-void ff_dprintf_ref(void *ctx, AVFilterBufferRef *ref, int end);
-
-char *ff_get_ref_perms_string(char *buf, size_t buf_size, int perms);
-
-void ff_dprintf_link(void *ctx, AVFilterLink *link, int end);
-
-#define FF_DPRINTF_START(ctx, func) dprintf(NULL, "%-16s: ", #func)
-
/**
* Check for the validity of graph.
*
More information about the ffmpeg-cvslog
mailing list