Browse code

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@mansr.com>
(cherry picked from commit eb7ccf8f3369f9e15029ce65370a114206b39fd5)

Diego Elio Pettenò authored on 2011/01/25 09:29:34
Showing 2 changed files
... ...
@@ -205,7 +205,7 @@ int avfilter_config_links(AVFilterContext *filter)
205 205
     return 0;
206 206
 }
207 207
 
208
-char *ff_get_ref_perms_string(char *buf, size_t buf_size, int perms)
208
+static char *ff_get_ref_perms_string(char *buf, size_t buf_size, int perms)
209 209
 {
210 210
     snprintf(buf, buf_size, "%s%s%s%s%s%s",
211 211
              perms & AV_PERM_READ      ? "r" : "",
... ...
@@ -217,7 +217,7 @@ char *ff_get_ref_perms_string(char *buf, size_t buf_size, int perms)
217 217
     return buf;
218 218
 }
219 219
 
220
-void ff_dprintf_ref(void *ctx, AVFilterBufferRef *ref, int end)
220
+static void ff_dprintf_ref(void *ctx, AVFilterBufferRef *ref, int end)
221 221
 {
222 222
     av_unused char buf[16];
223 223
     dprintf(ctx,
... ...
@@ -245,7 +245,7 @@ void ff_dprintf_ref(void *ctx, AVFilterBufferRef *ref, int end)
245 245
     dprintf(ctx, "]%s", end ? "\n" : "");
246 246
 }
247 247
 
248
-void ff_dprintf_link(void *ctx, AVFilterLink *link, int end)
248
+static void ff_dprintf_link(void *ctx, AVFilterLink *link, int end)
249 249
 {
250 250
     if (link->type == AVMEDIA_TYPE_VIDEO) {
251 251
         dprintf(ctx,
... ...
@@ -269,6 +269,8 @@ void ff_dprintf_link(void *ctx, AVFilterLink *link, int end)
269 269
     }
270 270
 }
271 271
 
272
+#define FF_DPRINTF_START(ctx, func) dprintf(NULL, "%-16s: ", #func)
273
+
272 274
 AVFilterBufferRef *avfilter_get_video_buffer(AVFilterLink *link, int perms, int w, int h)
273 275
 {
274 276
     AVFilterBufferRef *ret = NULL;
... ...
@@ -27,14 +27,6 @@
27 27
 #include "avfilter.h"
28 28
 #include "avfiltergraph.h"
29 29
 
30
-void ff_dprintf_ref(void *ctx, AVFilterBufferRef *ref, int end);
31
-
32
-char *ff_get_ref_perms_string(char *buf, size_t buf_size, int perms);
33
-
34
-void ff_dprintf_link(void *ctx, AVFilterLink *link, int end);
35
-
36
-#define FF_DPRINTF_START(ctx, func) dprintf(NULL, "%-16s: ", #func)
37
-
38 30
 /**
39 31
  * Check for the validity of graph.
40 32
  *