Changeset 972 in SHVCSoftware


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

update PTL (rev 971)

Location:
branches/SHM-upgrade/source/Lib
Files:
2 edited

Legend:

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

    r967 r972  
    23092309    READ_FLAG(    uiCode, "general_one_picture_only_constraint_flag");
    23102310    READ_FLAG(    uiCode, "general_lower_bit_rate_constraint_flag"); ptl->setLowerBitRateConstraintFlag(uiCode != 0);
    2311     READ_CODE(16, uiCode, "XXX_reserved_zero_35bits[0..15]");
    2312     READ_CODE(16, uiCode, "XXX_reserved_zero_35bits[16..31]");
    2313     READ_CODE(3,  uiCode, "XXX_reserved_zero_35bits[32..34]");
    2314   }
    23152311#if MULTIPLE_PTL_SUPPORT
    2316   else if (ptl->getProfileIdc() == Profile::SCALABLEMAIN )
     2312    READ_CODE(32, uiCode, "general_reserved_zero_34bits");  READ_CODE(2, uiCode, "general_reserved_zero_34bits");
     2313  }
     2314  else if( ptl->getProfileIdc() == Profile::SCALABLEMAIN )
    23172315  {
    23182316    READ_FLAG(    uiCode, "general_max_12bit_constraint_flag" ); assert (uiCode == 1);
     
    23252323    READ_FLAG(    uiCode, "general_one_picture_only_constraint_flag"); assert (uiCode == 0);
    23262324    READ_FLAG(    uiCode, "general_lower_bit_rate_constraint_flag"); assert (uiCode == 1);
     2325    READ_CODE(32, uiCode, "general_reserved_zero_34bits");  READ_CODE(2, uiCode, "general_reserved_zero_34bits");
     2326  }
     2327  else
     2328  {
     2329    ptl->setBitDepthConstraint((ptl->getProfileIdc() == Profile::MAIN10)?10:8);
     2330    ptl->setChromaFormatConstraint(CHROMA_420);
     2331    ptl->setIntraConstraintFlag(false);
     2332    ptl->setLowerBitRateConstraintFlag(true);
     2333    READ_CODE(32,  uiCode, "general_reserved_zero_43bits");  READ_CODE(11,  uiCode, "general_reserved_zero_43bits");
     2334  }
     2335
     2336  if( ( ptl->getProfileIdc() >= 1 && ptl->getProfileIdc() <= 5 ) ||
     2337      ptl->getProfileCompatibilityFlag(1) || ptl->getProfileCompatibilityFlag(2) ||
     2338      ptl->getProfileCompatibilityFlag(3) || ptl->getProfileCompatibilityFlag(4) ||
     2339      ptl->getProfileCompatibilityFlag(5)                                           )
     2340  {
     2341    READ_FLAG(uiCode, "general_inbld_flag");
     2342  }
     2343  else
     2344  {
     2345    READ_FLAG(uiCode, "general_reserved_zero_bit");
     2346  }
     2347#else
    23272348    READ_CODE(16, uiCode, "XXX_reserved_zero_35bits[0..15]");
    23282349    READ_CODE(16, uiCode, "XXX_reserved_zero_35bits[16..31]");
    23292350    READ_CODE(3,  uiCode, "XXX_reserved_zero_35bits[32..34]");
    23302351  }
    2331 #endif
    23322352  else
    23332353  {
     
    23402360    READ_CODE(12, uiCode, "XXX_reserved_zero_44bits[32..43]");
    23412361  }
     2362#endif
    23422363}
    23432364
  • 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.