Changeset 1356 in 3DVCSoftware for trunk/source/Lib/TLibDecoder/SyntaxElementParser.cpp
- Timestamp:
- 27 Oct 2015, 11:33:16 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/Lib/TLibDecoder/SyntaxElementParser.cpp
r1313 r1356 152 152 } 153 153 154 Void SyntaxElementParser::xReadStringTr (UInt buSize, UChar *pValue, UInt& rLength, const Char *pSymbolName) 155 { 156 #if RExt__DECODER_DEBUG_BIT_STATISTICS 157 xReadString (buSize, pValue, rLength, pSymbolName); 158 #else 159 xReadString(buSize, pValue, rLength); 160 #endif 161 fprintf( g_hTrace, "%8lld ", g_nSymbolCounter++ ); 162 fprintf( g_hTrace, "%-50s st(v=%d) : %s\n", pSymbolName, rLength, pValue ); 163 fflush ( g_hTrace ); 164 } 165 154 166 Void xTraceAccessUnitDelimiter () 155 167 { … … 269 281 } 270 282 283 #if RExt__DECODER_DEBUG_BIT_STATISTICS 284 Void SyntaxElementParser::xReadString (UInt bufSize, UChar *pVal, UInt& rLength, const Char *pSymbolName) 285 #else 286 Void SyntaxElementParser::xReadString (UInt bufSize, UChar *pVal, UInt& rLength) 287 #endif 288 { 289 assert( m_pcBitstream->getNumBitsRead() % 8 == 0 ); //always start reading at a byte-aligned position 290 UInt val; 291 UInt i; 292 for (i=0 ; i<bufSize ; ++i ) 293 { 294 m_pcBitstream->readByte( val ); 295 pVal[i] = val; 296 if ( val == 0) 297 { 298 break; 299 } 300 } 301 rLength = i; 302 assert( pVal[rLength] == 0 ); 303 } 304 271 305 Void SyntaxElementParser::xReadRbspTrailingBits() 272 306 {
Note: See TracChangeset for help on using the changeset viewer.