source: 3DVCSoftware/branches/HTM-4.0.1-VSP-dev0/source/Lib/TLibCommon/DebugLog.h @ 166

Last change on this file since 166 was 166, checked in by mitsubishi-htm, 12 years ago

Initial integration of VSP into HTM 4.0.1. The version used for JCT3V-B0102 at Shanghai meeting.

  • VC9 project/solution files updated. Other Visual C++ project/solution files are not updated.
  • Linux make file updated.

TODO

  • A second release is expected to include some bug fix and improvements on the interface, e.g. to move switches from macro definition to the configuration file.
  • A third release is expected after being integrated within HTM 5.x, which is to be used for CE1.h anchor.
File size: 1.7 KB
Line 
1#ifndef __DEBUGLOG_H__
2#define __DEBUGLOG_H__
3
4#define OUT_PRED_INFO  0  //pred info(IntraDir/InterDirNum,Idx,Mv) output
5#define ASYMMETRIC_USE 1
6
7#include "TComDataCU.h"
8
9#define DECLOGFILENAME  "debuglogDec.txt"
10
11class DebugLog
12{
13private:
14    FILE*  m_pfDebugLogFile;
15
16public:
17    DebugLog() { m_pfDebugLogFile = NULL; }
18    ~DebugLog() {}
19
20    bool   DebugLogFileOpen( char* pcFname ) { m_pfDebugLogFile = fopen( pcFname, "wt" ); return (m_pfDebugLogFile!=NULL); }
21    void   DebugLogFileClose()               { if (m_pfDebugLogFile) fclose(m_pfDebugLogFile); m_pfDebugLogFile=NULL; }
22
23    bool   DebugLogOut( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth );
24};
25
26
27//Colors
28//     Y=Org/2 + YOffset      YOffset  U    V       
29const UChar g_ucCol[11][3] = { {000, 128, 128}, //0 gray scale
30                               {128, 255, 000}, //1 light blue
31                               {128, 255, 128}, //2 lavender
32                               {128, 000, 000}, //3 green yellow
33                               {128, 000, 128}, //4 yellow
34                               {128, 255, 255}, //5 pink
35                               {128, 000, 255}, //6 orange
36                               {064, 000, 255}, //7 red
37                               {064, 255, 000}, //8 blue
38                               {016, 000, 000}, //9 green
39                               {064, 128, 128}  //10 light gray scale
40                             };
41
42//CU
43#define LINE_LUMA_OFF_COL   g_ucCol[9][0] //9 green
44#define LINE_CB_COL         g_ucCol[9][1]
45#define LINE_CR_COL         g_ucCol[9][2]
46
47//PU
48#define LINE_LUMA_OFF_COL2  g_ucCol[7][0] //7 red
49#define LINE_CB_COL2        g_ucCol[7][1]
50#define LINE_CR_COL2        g_ucCol[7][2]
51
52
53#endif //__DEBUGLOG_H__
Note: See TracBrowser for help on using the repository browser.