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


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/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
Note: See TracChangeset for help on using the changeset viewer.