Changeset 1246 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibDecoder/SEIread.cpp
- Timestamp:
- 14 Jul 2015, 00:26:07 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibDecoder/SEIread.cpp
r1235 r1246 66 66 { 67 67 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 } 69 72 } 70 73 … … 72 75 { 73 76 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 } 75 81 } 76 82 … … 78 84 { 79 85 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 } 81 90 } 82 91 … … 84 93 { 85 94 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 } 87 99 } 88 100 … … 124 136 * in the parsing if bitstream not byte-aligned */ 125 137 assert(!m_pcBitstream->getNumBitsUntilByteAligned()); 126 } while (m_pcBitstream->getNumBitsLeft() > 8); 138 } 139 while (m_pcBitstream->getNumBitsLeft() > 8); 127 140 128 141 UInt rbspTrailingBits; … … 490 503 for (UInt i = 0; i < sei.userDataLength; i++) 491 504 { 492 sei_read_code( pDecodedMessageOutputStream, 8, val, "user_data" );505 sei_read_code( NULL, 8, val, "user_data_payload_byte" ); 493 506 sei.userData[i] = val; 507 } 508 if (pDecodedMessageOutputStream) 509 { 510 (*pDecodedMessageOutputStream) << " User data payload size: " << sei.userDataLength << "\n"; 494 511 } 495 512 } … … 517 534 } 518 535 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 } 520 540 521 541 sei.m_digest.hash.clear(); … … 524 544 sei_read_code( NULL, 8, val, traceString); 525 545 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 } 530 556 } 531 557 … … 1106 1132 1107 1133 // read nested SEI messages 1108 do { 1134 do 1135 { 1109 1136 #if O0164_MULTI_LAYER_HRD 1110 1137 #if LAYERS_NOT_PRESENT_SEI … … 1122 1149 } while (m_pcBitstream->getNumBitsLeft() > 8); 1123 1150 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 } 1125 1155 } 1126 1156 … … 1216 1246 sei_read_flag( pDecodedMessageOutputStream, code, "hours_flag"); currentTimeSet.hoursFlag = code; 1217 1247 if(currentTimeSet.hoursFlag) 1248 { 1218 1249 sei_read_code( pDecodedMessageOutputStream, 5, code, "hours_value"); currentTimeSet.hoursValue = code; 1250 } 1219 1251 } 1220 1252 }
Note: See TracChangeset for help on using the changeset viewer.