Ignore:
Timestamp:
14 Jul 2015, 00:26:07 (9 years ago)
Author:
seregin
Message:

port rev 4240

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibDecoder/SEIread.cpp

    r1235 r1246  
    6666{
    6767  READ_CODE(uiLength, ruiCode, pSymbolName);
    68   if (pOS)      (*pOS) << "  " << std::setw(55) << pSymbolName << ": " << ruiCode << "\n";
     68  if (pOS)
     69  {
     70    (*pOS) << "  " << std::setw(55) << pSymbolName << ": " << ruiCode << "\n";
     71  }
    6972}
    7073
     
    7275{
    7376  READ_UVLC(ruiCode, pSymbolName);
    74   if (pOS)      (*pOS) << "  " << std::setw(55) << pSymbolName << ": " << ruiCode << "\n";
     77  if (pOS)
     78  {
     79    (*pOS) << "  " << std::setw(55) << pSymbolName << ": " << ruiCode << "\n";
     80  }
    7581}
    7682
     
    7884{
    7985  READ_SVLC(ruiCode, pSymbolName);
    80   if (pOS)      (*pOS) << "  " << std::setw(55) << pSymbolName << ": " << ruiCode << "\n";
     86  if (pOS)
     87  {
     88    (*pOS) << "  " << std::setw(55) << pSymbolName << ": " << ruiCode << "\n";
     89  }
    8190}
    8291
     
    8493{
    8594  READ_FLAG(ruiCode, pSymbolName);
    86   if (pOS)      (*pOS) << "  " << std::setw(55) << pSymbolName << ": " << (ruiCode?1:0) << "\n";
     95  if (pOS)
     96  {
     97    (*pOS) << "  " << std::setw(55) << pSymbolName << ": " << (ruiCode?1:0) << "\n";
     98  }
    8799}
    88100
     
    124136    * in the parsing if bitstream not byte-aligned */
    125137    assert(!m_pcBitstream->getNumBitsUntilByteAligned());
    126   } while (m_pcBitstream->getNumBitsLeft() > 8);
     138  }
     139  while (m_pcBitstream->getNumBitsLeft() > 8);
    127140
    128141  UInt rbspTrailingBits;
     
    490503  for (UInt i = 0; i < sei.userDataLength; i++)
    491504  {
    492     sei_read_code( pDecodedMessageOutputStream, 8, val, "user_data" );
     505    sei_read_code( NULL, 8, val, "user_data_payload_byte" );
    493506    sei.userData[i] = val;
     507  }
     508  if (pDecodedMessageOutputStream)
     509  {
     510    (*pDecodedMessageOutputStream) << "  User data payload size: " << sei.userDataLength << "\n";
    494511  }
    495512}
     
    517534  }
    518535
    519   if (pDecodedMessageOutputStream) (*pDecodedMessageOutputStream) << "  " << std::setw(55) << traceString << ": " << std::hex << std::setfill('0');
     536  if (pDecodedMessageOutputStream)
     537  {
     538    (*pDecodedMessageOutputStream) << "  " << std::setw(55) << traceString << ": " << std::hex << std::setfill('0');
     539  }
    520540
    521541  sei.m_digest.hash.clear();
     
    524544    sei_read_code( NULL, 8, val, traceString);
    525545    sei.m_digest.hash.push_back((UChar)val);
    526     if (pDecodedMessageOutputStream) (*pDecodedMessageOutputStream) << std::setw(2) << val;
    527   }
    528 
    529   if (pDecodedMessageOutputStream) (*pDecodedMessageOutputStream) << std::dec << std::setfill(' ') << "\n";
     546    if (pDecodedMessageOutputStream)
     547    {
     548      (*pDecodedMessageOutputStream) << std::setw(2) << val;
     549    }
     550  }
     551
     552  if (pDecodedMessageOutputStream)
     553  {
     554    (*pDecodedMessageOutputStream) << std::dec << std::setfill(' ') << "\n";
     555  }
    530556}
    531557
     
    11061132
    11071133  // read nested SEI messages
    1108   do {
     1134  do
     1135  {
    11091136#if O0164_MULTI_LAYER_HRD
    11101137#if LAYERS_NOT_PRESENT_SEI
     
    11221149  } while (m_pcBitstream->getNumBitsLeft() > 8);
    11231150
    1124   if (pDecodedMessageOutputStream) (*pDecodedMessageOutputStream) << "End of scalable nesting SEI message\n";
     1151  if (pDecodedMessageOutputStream)
     1152  {
     1153    (*pDecodedMessageOutputStream) << "End of scalable nesting SEI message\n";
     1154  }
    11251155}
    11261156
     
    12161246            sei_read_flag( pDecodedMessageOutputStream, code, "hours_flag"); currentTimeSet.hoursFlag = code;
    12171247            if(currentTimeSet.hoursFlag)
     1248            {
    12181249              sei_read_code( pDecodedMessageOutputStream, 5, code, "hours_value"); currentTimeSet.hoursValue = code;
     1250            }
    12191251          }
    12201252        }
Note: See TracChangeset for help on using the changeset viewer.