Changeset 1098 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibDecoder/SEIread.cpp
- Timestamp:
- 3 Jul 2015, 00:22:38 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibDecoder/SEIread.cpp
r1096 r1098 351 351 break; 352 352 #endif 353 #if Q0078_ADD_LAYER_SETS354 case SEI::OUTPUT_LAYER_SET_NESTING:355 sei = new SEIOutputLayerSetNesting;356 #if LAYERS_NOT_PRESENT_SEI357 xParseSEIOutputLayerSetNesting((SEIOutputLayerSetNesting&)*sei, nalUnitType, vps, sps, pDecodedMessageOutputStream);358 #else359 xParseSEIOutputLayerSetNesting((SEIOutputLayerSetNesting&)*sei, nalUnitType, sps, pDecodedMessageOutputStream);360 #endif361 break;362 case SEI::VPS_REWRITING:363 sei = new SEIVPSRewriting;364 xParseSEIVPSRewriting((SEIVPSRewriting&)*sei, pDecodedMessageOutputStream);365 break;366 #endif367 353 #if Q0189_TMVP_CONSTRAINTS 368 354 case SEI::TMVP_CONSTRAINTS: … … 1734 1720 #endif 1735 1721 1736 #if Q0078_ADD_LAYER_SETS1737 1738 #if LAYERS_NOT_PRESENT_SEI1739 Void SEIReader::xParseSEIOutputLayerSetNesting(SEIOutputLayerSetNesting& sei, const NalUnitType nalUnitType, TComVPS *vps, TComSPS *sps, std::ostream *pDecodedMessageOutputStream)1740 #else1741 Void SEIReader::xParseSEIOutputLayerSetNesting(SEIOutputLayerSetNesting& sei, const NalUnitType nalUnitType, TComSPS *sps, std::ostream *pDecodedMessageOutputStream)1742 #endif1743 {1744 UInt uiCode;1745 SEIMessages seis;1746 1747 sei_read_flag( pDecodedMessageOutputStream, uiCode, "ols_flag"); sei.m_olsFlag = uiCode;1748 sei_read_uvlc( pDecodedMessageOutputStream, uiCode, "num_ols_indices_minus1"); sei.m_numOlsIndicesMinus1 = uiCode;1749 1750 for (Int i = 0; i <= sei.m_numOlsIndicesMinus1; i++)1751 {1752 sei_read_uvlc( pDecodedMessageOutputStream, uiCode, "ols_idx[i]"); sei.m_olsIdx[i] = uiCode;1753 }1754 1755 // byte alignment1756 while (m_pcBitstream->getNumBitsRead() % 8 != 0)1757 {1758 UInt code;1759 sei_read_flag( pDecodedMessageOutputStream, code, "ols_nesting_zero_bit");1760 }1761 1762 sei.m_callerOwnsSEIs = false;1763 1764 // read nested SEI messages1765 do {1766 #if O0164_MULTI_LAYER_HRD1767 #if LAYERS_NOT_PRESENT_SEI1768 xReadSEImessage(sei.m_nestedSEIs, nalUnitType, vps, sps, pDecodedMessageOutputStream);1769 #else1770 xReadSEImessage(sei.m_nestedSEIs, nalUnitType, sps, pDecodedMessageOutputStream);1771 #endif1772 #else1773 #if LAYERS_NOT_PRESENT_SEI1774 xReadSEImessage(sei.m_nestedSEIs, nalUnitType, vps, sps, pDecodedMessageOutputStream);1775 #else1776 xReadSEImessage(sei.m_nestedSEIs, nalUnitType, sps, pDecodedMessageOutputStream);1777 #endif1778 #endif1779 } while (m_pcBitstream->getNumBitsLeft() > 8);1780 1781 }1782 1783 Void SEIReader::xParseSEIVPSRewriting(SEIVPSRewriting &sei, std::ostream *pDecodedMessageOutputStream )1784 {1785 }1786 1787 #endif1788 1789 1722 #if P0123_ALPHA_CHANNEL_SEI 1790 1723 void SEIReader::xParseSEIAlphaChannelInfo(SEIAlphaChannelInfo &sei, UInt payloadSize, std::ostream *pDecodedMessageOutputStream)
Note: See TracChangeset for help on using the changeset viewer.