X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gst%2Fgstdebugutils.h;h=3808fc6bdf41a95613387592a11da475c09908e9;hb=a143d9cb0caee85bbe0c5e8b86e9f05918153c9d;hp=8420d3b820cac3c62b73e673458020734129d805;hpb=fb8fbdaeb35269f7095ac5f00d7ec3c10de4e35d;p=platform%2Fupstream%2Fgstreamer.git diff --git a/gst/gstdebugutils.h b/gst/gstdebugutils.h index 8420d3b..3808fc6 100644 --- a/gst/gstdebugutils.h +++ b/gst/gstdebugutils.h @@ -1,7 +1,7 @@ /* GStreamer * Copyright (C) 2007 Stefan Kost * - * gstdebugutils.h: debugging and analysis utillities + * gstdebugutils.h: debugging and analysis utilities * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -15,8 +15,8 @@ * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301, USA. */ #ifndef __GSTDEBUGUTILS_H__ @@ -33,27 +33,41 @@ G_BEGIN_DECLS * GstDebugGraphDetails: * @GST_DEBUG_GRAPH_SHOW_MEDIA_TYPE: show caps-name on edges * @GST_DEBUG_GRAPH_SHOW_CAPS_DETAILS: show caps-details on edges - * @GST_DEBUG_GRAPH_SHOW_NON_DEFAULT_PARAMS: show modified parameters on elements + * @GST_DEBUG_GRAPH_SHOW_NON_DEFAULT_PARAMS: show modified parameters on + * elements * @GST_DEBUG_GRAPH_SHOW_STATES: show element states - * @GST_DEBUG_GRAPH_SHOW_ALL: show all details + * @GST_DEBUG_GRAPH_SHOW_FULL_PARAMS: show full element parameter values even + * if they are very long + * @GST_DEBUG_GRAPH_SHOW_ALL: show all the typical details that one might want + * @GST_DEBUG_GRAPH_SHOW_VERBOSE: show all details regardless of how large or + * verbose they make the resulting output * * Available details for pipeline graphs produced by GST_DEBUG_BIN_TO_DOT_FILE() * and GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS(). - * - * Since: 0.10.15 */ +/* FIXME: For GST_DEBUG_GRAPH_SHOW_VERBOSE ~0 -> 0xffffffff see + * https://bugzilla.gnome.org/show_bug.cgi?id=732633 +*/ typedef enum { GST_DEBUG_GRAPH_SHOW_MEDIA_TYPE = (1<<0), GST_DEBUG_GRAPH_SHOW_CAPS_DETAILS = (1<<1), GST_DEBUG_GRAPH_SHOW_NON_DEFAULT_PARAMS = (1<<2), GST_DEBUG_GRAPH_SHOW_STATES = (1<<3), - GST_DEBUG_GRAPH_SHOW_ALL = ((1<<4)-1) + GST_DEBUG_GRAPH_SHOW_FULL_PARAMS = (1<<4), + GST_DEBUG_GRAPH_SHOW_ALL = ((1<<4)-1), + GST_DEBUG_GRAPH_SHOW_VERBOSE = (gint) (0xffffffff) } GstDebugGraphDetails; /********** pipeline graphs **********/ +GST_API +gchar * gst_debug_bin_to_dot_data (GstBin *bin, GstDebugGraphDetails details); + +GST_API void gst_debug_bin_to_dot_file (GstBin *bin, GstDebugGraphDetails details, const gchar *file_name); + +GST_API void gst_debug_bin_to_dot_file_with_ts (GstBin *bin, GstDebugGraphDetails details, const gchar *file_name); #ifndef GST_DISABLE_GST_DEBUG @@ -67,16 +81,16 @@ void gst_debug_bin_to_dot_file_with_ts (GstBin *bin, GstDebugGraphDetails detail * * To aid debugging applications one can use this method to write out the whole * network of gstreamer elements that form the pipeline into an dot file. - * This file can be processed with graphviz to get an image. - * + * This file can be processed with graphviz to get an image, like this: + * |[ * dot -Tpng -oimage.png graph_lowlevel.dot - * + * ]| + * There is also a utility called xdot which allows you to view the dot file + * directly without converting it first. * - * The macro is only active if gstreamer is configured with - * "--gst-enable-gst-debug" and the environment variable - * GST_DEBUG_DUMP_DOT_DIR is set to a basepath (e.g. /tmp). - * - * Since: 0.10.15 + * The macro is only active if the environment variable GST_DEBUG_DUMP_DOT_DIR + * is set to a basepath (e.g. /tmp), and the GStreamer debugging subsystem is + * enabled (i.e., no use of `./configure --disable-gst-debug') */ #define GST_DEBUG_BIN_TO_DOT_FILE(bin, details, file_name) gst_debug_bin_to_dot_file (bin, details, file_name) @@ -89,8 +103,6 @@ void gst_debug_bin_to_dot_file_with_ts (GstBin *bin, GstDebugGraphDetails detail * * This works like GST_DEBUG_BIN_TO_DOT_FILE(), but adds the current timestamp * to the filename, so that it can be used to take multiple snapshots. - * - * Since: 0.10.15 */ #define GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS(bin, details, file_name) gst_debug_bin_to_dot_file_with_ts (bin, details, file_name)