Changeset 964 in SHVCSoftware


Ignore:
Timestamp:
6 Jan 2015, 06:46:15 (10 years ago)
Author:
qualcomm
Message:

Fixing implementation of signalling Scalable main and scalable main 10 profiles
To be aligned with implementation in SHM-upgrade

submitted by Hendry (fhendry@…)

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

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h

    r953 r964  
    812812    MULTIVIEWMAIN = 6,
    813813    SCALABLEMAIN = 7,
    814     SCALABLEMAIN10 = 7,
     814    SCALABLEMAIN10 = 8,
    815815#endif
    816816  };
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r954 r964  
    41744174  ptl->setFrameOnlyConstraintFlag(uiCode ? true : false);
    41754175
     4176#if MULTIPLE_PTL_SUPPORT
     4177  READ_FLAG(    uiCode, "general_max_12bit_constraint_flag" ); assert (uiCode == 1);
     4178  READ_FLAG(    uiCode, "general_max_10bit_constraint_flag" ); assert (uiCode == 1);
     4179  READ_FLAG(    uiCode, "general_max_8bit_constraint_flag"  ); ptl->setProfileIdc  ((uiCode) ? Profile::SCALABLEMAIN : Profile::SCALABLEMAIN10);
     4180  READ_FLAG(    uiCode, "general_max_422chroma_constraint_flag"  ); assert (uiCode == 1);
     4181  READ_FLAG(    uiCode, "general_max_420chroma_constraint_flag"  ); assert (uiCode == 1);
     4182  READ_FLAG(    uiCode, "general_max_monochrome_constraint_flag" ); assert (uiCode == 0);
     4183  READ_FLAG(    uiCode, "general_intra_constraint_flag"); assert (uiCode == 0);
     4184  READ_FLAG(    uiCode, "general_one_picture_only_constraint_flag"); assert (uiCode == 0);
     4185  READ_FLAG(    uiCode, "general_lower_bit_rate_constraint_flag"); assert (uiCode == 1);
     4186  READ_CODE(16, uiCode, "XXX_reserved_zero_35bits[0..15]");
     4187  READ_CODE(16, uiCode, "XXX_reserved_zero_35bits[16..31]");
     4188  READ_CODE(3,  uiCode, "XXX_reserved_zero_35bits[32..34]");
     4189#else
    41764190  READ_CODE(16, uiCode, "XXX_reserved_zero_44bits[0..15]");
    41774191  READ_CODE(16, uiCode, "XXX_reserved_zero_44bits[16..31]");
    41784192  READ_CODE(12, uiCode, "XXX_reserved_zero_44bits[32..43]");
     4193#endif
    41794194}
    41804195
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r954 r964  
    26272627  WRITE_CODE( ptl->getProfileSpace(), 2 ,     "XXX_profile_space[]");
    26282628  WRITE_FLAG( ptl->getTierFlag    (),         "XXX_tier_flag[]"    );
     2629#if MULTIPLE_PTL_SUPPORT
     2630  WRITE_CODE( (ptl->getProfileIdc() == Profile::SCALABLEMAIN || ptl->getProfileIdc() == Profile::SCALABLEMAIN10) ? 7 : Int(ptl->getProfileIdc()), 5 ,  "XXX_profile_idc[]"  );
     2631#else
    26292632  WRITE_CODE( ptl->getProfileIdc  (), 5 ,     "XXX_profile_idc[]"  );   
     2633#endif
    26302634  for(Int j = 0; j < 32; j++)
    26312635  {
     
    26372641  WRITE_FLAG(ptl->getNonPackedConstraintFlag(), "general_non_packed_constraint_flag");
    26382642  WRITE_FLAG(ptl->getFrameOnlyConstraintFlag(), "general_frame_only_constraint_flag");
    2639  
     2643
     2644#if MULTIPLE_PTL_SUPPORT
     2645  WRITE_FLAG(true, "general_max_12bit_constraint_flag");
     2646  WRITE_FLAG(true, "general_max_10bit_constraint_flag");
     2647  WRITE_FLAG((ptl->getProfileIdc() == Profile::SCALABLEMAIN) ? true : false, "general_max_8bit_constraint_flag");
     2648  WRITE_FLAG(true, "general_max_422chroma_constraint_flag");
     2649  WRITE_FLAG(true, "general_max_420chroma_constraint_flag");
     2650  WRITE_FLAG(false, "general_max_monochrome_constraint_flag");
     2651  WRITE_FLAG(false, "general_intra_constraint_flag");
     2652  WRITE_FLAG(false, "general_one_picture_only_constraint_flag");
     2653  WRITE_FLAG(true, "general_lower_bit_rate_constraint_flag");
     2654  WRITE_CODE(0 , 16, "XXX_reserved_zero_35bits[0..15]");
     2655  WRITE_CODE(0 , 16, "XXX_reserved_zero_35bits[16..31]");
     2656  WRITE_CODE(0 ,  3, "XXX_reserved_zero_35bits[32..34]");
     2657#else
    26402658  WRITE_CODE(0 , 16, "XXX_reserved_zero_44bits[0..15]");
    26412659  WRITE_CODE(0 , 16, "XXX_reserved_zero_44bits[16..31]");
    26422660  WRITE_CODE(0 , 12, "XXX_reserved_zero_44bits[32..43]");
     2661#endif
    26432662}
    26442663
Note: See TracChangeset for help on using the changeset viewer.