aboutsummaryrefslogtreecommitdiff
path: root/encoder/irc_trace_support.h
diff options
context:
space:
mode:
Diffstat (limited to 'encoder/irc_trace_support.h')
-rw-r--r--encoder/irc_trace_support.h55
1 files changed, 14 insertions, 41 deletions
diff --git a/encoder/irc_trace_support.h b/encoder/irc_trace_support.h
index c35bd4f..1845c90 100644
--- a/encoder/irc_trace_support.h
+++ b/encoder/irc_trace_support.h
@@ -18,44 +18,17 @@
* Originally developed and contributed by Ittiam Systems Pvt. Ltd, Bangalore
*/
-/**
-*******************************************************************************
-* @file
-* ih264e_trace_support.h
-*
-* @brief
-* This file contains extern declarations of routines that could be helpful
-* for debugging purposes.
-*
-* @author
-* Harish
-*
-* @remarks
-* None
-*
-*******************************************************************************
-*/
-
-#ifndef TRACE_SUPPORT_H_
-#define TRACE_SUPPORT_H_
-
-/*****************************************************************************/
-/* Structures */
-/*****************************************************************************/
-
-typedef struct
-{
- WORD8 * pu1_buf;
- WORD32 i4_offset;
- WORD32 i4_max_size;
-}trace_support_t;
-
-/*****************************************************************************/
-/* Extern function declarations */
-/*****************************************************************************/
-
-void init_trace_support(WORD8 *pu1_buf, WORD32 i4_size);
-
-int trace_printf(const WORD8 *format, ...);
-
-#endif // TRACE_SUPPORT_H_
+#ifndef _RC_TRACE_SUPPORT_H_
+#define _RC_TRACE_SUPPORT_H_
+
+#if DEBUG_RC
+#define TRACE_PRINTF(...) \
+{ \
+ printf("\n[RC DBG] %s/%d:: ", __FUNCTION__, __LINE__); \
+ printf(__VA_ARGS__); \
+}
+#else
+#define TRACE_PRINTF(...) {}
+#endif
+
+#endif // _RC_TRACE_SUPPORT_H_