[166] | 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 | |
---|
| 11 | class DebugLog |
---|
| 12 | { |
---|
| 13 | private: |
---|
| 14 | FILE* m_pfDebugLogFile; |
---|
| 15 | |
---|
| 16 | public: |
---|
| 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 |
---|
| 29 | const 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__ |
---|