Changeset 662 in SHVCSoftware for branches/SHM-6-dev/source/Lib/TLibEncoder


Ignore:
Timestamp:
10 Apr 2014, 02:02:07 (11 years ago)
Author:
sony
Message:

Following two macros are introduced
Q0195_REP_FORMAT_CLEANUP : JCTVC-Q0195 restructureing of rep_format() signaling
REP_FORMAT_FIX : update_rep_format_flag should be inferred to be equal to 0
by ohji.nakagami@…

File:
1 edited

Legend:

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

    r660 r662  
    10721072
    10731073#if REPN_FORMAT_IN_VPS
     1074#if Q0195_REP_FORMAT_CLEANUP
     1075  WRITE_UVLC( vps->getVpsNumRepFormats() - 1, "vps_num_rep_formats_minus1" );
     1076  for(i = 0; i < vps->getVpsNumRepFormats(); i++)
     1077  {
     1078    // Write rep_format_structures
     1079    codeRepFormat( vps->getVpsRepFormat(i) );
     1080  }
     1081
     1082  if ( vps->getVpsNumRepFormats() > 1 )
     1083    WRITE_FLAG( vps->getRepFormatIdxPresentFlag(), "rep_format_idx_present_flag");
     1084
     1085  if( vps->getRepFormatIdxPresentFlag() )
     1086  {
     1087    for(i = 1; i < vps->getMaxLayers(); i++)
     1088    {
     1089      Int numBits = 1;
     1090      while ((1 << numBits) < (vps->getVpsNumRepFormats()))
     1091      {
     1092        numBits++;
     1093      }
     1094      WRITE_CODE( vps->getVpsRepFormatIdx(i), numBits, "vps_rep_format_idx[i]" );
     1095    }
     1096  }
     1097#else
    10741098  WRITE_FLAG( vps->getRepFormatIdxPresentFlag(), "rep_format_idx_present_flag");
    10751099
     
    11181142    }
    11191143  }
     1144#endif
    11201145#endif
    11211146
Note: See TracChangeset for help on using the changeset viewer.