46 Void SyntaxElementWriter::xWriteSCodeTr (
Int value,
UInt length,
const TChar *pSymbolName)
49 if( g_HLSTraceEnable )
51 fprintf( g_hTrace,
"%8lld ", g_nSymbolCounter++ );
54 fprintf( g_hTrace,
"%-50s u(%d) : %d\n", pSymbolName, length, value );
58 fprintf( g_hTrace,
"%-50s u(%d) : %d\n", pSymbolName, length, value );
63 Void SyntaxElementWriter::xWriteCodeTr (
UInt value,
UInt length,
const TChar *pSymbolName)
66 if( g_HLSTraceEnable )
68 fprintf( g_hTrace,
"%8lld ", g_nSymbolCounter++ );
71 fprintf( g_hTrace,
"%-50s u(%d) : %d\n", pSymbolName, length, value );
75 fprintf( g_hTrace,
"%-50s u(%d) : %d\n", pSymbolName, length, value );
80 Void SyntaxElementWriter::xWriteUvlcTr (
UInt value,
const TChar *pSymbolName)
83 if( g_HLSTraceEnable )
85 fprintf( g_hTrace,
"%8lld ", g_nSymbolCounter++ );
86 fprintf( g_hTrace,
"%-50s ue(v) : %d\n", pSymbolName, value );
90 Void SyntaxElementWriter::xWriteSvlcTr (
Int value,
const TChar *pSymbolName)
93 if( g_HLSTraceEnable )
95 fprintf( g_hTrace,
"%8lld ", g_nSymbolCounter++ );
96 fprintf( g_hTrace,
"%-50s se(v) : %d\n", pSymbolName, value );
100 Void SyntaxElementWriter::xWriteFlagTr(
UInt value,
const TChar *pSymbolName)
103 if( g_HLSTraceEnable )
105 fprintf( g_hTrace,
"%8lld ", g_nSymbolCounter++ );
106 fprintf( g_hTrace,
"%-50s u(1) : %d\n", pSymbolName, value );
114 assert ( uiLength > 0 );
118 uiCode = (
UInt) iCode;
122 uiCode = ~(iCode) + 1;
130 assert ( uiLength > 0 );
137 UInt uiTemp = ++uiCode;
virtual Int getNumBitsUntilByteAligned() const =0
virtual Void write(UInt uiBits, UInt uiNumberOfBits)=0
Defines version information, constants and small in-line functions.
Void xWriteCode(UInt uiCode, UInt uiLength)
UInt xConvertToUInt(Int iValue)
Void xWriteRbspTrailingBits()
#define WRITE_FLAG(value,name)
Void xWriteSvlc(Int iCode)
CAVLC encoder class (header)
Void xWriteSCode(Int iCode, UInt uiLength)
Void xWriteUvlc(UInt uiCode)
Void xWriteFlag(UInt uiCode)