Skip to content
Snippets Groups Projects
Commit eb7ccf8f authored by Diego Elio Pettenò's avatar Diego Elio Pettenò Committed by Mans Rullgard
Browse files

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: default avatarMans Rullgard <mans@mansr.com>
parent 7767d8d3
No related branches found
No related tags found
No related merge requests found
...@@ -205,7 +205,7 @@ int avfilter_config_links(AVFilterContext *filter) ...@@ -205,7 +205,7 @@ int avfilter_config_links(AVFilterContext *filter)
return 0; 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", snprintf(buf, buf_size, "%s%s%s%s%s%s",
perms & AV_PERM_READ ? "r" : "", perms & AV_PERM_READ ? "r" : "",
...@@ -217,7 +217,7 @@ char *ff_get_ref_perms_string(char *buf, size_t buf_size, int perms) ...@@ -217,7 +217,7 @@ char *ff_get_ref_perms_string(char *buf, size_t buf_size, int perms)
return buf; 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]; av_unused char buf[16];
dprintf(ctx, dprintf(ctx,
...@@ -245,7 +245,7 @@ void ff_dprintf_ref(void *ctx, AVFilterBufferRef *ref, int end) ...@@ -245,7 +245,7 @@ void ff_dprintf_ref(void *ctx, AVFilterBufferRef *ref, int end)
dprintf(ctx, "]%s", end ? "\n" : ""); 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) { if (link->type == AVMEDIA_TYPE_VIDEO) {
dprintf(ctx, dprintf(ctx,
...@@ -269,6 +269,8 @@ void ff_dprintf_link(void *ctx, AVFilterLink *link, int end) ...@@ -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 *avfilter_get_video_buffer(AVFilterLink *link, int perms, int w, int h)
{ {
AVFilterBufferRef *ret = NULL; AVFilterBufferRef *ret = NULL;
......
...@@ -27,14 +27,6 @@ ...@@ -27,14 +27,6 @@
#include "avfilter.h" #include "avfilter.h"
#include "avfiltergraph.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. * Check for the validity of graph.
* *
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment