Changeset 435 in SHVCSoftware for branches/SHM-3.1-dev/source/Lib/TLibCommon


Ignore:
Timestamp:
14 Oct 2013, 16:04:33 (11 years ago)
Author:
nokia
Message:

add inter-layer constrained tiles sets SEI from JCTVC-N0383

Location:
branches/SHM-3.1-dev/source/Lib/TLibCommon
Files:
4 edited

Legend:

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

    r313 r435  
    7575    LAYERS_PRESENT                       = 137,
    7676#endif
     77#if N0383_IL_CONSTRAINED_TILE_SETS_SEI
     78    INTER_LAYER_CONSTRAINED_TILE_SETS    = 138
     79#endif
    7780  };
    7881 
     
    381384};
    382385
     386#if N0383_IL_CONSTRAINED_TILE_SETS_SEI
     387class SEIInterLayerConstrainedTileSets : public SEI
     388{
     389public:
     390  PayloadType payloadType() const { return INTER_LAYER_CONSTRAINED_TILE_SETS; }
     391
     392  SEIInterLayerConstrainedTileSets() {}
     393  virtual ~SEIInterLayerConstrainedTileSets() {}
     394
     395  Bool m_ilAllTilesExactSampleValueMatchFlag;
     396  Bool m_ilOneTilePerTileSetFlag;
     397  UInt m_ilNumSetsInMessageMinus1;
     398  Bool m_skippedTileSetPresentFlag;
     399  UInt m_ilctsId[256];
     400  UInt m_ilNumTileRectsInSetMinus1[256];
     401  UInt m_ilTopLeftTileIndex[256][440];
     402  UInt m_ilBottomRightTileIndex[256][440];
     403  UInt m_ilcIdc[256];
     404  Bool m_ilExactSampleValueMatchFlag[256];
     405  UInt m_allTilesIlcIdc;
     406};
     407#endif
     408
     409
    383410typedef std::list<SEI*> SEIMessages;
    384411
  • branches/SHM-3.1-dev/source/Lib/TLibCommon/TComPicSym.cpp

    r431 r435  
    115115  m_puiCUOrderMap = new UInt[m_uiNumCUsInFrame+1];
    116116  m_puiTileIdxMap = new UInt[m_uiNumCUsInFrame];
     117#if N0383_IL_CONSTRAINED_TILE_SETS_SEI
     118  m_piTileSetIdxMap = new Int[m_uiNumCUsInFrame];
     119  m_pucTileSetType = new UChar[m_uiNumCUsInFrame];
     120  m_pbSkippedTileSetFlag = new Bool[m_uiNumCUsInFrame];
     121#endif
    117122  m_puiInverseCUOrderMap = new UInt[m_uiNumCUsInFrame+1];
    118123
     
    166171  delete [] m_puiTileIdxMap;
    167172  m_puiTileIdxMap = NULL;
     173#if N0383_IL_CONSTRAINED_TILE_SETS_SEI
     174  delete [] m_piTileSetIdxMap;
     175  m_piTileSetIdxMap = NULL;
     176  delete [] m_pucTileSetType;
     177  m_pucTileSetType = NULL;
     178  delete [] m_pbSkippedTileSetFlag;
     179  m_pbSkippedTileSetFlag = NULL;
     180#endif
    168181
    169182  delete [] m_puiInverseCUOrderMap;
  • branches/SHM-3.1-dev/source/Lib/TLibCommon/TComPicSym.h

    r431 r435  
    105105  UInt*         m_puiCUOrderMap;       //the map of LCU raster scan address relative to LCU encoding order
    106106  UInt*         m_puiTileIdxMap;       //the map of the tile index relative to LCU raster scan address
     107#if N0383_IL_CONSTRAINED_TILE_SETS_SEI
     108  Int*          m_piTileSetIdxMap;     //the map of the tile set index relative to LCU raster scan address
     109  UChar*        m_pucTileSetType;
     110  Bool*         m_pbSkippedTileSetFlag;
     111#endif
    107112  UInt*         m_puiInverseCUOrderMap;
    108113
     
    143148  UInt         getCUOrderMap( Int encCUOrder )                       { return *(m_puiCUOrderMap + (encCUOrder>=m_uiNumCUsInFrame ? m_uiNumCUsInFrame : encCUOrder)); }
    144149  UInt         getTileIdxMap( Int i )                                { return *(m_puiTileIdxMap + i); }
     150#if N0383_IL_CONSTRAINED_TILE_SETS_SEI
     151  Void         setTileSetIdxMap( Int i, Int tileSetIdx, UChar setType, Bool skipFlag )
     152  {
     153    m_piTileSetIdxMap[i]       = tileSetIdx;
     154    m_pucTileSetType[i]        = setType;
     155    m_pbSkippedTileSetFlag[i]  = skipFlag;
     156  }
     157  Int          getTileSetIdxMap( Int i )                             { return *(m_piTileSetIdxMap + i); }
     158  UChar        getTileSetType( Int i )                               { return *(m_pucTileSetType + i); }
     159  Bool         getSkippedTileSetFlag( Int i )                        { return *(m_pbSkippedTileSetFlag + i); }
     160#endif
    145161  Void         setInverseCUOrderMap( Int cuAddr, Int encCUOrder )    { *(m_puiInverseCUOrderMap + cuAddr) = encCUOrder; }
    146162  UInt         getInverseCUOrderMap( Int cuAddr )                    { return *(m_puiInverseCUOrderMap + (cuAddr>=m_uiNumCUsInFrame ? m_uiNumCUsInFrame : cuAddr)); }
  • branches/SHM-3.1-dev/source/Lib/TLibCommon/TypeDef.h

    r431 r435  
    157157#define VIEW_ID_RELATED_SIGNALING        1      ///< Introduce syntax elements view_id_len_minus1 and view_id_val
    158158#define M0043_LAYERS_PRESENT_SEI         0      ///< JCTVC-M0043: add layers present SEI. Macro shall be equal to 0 according to the JCTVC-N0174 discussion. The code is to be removed.
     159#define N0383_IL_CONSTRAINED_TILE_SETS_SEI  1
    159160#else
    160161#define SYNTAX_OUTPUT                    0
Note: See TracChangeset for help on using the changeset viewer.