Changeset 972 in SHVCSoftware for branches/SHM-upgrade/source/Lib/TLibEncoder


Ignore:
Timestamp:
8 Jan 2015, 02:58:30 (10 years ago)
Author:
seregin
Message:

update PTL (rev 971)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-upgrade/source/Lib/TLibEncoder/TEncCavlc.cpp

    r965 r972  
    15241524    WRITE_FLAG(0,                                    "general_one_picture_only_constraint_flag");
    15251525    WRITE_FLAG(ptl->getLowerBitRateConstraintFlag(), "general_lower_bit_rate_constraint_flag");
     1526#if MULTIPLE_PTL_SUPPORT
     1527    WRITE_CODE(0, 32,  "general_reserved_zero_34bits");  WRITE_CODE(0, 2,  "general_reserved_zero_34bits");
     1528  }
     1529  else if( ptl->getProfileIdc() == Profile::SCALABLEMAIN || ptl->getProfileIdc() == Profile::SCALABLEMAIN10 )      // at encoder side, scalable-main10 profile has a profile idc equal to 8, which is converted to 7 during signalling
     1530  {
     1531    WRITE_FLAG(true,   "general_max_12bit_constraint_flag");
     1532    WRITE_FLAG(true,   "general_max_10bit_constraint_flag");
     1533    WRITE_FLAG((ptl->getProfileIdc() == Profile::SCALABLEMAIN) ? true : false, "general_max_8bit_constraint_flag");
     1534    WRITE_FLAG(true,   "general_max_422chroma_constraint_flag");
     1535    WRITE_FLAG(true,   "general_max_420chroma_constraint_flag");
     1536    WRITE_FLAG(false,  "general_max_monochrome_constraint_flag");
     1537    WRITE_FLAG(false,  "general_intra_constraint_flag");
     1538    WRITE_FLAG(false,  "general_one_picture_only_constraint_flag");
     1539    WRITE_FLAG(true,   "general_lower_bit_rate_constraint_flag");
     1540    WRITE_CODE(0, 32,  "general_reserved_zero_34bits");  WRITE_CODE(0, 2,  "general_reserved_zero_34bits");
     1541  }
     1542  else
     1543  {
     1544    WRITE_CODE(0, 32,  "general_reserved_zero_43bits");  WRITE_CODE(0, 11,  "general_reserved_zero_43bits");
     1545  }
     1546
     1547  if( ( ptl->getProfileIdc() >= 1 && ptl->getProfileIdc() <= 5 ) ||
     1548      ptl->getProfileCompatibilityFlag(1) || ptl->getProfileCompatibilityFlag(2) ||
     1549      ptl->getProfileCompatibilityFlag(3) || ptl->getProfileCompatibilityFlag(4) ||
     1550      ptl->getProfileCompatibilityFlag(5)                                           )
     1551  {
     1552    WRITE_FLAG(false, "general_inbld_flag");
     1553  }
     1554  else
     1555  {
     1556    WRITE_FLAG(false, "general_reserved_zero_bit");
     1557  }
     1558#else
    15261559    WRITE_CODE(0 , 16, "XXX_reserved_zero_35bits[0..15]");
    15271560    WRITE_CODE(0 , 16, "XXX_reserved_zero_35bits[16..31]");
    15281561    WRITE_CODE(0 ,  3, "XXX_reserved_zero_35bits[32..34]");
    15291562  }
    1530 #if MULTIPLE_PTL_SUPPORT
    1531   else if (ptl->getProfileIdc() == Profile::SCALABLEMAIN || ptl->getProfileIdc() == Profile::SCALABLEMAIN10)
    1532   {
    1533     WRITE_FLAG(true, "general_max_12bit_constraint_flag");
    1534     WRITE_FLAG(true, "general_max_10bit_constraint_flag");
    1535     WRITE_FLAG((ptl->getProfileIdc() == Profile::SCALABLEMAIN) ? true : false, "general_max_8bit_constraint_flag");
    1536     WRITE_FLAG(true, "general_max_422chroma_constraint_flag");
    1537     WRITE_FLAG(true, "general_max_420chroma_constraint_flag");
    1538     WRITE_FLAG(false, "general_max_monochrome_constraint_flag");
    1539     WRITE_FLAG(false, "general_intra_constraint_flag");
    1540     WRITE_FLAG(false, "general_one_picture_only_constraint_flag");
    1541     WRITE_FLAG(true, "general_lower_bit_rate_constraint_flag");
    1542     WRITE_CODE(0 , 16, "XXX_reserved_zero_35bits[0..15]");
    1543     WRITE_CODE(0 , 16, "XXX_reserved_zero_35bits[16..31]");
    1544     WRITE_CODE(0 ,  3, "XXX_reserved_zero_35bits[32..34]");
    1545   }
    1546 #endif
    15471563  else
    15481564  {
     
    15511567    WRITE_CODE(0x000  , 12, "XXX_reserved_zero_44bits[32..43]");
    15521568  }
     1569#endif
    15531570}
    15541571
Note: See TracChangeset for help on using the changeset viewer.