1 /*******************************************************************************
2 * File : src/utils/config.h
5 * Created : Tue 27 Oct 2009 01:45:02 PM CST
7 ******************************************************************************/
9 #ifndef __CONFIG_INC_20091027_134502_HENRY__
10 #define __CONFIG_INC_20091027_134502_HENRY__
12 /*******************************************************************************
13 * Desc : Debug Configurations
14 ******************************************************************************/
17 //=========================== Global Debug Options ===========================
19 // Whether use \c ASSERT
20 #define __USE_ASSERT__ 1
22 // Whether use \c HLH_DEBUG
23 #define __USE_HLH_DEBUG__ 1
25 // Whether use \c HLH_ENTER_FUNC and \c HLH_EXIT_FUNC
26 #define __TRACE_CALL__ 1
31 //======================== Debug Options of Modules ==========================
33 // Set config to '1' if enable
36 #define HLH_DEBUG_CONFIG_AUDIO 1
37 #define HLH_DEBUG_CONFIG_LUDP 0
38 #define HLH_DEBUG_CONFIG_JITTER 0
39 #define HLH_DEBUG_CONFIG_UTILS 0
40 #define HLH_DEBUG_CONFIG_VIDEO 0
41 #define HLH_DEBUG_CONFIG_VPHONE 1
42 #define HLH_DEBUG_CONFIG_FB 0
43 #define HLH_DEBUG_CONFIG_PP 0
44 #define HLH_DEBUG_CONFIG_MFC 0
46 #define HLH_DEBUG_CONFIG_TEST 0
47 #define HLH_DEBUG_CONFIG_MAIN 1
50 //======================== Debug Options Offsets =============================
52 #define HLH_DEBUG_BIT_OFFSET_AUDIO 1
53 #define HLH_DEBUG_BIT_OFFSET_LUDP 2
54 #define HLH_DEBUG_BIT_OFFSET_JITTER 3
55 #define HLH_DEBUG_BIT_OFFSET_UTILS 4
56 #define HLH_DEBUG_BIT_OFFSET_VIDEO 5
57 #define HLH_DEBUG_BIT_OFFSET_VPHONE 6
58 #define HLH_DEBUG_BIT_OFFSET_FB 7
59 #define HLH_DEBUG_BIT_OFFSET_PP 8
60 #define HLH_DEBUG_BIT_OFFSET_MFC 9
62 #define HLH_DEBUG_BIT_OFFSET_TEST 30
63 #define HLH_DEBUG_BIT_OFFSET_MAIN 31
66 //======================== Debug Options Flags ===============================
68 #define HLH_DEBUG_AUDIO ( ( HLH_DEBUG_CONFIG_AUDIO & 0x01 ) << HLH_DEBUG_BIT_OFFSET_AUDIO )
69 #define HLH_DEBUG_LUDP ( ( HLH_DEBUG_CONFIG_LUDP & 0x01 ) << HLH_DEBUG_BIT_OFFSET_LUDP )
70 #define HLH_DEBUG_JITTER ( ( HLH_DEBUG_CONFIG_JITTER & 0x01 ) << HLH_DEBUG_BIT_OFFSET_JITTER )
71 #define HLH_DEBUG_UTILS ( ( HLH_DEBUG_CONFIG_UTILS & 0x01 ) << HLH_DEBUG_BIT_OFFSET_UTILS )
72 #define HLH_DEBUG_VIDEO ( ( HLH_DEBUG_CONFIG_VIDEO & 0x01 ) << HLH_DEBUG_BIT_OFFSET_VIDEO )
73 #define HLH_DEBUG_VPHONE ( ( HLH_DEBUG_CONFIG_VPHONE & 0x01 ) << HLH_DEBUG_BIT_OFFSET_VPHONE )
74 #define HLH_DEBUG_FB ( ( HLH_DEBUG_CONFIG_FB & 0x01 ) << HLH_DEBUG_BIT_OFFSET_FB )
75 #define HLH_DEBUG_PP ( ( HLH_DEBUG_CONFIG_PP & 0x01 ) << HLH_DEBUG_BIT_OFFSET_PP )
76 #define HLH_DEBUG_MFC ( ( HLH_DEBUG_CONFIG_MFC & 0x01 ) << HLH_DEBUG_BIT_OFFSET_MFC )
78 #define HLH_DEBUG_TEST ( ( HLH_DEBUG_CONFIG_TEST & 0x01 ) << HLH_DEBUG_BIT_OFFSET_TEST )
79 #define HLH_DEBUG_MAIN ( ( HLH_DEBUG_CONFIG_MAIN & 0x01 ) << HLH_DEBUG_BIT_OFFSET_MAIN )
86 /******************************************************************************
87 * Desc : Combination of the Debug Configurations
88 ******************************************************************************/
89 #define HLH_DEBUG_FLAGS \
90 ( HLH_DEBUG_AUDIO | HLH_DEBUG_LUDP | HLH_DEBUG_JITTER | \
91 HLH_DEBUG_UTILS | HLH_DEBUG_VIDEO | HLH_DEBUG_VPHONE | \
92 HLH_DEBUG_FB | HLH_DEBUG_PP | HLH_DEBUG_MFC | \
93 HLH_DEBUG_TEST | HLH_DEBUG_MAIN )
97 //=========================== Use fake audio =================================
98 #define __USE_FAKE_AUDIO__ 0
100 #define __USE_FAKE_SWAP__ 1
101 #if (__USE_FAKE_SWAP__ <= 0)
102 # define __USE_FAKE_AUDIO_IN__ 0
103 # define __USE_FAKE_AUDIO_OUT__ 1
105 # define __USE_FAKE_AUDIO_IN__ 1
106 # define __USE_FAKE_AUDIO_OUT__ 0
111 #endif /* __CONFIG_INC_20091027_134502_HENRY__ */