Changeset 1190 in SHVCSoftware


Ignore:
Timestamp:
8 Jul 2015, 03:47:31 (9 years ago)
Author:
seregin
Message:

macro cleanup: O0109_VIEW_ID_LEN, VIEW_ID_RELATED_SIGNALING

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

Legend:

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

    r1180 r1190  
    19641964, m_vpsNumRepFormats          (1)
    19651965#endif
    1966 #if VIEW_ID_RELATED_SIGNALING
    1967 #if O0109_VIEW_ID_LEN
    19681966, m_viewIdLen                (0)
    1969 #else
    1970 , m_viewIdLenMinus1           (0)
    1971 #endif
    1972 #endif
    19731967, m_vpsNonVuiExtLength (0)
    19741968#if P0297_VPS_POC_LSB_ALIGNED_FLAG
     
    20562050  ::memset( m_vpsRepFormatIdx, 0, sizeof(m_vpsRepFormatIdx) );
    20572051#endif
    2058 #if VIEW_ID_RELATED_SIGNALING
    20592052  ::memset(m_viewIdVal, 0, sizeof(m_viewIdVal));
    2060 #endif
    20612053
    20622054  for( Int i = 0; i < MAX_NUM_LAYER_IDS; i++ )
     
    32783270}
    32793271
    3280 #if VIEW_ID_RELATED_SIGNALING
    32813272Int TComVPS::getNumViews()
    32823273{
     
    32933284  return numViews;
    32943285}
     3286
    32953287Int TComVPS::getScalabilityId( Int layerIdInVps, ScalabilityType scalType )
    32963288{
    32973289  return getScalabilityMask( scalType ) ? getDimensionId( layerIdInVps, scalTypeToScalIdx( scalType ) ) : 0;
    3298 
     3290}
     3291
    32993292Int TComVPS::scalTypeToScalIdx( ScalabilityType scalType )
    33003293{
     
    33103303  return scalIdx;
    33113304}
    3312 #endif
     3305
    33133306#if VPS_DPB_SIZE_TABLE
    33143307Int TComVPS::getLayerIdcForOls( Int olsIdx, Int layerId )
  • branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h

    r1186 r1190  
    690690  Int        m_vpsRepFormatIdx[16];
    691691#endif
    692 #if VIEW_ID_RELATED_SIGNALING
    693 #if O0109_VIEW_ID_LEN
    694692  Int        m_viewIdLen;
    695 #else
    696   Int        m_viewIdLenMinus1;
    697 #endif
    698693  Int        m_viewIdVal                [MAX_LAYERS];
    699 #endif
    700694
    701695  Int        m_numberRefLayers[MAX_NUM_LAYER_IDS];  // number of direct and indirect reference layers of a coding layer
     
    10821076  Void   setVpsRepFormatIdx(Int idx, Int x) { m_vpsRepFormatIdx[idx] = x;       }         
    10831077#endif
    1084 #if VIEW_ID_RELATED_SIGNALING
    1085 #if O0109_VIEW_ID_LEN
     1078
    10861079  Void   setViewIdLen( Int  val )                                   { m_viewIdLen = val;  }
    10871080  Int    getViewIdLen(  )                                           { return m_viewIdLen; }
    1088 #else
    1089   Void   setViewIdLenMinus1( Int  val )                             { m_viewIdLenMinus1 = val;  }
    1090   Int    getViewIdLenMinus1(  )                                     { return m_viewIdLenMinus1; }
    1091 #endif
    10921081
    10931082  Void   setViewIdVal( Int viewOrderIndex, Int  val )               { m_viewIdVal[viewOrderIndex] = val;  }
     
    10991088  Int    getNumViews();
    11001089  Int    scalTypeToScalIdx( ScalabilityType scalType );
    1101 #endif
     1090
    11021091#if VPS_DPB_SIZE_TABLE
    11031092  Bool   getSubLayerFlagInfoPresentFlag(Int olsIdx)         { return m_subLayerFlagInfoPresentFlag[olsIdx]; }
  • branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h

    r1189 r1190  
    6363#define ALIGNED_BUMPING                  1      ///< JCTVC-P0192: Align bumping of pictures in an AU
    6464#define FIX_ALIGN_BUMPING                1
    65 #define O0109_VIEW_ID_LEN                1      ///< JCTVC-O0109: view_id_len_minus1 to view_id_len, and add constraint (1<<view_id_len) is greater than or equal to NumViews
    6665
    6766#define O0164_MULTI_LAYER_HRD            1      ///< JCTVC-O0164: Multi-layer HRD operation
     
    106105#define MOTION_RESAMPLING_CONSTRAINT     1      ///< JCTVC-N0108: Allow maximum of one motion resampling process for direct reference layers, and use motion inter-layer prediction from the same layer as texture inter-layer prediction.
    107106
    108 #define VIEW_ID_RELATED_SIGNALING        1      ///< Introduce syntax elements view_id and view_id_val
    109107#define AUXILIARY_PICTURES               1      ///< JCTVC-O0041: auxiliary picture layers
    110108#define R0062_AUX_PSEUDO_MONOCHROME      1      ///> JCVVC-R0063: pseudo monochrome for auxiliary pictures
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r1189 r1190  
    27252725  }
    27262726
    2727 #if VIEW_ID_RELATED_SIGNALING
    2728 #if O0109_VIEW_ID_LEN
    27292727  READ_CODE( 4, uiCode, "view_id_len" ); vps->setViewIdLen( uiCode );
    2730 #else
    2731   READ_CODE( 4, uiCode, "view_id_len_minus1" ); vps->setViewIdLenMinus1( uiCode );
    2732 #endif
    2733 
    2734 #if O0109_VIEW_ID_LEN
     2728
    27352729  if ( vps->getViewIdLen() > 0 )
    27362730  {
    2737     for(  i = 0; i < vps->getNumViews(); i++ )
     2731    for( i = 0; i < vps->getNumViews(); i++ )
    27382732    {
    27392733      READ_CODE( vps->getViewIdLen( ), uiCode, "view_id_val[i]" ); vps->setViewIdVal( i, uiCode );
    27402734    }
    27412735  }
    2742 #else
    2743   for(  i = 0; i < vps->getNumViews(); i++ )
    2744   {
    2745     READ_CODE( vps->getViewIdLenMinus1( ) + 1, uiCode, "view_id_val[i]" ); vps->setViewIdVal( i, uiCode );
    2746   }
    2747 #endif
    2748 #endif // view id related signaling
    27492736
    27502737  // For layer 0
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r1189 r1190  
    20232023  }
    20242024
    2025 #if VIEW_ID_RELATED_SIGNALING
    2026   // if ( pcVPS->getNumViews() > 1 ) 
    2027   //   However, this is a bug in the text since, view_id_len_minus1 is needed to parse view_id_val.
    2028   {
    2029 #if O0109_VIEW_ID_LEN
    2030     WRITE_CODE( vps->getViewIdLen( ), 4, "view_id_len" );
    2031     assert ( vps->getNumViews() >= (1<<vps->getViewIdLen()) );
    2032 #else
    2033     WRITE_CODE( vps->getViewIdLenMinus1( ), 4, "view_id_len_minus1" );
    2034 #endif
    2035   }
    2036 
    2037 #if O0109_VIEW_ID_LEN
     2025  WRITE_CODE( vps->getViewIdLen( ), 4, "view_id_len" );
     2026  assert ( vps->getNumViews() >= (1<<vps->getViewIdLen()) );
     2027
    20382028  if ( vps->getViewIdLen() > 0 )
    20392029  {
    2040 #endif
    2041   for(  i = 0; i < vps->getNumViews(); i++ )
    2042   {
    2043 #if O0109_VIEW_ID_LEN
    2044     WRITE_CODE( vps->getViewIdVal( i ), vps->getViewIdLen( ), "view_id_val[i]" );
    2045 #else
    2046     WRITE_CODE( vps->getViewIdVal( i ), vps->getViewIdLenMinus1( ) + 1, "view_id_val[i]" );
    2047 #endif
    2048   }
    2049 #if O0109_VIEW_ID_LEN
    2050   }
    2051 #endif
    2052 #endif // VIEW_ID_RELATED_SIGNALING
     2030    for( i = 0; i < vps->getNumViews(); i++ )
     2031    {
     2032      WRITE_CODE( vps->getViewIdVal( i ), vps->getViewIdLen( ), "view_id_val[i]" );
     2033    }
     2034  }
    20532035
    20542036  for( Int layerCtr = 1; layerCtr < vps->getMaxLayers(); layerCtr++)
Note: See TracChangeset for help on using the changeset viewer.