Changeset 1098 in SHVCSoftware for branches/SHM-dev/source


Ignore:
Timestamp:
3 Jul 2015, 00:22:38 (9 years ago)
Author:
seregin
Message:

remove ols_nesting and vps_rewriting SEI messages as a decision of AHG10 JCTVC-R0010

Location:
branches/SHM-dev/source/Lib
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibCommon/SEI.cpp

    r1096 r1098  
    152152    case SEI::BSP_INITIAL_ARRIVAL_TIME:             return "Bitstream parition initial arrival time";
    153153#endif
    154 #if Q0078_ADD_LAYER_SETS
    155     case SEI::OUTPUT_LAYER_SET_NESTING:             return "Output layer set nesting";
    156     case SEI::VPS_REWRITING:                        return "VPS rewriting";
    157 #endif
    158154#if Q0096_OVERLAY_SEI
    159155    case SEI::OVERLAY_INFO:                         return "Overlay Information";
  • branches/SHM-dev/source/Lib/TLibCommon/SEI.h

    r1097 r1098  
    119119    FRAME_FIELD_INFO                     = 168,
    120120#endif
    121 #if Q0078_ADD_LAYER_SETS
    122     OUTPUT_LAYER_SET_NESTING             = 149,
    123     VPS_REWRITING                        = 150,
    124 #endif
    125121  };
    126122 
     
    638634};
    639635
    640 #if Q0078_ADD_LAYER_SETS
    641 class SEIOutputLayerSetNesting : public SEI
    642 {
    643 public:
    644   PayloadType payloadType() const { return OUTPUT_LAYER_SET_NESTING; }
    645 
    646   SEIOutputLayerSetNesting()
    647     : m_callerOwnsSEIs(false)
    648   {}
    649 
    650   virtual ~SEIOutputLayerSetNesting()
    651   {
    652     if (!m_callerOwnsSEIs)
    653     {
    654       deleteSEIs(m_nestedSEIs);
    655     }
    656   }
    657 
    658   Bool m_olsFlag;
    659   UInt m_numOlsIndicesMinus1;
    660   UInt m_olsIdx[1024];
    661   Bool  m_callerOwnsSEIs;
    662   SEIMessages m_nestedSEIs;
    663 };
    664 
    665 class SEIVPSRewriting : public SEI
    666 {
    667 public:
    668   PayloadType payloadType() const { return VPS_REWRITING; }
    669 
    670   SEIVPSRewriting() {}
    671   virtual ~SEIVPSRewriting() {}
    672 
    673   NALUnit* nalu;
    674 };
    675 #endif
    676 
    677636#if P0123_ALPHA_CHANNEL_SEI
    678637class SEIAlphaChannelInfo : public SEI
  • branches/SHM-dev/source/Lib/TLibDecoder/SEIread.cpp

    r1096 r1098  
    351351     break;
    352352#endif
    353 #if Q0078_ADD_LAYER_SETS
    354    case SEI::OUTPUT_LAYER_SET_NESTING:
    355      sei = new SEIOutputLayerSetNesting;
    356 #if LAYERS_NOT_PRESENT_SEI
    357      xParseSEIOutputLayerSetNesting((SEIOutputLayerSetNesting&)*sei, nalUnitType, vps, sps, pDecodedMessageOutputStream);
    358 #else
    359      xParseSEIOutputLayerSetNesting((SEIOutputLayerSetNesting&)*sei, nalUnitType, sps, pDecodedMessageOutputStream);
    360 #endif
    361      break;
    362    case SEI::VPS_REWRITING:
    363      sei = new SEIVPSRewriting;
    364      xParseSEIVPSRewriting((SEIVPSRewriting&)*sei, pDecodedMessageOutputStream);
    365      break;
    366 #endif
    367353#if Q0189_TMVP_CONSTRAINTS
    368354   case SEI::TMVP_CONSTRAINTS:
     
    17341720#endif
    17351721
    1736 #if Q0078_ADD_LAYER_SETS
    1737 
    1738 #if LAYERS_NOT_PRESENT_SEI
    1739 Void SEIReader::xParseSEIOutputLayerSetNesting(SEIOutputLayerSetNesting& sei, const NalUnitType nalUnitType, TComVPS *vps, TComSPS *sps, std::ostream *pDecodedMessageOutputStream)
    1740 #else
    1741 Void SEIReader::xParseSEIOutputLayerSetNesting(SEIOutputLayerSetNesting& sei, const NalUnitType nalUnitType, TComSPS *sps, std::ostream *pDecodedMessageOutputStream)
    1742 #endif
    1743 {
    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 alignment
    1756   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 messages
    1765   do {
    1766 #if O0164_MULTI_LAYER_HRD
    1767 #if LAYERS_NOT_PRESENT_SEI
    1768     xReadSEImessage(sei.m_nestedSEIs, nalUnitType, vps, sps, pDecodedMessageOutputStream);
    1769 #else
    1770     xReadSEImessage(sei.m_nestedSEIs, nalUnitType, sps, pDecodedMessageOutputStream);
    1771 #endif
    1772 #else
    1773 #if LAYERS_NOT_PRESENT_SEI
    1774     xReadSEImessage(sei.m_nestedSEIs, nalUnitType, vps, sps, pDecodedMessageOutputStream);
    1775 #else
    1776     xReadSEImessage(sei.m_nestedSEIs, nalUnitType, sps, pDecodedMessageOutputStream);
    1777 #endif
    1778 #endif
    1779   } while (m_pcBitstream->getNumBitsLeft() > 8);
    1780 
    1781 }
    1782 
    1783 Void SEIReader::xParseSEIVPSRewriting(SEIVPSRewriting &sei, std::ostream *pDecodedMessageOutputStream )
    1784 {
    1785 }
    1786 
    1787 #endif
    1788 
    17891722#if P0123_ALPHA_CHANNEL_SEI
    17901723void SEIReader::xParseSEIAlphaChannelInfo(SEIAlphaChannelInfo &sei, UInt payloadSize, std::ostream *pDecodedMessageOutputStream)
  • branches/SHM-dev/source/Lib/TLibDecoder/SEIread.h

    r1096 r1098  
    136136  Void xParseHrdParameters                    (TComHRD *hrd, Bool commonInfPresentFlag, UInt maxNumSubLayersMinus1, std::ostream *pDecodedMessageOutputStream);
    137137#endif
    138 #if Q0078_ADD_LAYER_SETS
    139 #if LAYERS_NOT_PRESENT_SEI
    140   Void xParseSEIOutputLayerSetNesting         (SEIOutputLayerSetNesting& sei, const NalUnitType nalUnitType, TComVPS *vps, TComSPS *sps, std::ostream *pDecodedMessageOutputStream);
    141 #else
    142   Void xParseSEIOutputLayerSetNesting         (SEIOutputLayerSetNesting& sei, const NalUnitType nalUnitType, TComSPS *sps, std::ostream *pDecodedMessageOutputStream);
    143 #endif
    144   Void xParseSEIVPSRewriting                  (SEIVPSRewriting &sei, std::ostream *pDecodedMessageOutputStream);
    145 #endif
    146 
    147138#if Q0189_TMVP_CONSTRAINTS
    148139  Void xParseSEITMVPConstraints               (SEITMVPConstrains& sei, UInt payloadSize, std::ostream *pDecodedMessageOutputStream);
  • branches/SHM-dev/source/Lib/TLibEncoder/SEIwrite.cpp

    r1096 r1098  
    186186     break;
    187187#endif
    188 #if Q0078_ADD_LAYER_SETS
    189    case SEI::OUTPUT_LAYER_SET_NESTING:
    190      xWriteSEIOutputLayerSetNesting(bs, *static_cast<const SEIOutputLayerSetNesting*>(&sei), vps, sps);
    191      break;
    192    case SEI::VPS_REWRITING:
    193      xWriteSEIVPSRewriting(*static_cast<const SEIVPSRewriting*>(&sei));
    194      break;
    195 #endif
    196188#if Q0189_TMVP_CONSTRAINTS
    197189   case SEI::TMVP_CONSTRAINTS:
     
    13321324#endif
    13331325
    1334 #if Q0078_ADD_LAYER_SETS
    1335 
    1336 Void SEIWriter::xWriteSEIOutputLayerSetNesting(TComBitIf& bs, const SEIOutputLayerSetNesting &sei, TComVPS *vps, TComSPS *sps)
    1337 {
    1338   WRITE_FLAG(sei.m_olsFlag, "ols_flag");
    1339   WRITE_UVLC(sei.m_numOlsIndicesMinus1, "num_ols_indices_minus1");
    1340 
    1341   for (Int i = 0; i <= sei.m_numOlsIndicesMinus1; i++)
    1342   {
    1343     WRITE_UVLC(sei.m_olsIdx[i], "ols_idx[i]");
    1344   }
    1345 
    1346   while (m_pcBitIf->getNumberOfWrittenBits() % 8 != 0)
    1347   {
    1348     WRITE_FLAG(0, "ols_nesting_zero_bit");
    1349   }
    1350 
    1351   // write nested SEI messages
    1352   for (SEIMessages::const_iterator it = sei.m_nestedSEIs.begin(); it != sei.m_nestedSEIs.end(); it++)
    1353   {
    1354     writeSEImessage(bs, *(*it), vps, sps);
    1355   }
    1356 }
    1357 
    1358 Void SEIWriter::xWriteSEIVPSRewriting(const SEIVPSRewriting &sei)
    1359 {
    1360   //sei.nalu->
    1361 }
    1362 
    1363 #endif
    1364 
    13651326#if P0123_ALPHA_CHANNEL_SEI
    13661327Void SEIWriter::xWriteSEIAlphaChannelInfo(const SEIAlphaChannelInfo &sei)
  • branches/SHM-dev/source/Lib/TLibEncoder/SEIwrite.h

    r1096 r1098  
    124124  Void xCodeHrdParameters( TComHRD *hrd, Bool commonInfPresentFlag, UInt maxNumSubLayersMinus1 );
    125125#endif
    126 #if Q0078_ADD_LAYER_SETS
    127   Void xWriteSEIOutputLayerSetNesting(TComBitIf& bs, const SEIOutputLayerSetNesting &sei, TComVPS *vps, TComSPS *sps);
    128   Void xWriteSEIVPSRewriting(const SEIVPSRewriting &sei);
    129 #endif
    130126#if P0123_ALPHA_CHANNEL_SEI
    131127  Void xWriteSEIAlphaChannelInfo(const SEIAlphaChannelInfo &sei);
Note: See TracChangeset for help on using the changeset viewer.