From 45307049935e7f3a991957d35f699bb00a288a5b Mon Sep 17 00:00:00 2001 From: jbrjake Date: Thu, 9 Oct 2008 00:16:14 +0000 Subject: 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 --- libhb/internal.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libhb/internal.h') 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 * ); -- cgit v1.2.3