Changeset 1534 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibDecoder


Ignore:
Timestamp:
22 Mar 2016, 19:58:32 (9 years ago)
Author:
seregin
Message:

integration of multi-view support from JCTVC-W0134

Location:
branches/SHM-dev/source/Lib/TLibDecoder
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r1533 r1534  
    21862186    READ_CODE(32, uiCode, "reserved_zero_34bits");  READ_CODE(2, uiCode, "reserved_zero_34bits");
    21872187  }
     2188#if VIEW_SCALABILITY
     2189  else if( ptl->getProfileIdc() == Profile::MULTIVIEWMAIN )
     2190  {
     2191    READ_FLAG(    uiCode, "general_max_12bit_constraint_flag" ); assert (uiCode == 1);
     2192    READ_FLAG(    uiCode, "general_max_10bit_constraint_flag" ); assert (uiCode == 1);
     2193    READ_FLAG(    uiCode, "general_max_8bit_constraint_flag"  ); assert (uiCode == 1);
     2194    READ_FLAG(    uiCode, "general_max_422chroma_constraint_flag"  ); assert (uiCode == 1);
     2195    READ_FLAG(    uiCode, "general_max_420chroma_constraint_flag"  ); assert (uiCode == 1);
     2196    READ_FLAG(    uiCode, "general_max_monochrome_constraint_flag" ); assert (uiCode == 0);
     2197    READ_FLAG(    uiCode, "general_intra_constraint_flag"); assert (uiCode == 0);
     2198    READ_FLAG(    uiCode, "general_one_picture_only_constraint_flag"); assert (uiCode == 0);
     2199    READ_FLAG(    uiCode, "general_lower_bit_rate_constraint_flag"); assert (uiCode == 1);
     2200    READ_CODE(32, uiCode, "general_reserved_zero_34bits");  READ_CODE(2, uiCode, "general_reserved_zero_34bits");
     2201  }
     2202#endif
    21882203  else
    21892204  {
     
    35563571
    35573572  READ_FLAG( uiCode, "inter_view_mv_vert_constraint_flag" );
     3573 
     3574#if VIEW_SCALABILITY
     3575  pcSPS->setInterViewMvVertConstraintFlag(uiCode == 1 ? true : false);
     3576#else
     3577  // Vertical MV component restriction is not used in SHVC CTC
     3578  assert( uiCode == 0 );
     3579#endif
    35583580}
    35593581
  • TabularUnified branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.cpp

    r1531 r1534  
    839839  // set motion mapping flag
    840840  m_apcSlicePilot->setMFMEnabledFlag( ( m_apcSlicePilot->getNumMotionPredRefLayers() > 0 && m_apcSlicePilot->getActiveNumILRRefIdx() && !m_apcSlicePilot->isIntra() ) ? true : false );
     841
     842#if VIEW_SCALABILITY
     843  if( vps->getViewIndex(nalu.m_nuhLayerId) == 1 && sps->getPTL()->getGeneralPTL()->getProfileIdc() == Profile::MULTIVIEWMAIN )
     844  {
     845    assert( sps->getInterViewMvVertConstraintFlag() == 1 );
     846  }
     847#endif
    841848#endif
    842849
Note: See TracChangeset for help on using the changeset viewer.