Ignore:
Timestamp:
27 Oct 2015, 11:33:16 (9 years ago)
Author:
tech
Message:

Merged 15.1-dev0-NICT@1355.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/Lib/TLibDecoder/SyntaxElementParser.cpp

    r1313 r1356  
    152152}
    153153
     154Void  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
    154166Void  xTraceAccessUnitDelimiter ()
    155167{
     
    269281}
    270282
     283#if RExt__DECODER_DEBUG_BIT_STATISTICS
     284Void  SyntaxElementParser::xReadString  (UInt bufSize, UChar *pVal, UInt& rLength, const Char *pSymbolName)
     285#else
     286Void  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
    271305Void SyntaxElementParser::xReadRbspTrailingBits()
    272306{
Note: See TracChangeset for help on using the changeset viewer.