summaryrefslogtreecommitdiffstats
path: root/libhb/internal.h
diff options
context:
space:
mode:
authorjbrjake <[email protected]>2008-10-09 00:16:14 +0000
committerjbrjake <[email protected]>2008-10-09 00:16:14 +0000
commit45307049935e7f3a991957d35f699bb00a288a5b (patch)
tree982b2af1c3a6ab45c5af29b6ffcd208bf4d7a64f /libhb/internal.h
parenta6f41219f1a6251da2ae5d31202b88adcce1ffc2 (diff)
Adds an hb_deep_log() function for multiple levels of debugging verbosity. Level 1 displays when hb_log does (job->verbose == 1) and is now meant for logging that helps in tech support. Level 2 adds memory-related logging like freed buffers, and level 3 is for granular stuff that displays once per sample, frame, packet, etc. The debug level continues to be set when hb_init() is called.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1819 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/internal.h')
-rw-r--r--libhb/internal.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libhb/internal.h b/libhb/internal.h
index e9828fdb9..5d7f654bb 100644
--- a/libhb/internal.h
+++ b/libhb/internal.h
@@ -8,6 +8,14 @@
* common.c
**********************************************************************/
void hb_log( char * log, ... );
+extern int global_verbosity_level; // Global variable for hb_deep_log
+typedef enum hb_debug_level_s
+{
+ HB_SUPPORT_LOG = 1, // Logging helpful in tech support
+ HB_MEMORY_LOG = 2, // logging about memory usage
+ HB_GRANULAR_LOG = 3 // logging on sample-by-sample
+} hb_debug_level_t;
+void hb_deep_log( hb_debug_level_t level, char * log, ... );
void hb_error( char * fmt, ...);
int hb_list_bytes( hb_list_t * );