45 #if RExt__DECODER_DEBUG_BIT_STATISTICS
51 Void xTraceAccessUnitDelimiter ()
53 fprintf( g_hTrace,
"=========== Access Unit Delimiter ===========\n");
56 Void xTraceFillerData ()
58 fprintf( g_hTrace,
"=========== Filler Data ===========\n");
65 #if DECODER_PARTIAL_CONFORMANCE_CHECK!=0
67 Void SyntaxElementParser::xReadSCodeChk (
UInt length,
Int& val,
const TChar *pSymbolName,
const Int minValIncl,
const Int maxValIncl )
73 Void SyntaxElementParser::xReadCodeChk (
UInt length,
UInt& val,
const TChar *pSymbolName,
const UInt minValIncl,
const UInt maxValIncl )
79 Void SyntaxElementParser::xReadUvlcChk (
UInt& val,
const TChar *pSymbolName,
const UInt minValIncl,
const UInt maxValIncl )
85 Void SyntaxElementParser::xReadSvlcChk (
Int& val,
const TChar *pSymbolName,
const Int minValIncl,
const Int maxValIncl )
91 Void SyntaxElementParser::xReadFlagChk (
UInt& val,
const TChar *pSymbolName,
const UInt minValIncl,
const UInt maxValIncl )
101 #if RExt__DECODER_DEBUG_BIT_STATISTICS || ENC_DEC_TRACE
108 assert ( uiLength > 0 );
109 m_pcBitstream->read (uiLength, val);
110 if((val & (1 << (uiLength-1))) == 0)
116 val &= (1<< (uiLength-1)) - 1;
120 #if RExt__DECODER_DEBUG_BIT_STATISTICS
124 fprintf( g_hTrace,
"%8lld ", g_nSymbolCounter++ );
127 fprintf( g_hTrace,
"%-50s i(%d) : %d\n", pSymbolName, uiLength, rValue );
131 fprintf( g_hTrace,
"%-50s i(%d) : %d\n", pSymbolName, uiLength, rValue );
137 #if RExt__DECODER_DEBUG_BIT_STATISTICS || ENC_DEC_TRACE
143 assert ( uiLength > 0 );
144 m_pcBitstream->read (uiLength, rValue);
145 #if RExt__DECODER_DEBUG_BIT_STATISTICS
149 fprintf( g_hTrace,
"%8lld ", g_nSymbolCounter++ );
152 fprintf( g_hTrace,
"%-50s u(%d) : %u\n", pSymbolName, uiLength, rValue );
156 fprintf( g_hTrace,
"%-50s u(%d) : %u\n", pSymbolName, uiLength, rValue );
163 #if RExt__DECODER_DEBUG_BIT_STATISTICS || ENC_DEC_TRACE
172 m_pcBitstream->read( 1, uiCode );
173 #if RExt__DECODER_DEBUG_BIT_STATISTICS
181 while( ! ( uiCode & 1 ))
183 m_pcBitstream->read( 1, uiCode );
187 m_pcBitstream->read( uiLength, uiVal );
189 uiVal += (1 << uiLength)-1;
190 #if RExt__DECODER_DEBUG_BIT_STATISTICS
191 totalLen+=uiLength+uiLength;
196 #if RExt__DECODER_DEBUG_BIT_STATISTICS
201 fprintf( g_hTrace,
"%8lld ", g_nSymbolCounter++ );
202 fprintf( g_hTrace,
"%-50s ue(v) : %u\n", pSymbolName, rValue );
207 #if RExt__DECODER_DEBUG_BIT_STATISTICS || ENC_DEC_TRACE
214 m_pcBitstream->read( 1, uiBits );
215 #if RExt__DECODER_DEBUG_BIT_STATISTICS
222 while( ! ( uiBits & 1 ))
224 m_pcBitstream->read( 1, uiBits );
228 m_pcBitstream->read( uiLength, uiBits );
230 uiBits += (1 << uiLength);
231 rValue = ( uiBits & 1) ? -(
Int)(uiBits>>1) : (
Int)(uiBits>>1);
232 #if RExt__DECODER_DEBUG_BIT_STATISTICS
233 totalLen+=uiLength+uiLength;
240 #if RExt__DECODER_DEBUG_BIT_STATISTICS
245 fprintf( g_hTrace,
"%8lld ", g_nSymbolCounter++ );
246 fprintf( g_hTrace,
"%-50s se(v) : %d\n", pSymbolName, rValue );
252 #if RExt__DECODER_DEBUG_BIT_STATISTICS || ENC_DEC_TRACE
258 m_pcBitstream->read( 1, rValue );
259 #if RExt__DECODER_DEBUG_BIT_STATISTICS
264 fprintf( g_hTrace,
"%8lld ", g_nSymbolCounter++ );
265 fprintf( g_hTrace,
"%-50s u(1) : %d\n", pSymbolName, rValue );
278 READ_FLAG( bit,
"rbsp_alignment_zero_bit");
290 xTraceAccessUnitDelimiter();
308 assert (ffByte==0xff);
Void parseAccessUnitDelimiter(TComInputBitstream *bs, UInt &picType)
#define READ_CODE(length, code, name)
Defines version information, constants and small in-line functions.
global variables & functions (header)
#define READ_SVLC(code, name)
Void xReadCode(UInt length, UInt &val)
TComInputBitstream * m_pcBitstream
Void parseFillerData(TComInputBitstream *bs, UInt &fdSize)
Parsing functionality high level syntax.
Void setBitstream(TComInputBitstream *p)
class for handling bitstream (header)
#define READ_SCODE(length, code, name)
#define READ_FLAG(code, name)
#define READ_UVLC(code, name)
Void xReadSCode(UInt length, Int &val)
Void xReadRbspTrailingBits()
Void xReadUvlc(UInt &val)
Void xReadFlag(UInt &val)
static Void IncrementStatisticEP(const TComCodingStatisticsClassType &stat, const Int numBits, const Int value)