aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/internal.h
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2012-06-05 11:24:07 +0200
committerStefano Sabatini <stefasab@gmail.com>2012-06-13 10:51:15 +0200
commit134815a030fb0439e7caafe3a88f196b7837a609 (patch)
tree29615547301e560fffc0eb0afb5cad0fbc23a7dc /libavfilter/internal.h
parentc1d62489e1c2823d52baa74f4c0e9d933c23bfbb (diff)
downloadandroid_external_ffmpeg-134815a030fb0439e7caafe3a88f196b7837a609.tar.gz
android_external_ffmpeg-134815a030fb0439e7caafe3a88f196b7837a609.tar.bz2
android_external_ffmpeg-134815a030fb0439e7caafe3a88f196b7837a609.zip
lavfi: change name of tracing functions and of the macro which enables them
The enabling symbol is renamed FF_AVFILTER_TRACE. Avoid conflicts with the DEBUG macro, which may be defined for different purposes.
Diffstat (limited to 'libavfilter/internal.h')
-rw-r--r--libavfilter/internal.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/libavfilter/internal.h b/libavfilter/internal.h
index 2b997301e7..997b85f3c4 100644
--- a/libavfilter/internal.h
+++ b/libavfilter/internal.h
@@ -126,15 +126,23 @@ void ff_free_pool(AVFilterPool *pool);
void ff_command_queue_pop(AVFilterContext *filter);
-/* misc debug functions */
+/* misc trace functions */
-#define FF_DPRINTF_START(ctx, func) av_dlog(NULL, "%-16s: ", #func)
+/* #define FF_AVFILTER_TRACE */
+
+#ifdef FF_AVFILTER_TRACE
+# define ff_tlog(pctx, ...) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__)
+#else
+# define ff_tlog(pctx, ...) do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
+#endif
+
+#define FF_TPRINTF_START(ctx, func) ff_tlog(NULL, "%-16s: ", #func)
char *ff_get_ref_perms_string(char *buf, size_t buf_size, int perms);
-void ff_dlog_ref(void *ctx, AVFilterBufferRef *ref, int end);
+void ff_tlog_ref(void *ctx, AVFilterBufferRef *ref, int end);
-void ff_dlog_link(void *ctx, AVFilterLink *link, int end);
+void ff_tlog_link(void *ctx, AVFilterLink *link, int end);
/**
* Insert a new pad.