Changeset 578 in SHVCSoftware for branches/SHM-5.0-dev/source/Lib/TLibEncoder


Ignore:
Timestamp:
29 Jan 2014, 02:28:07 (11 years ago)
Author:
qualcomm
Message:

Moved dpb_size() to new function.

From: Adarsh K. Ramasubramonian <aramasub@…>

Location:
branches/SHM-5.0-dev/source/Lib/TLibEncoder
Files:
2 edited

Legend:

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

    r577 r578  
    10751075#endif
    10761076#if VPS_DPB_SIZE_TABLE
    1077   for(i = 1; i < vps->getNumOutputLayerSets(); i++)
    1078   {
    1079     WRITE_FLAG( vps->getSubLayerFlagInfoPresentFlag( i ), "sub_layer_flag_info_present_flag[i]"); 
    1080     for(j = 0; j < vps->getMaxTLayers(); j++)
    1081     {
    1082       if( j > 0 && vps->getSubLayerFlagInfoPresentFlag(i) )
    1083       {
    1084         WRITE_FLAG( vps->getSubLayerDpbInfoPresentFlag( i, j), "sub_layer_dpb_info_present_flag[i]"); 
    1085       }
    1086       if( vps->getSubLayerDpbInfoPresentFlag(i, j) )
    1087       {
    1088         for(Int k = 0; k < vps->getNumSubDpbs(i); k++)
    1089         {
    1090           WRITE_UVLC( vps->getMaxVpsDecPicBufferingMinus1( i, k, j), "max_vps_dec_pic_buffering_minus1[i][k][j]" );
    1091         }
    1092         WRITE_UVLC( vps->getMaxVpsNumReorderPics( i, j), "max_vps_num_reorder_pics[i][j]" );             
    1093         WRITE_UVLC( vps->getMaxVpsLatencyIncreasePlus1( i, j), "max_vps_latency_increase_plus1[i][j]" );       
    1094       }
    1095     }
    1096   }
     1077  codeVpsDpbSizeTable(vps);
    10971078#endif
    10981079#if VPS_EXTN_DIRECT_REF_LAYERS
     
    12301211#endif
    12311212
     1213}
     1214#endif
     1215#if VPS_DPB_SIZE_TABLE
     1216Void TEncCavlc::codeVpsDpbSizeTable(TComVPS *vps)
     1217{
     1218  for(Int i = 1; i < vps->getNumOutputLayerSets(); i++)
     1219  {
     1220    WRITE_FLAG( vps->getSubLayerFlagInfoPresentFlag( i ), "sub_layer_flag_info_present_flag[i]"); 
     1221    for(Int j = 0; j < vps->getMaxTLayers(); j++)
     1222    {
     1223      if( j > 0 && vps->getSubLayerFlagInfoPresentFlag(i) )
     1224      {
     1225        WRITE_FLAG( vps->getSubLayerDpbInfoPresentFlag( i, j), "sub_layer_dpb_info_present_flag[i]"); 
     1226      }
     1227      if( vps->getSubLayerDpbInfoPresentFlag(i, j) )
     1228      {
     1229        for(Int k = 0; k < vps->getNumSubDpbs(i); k++)
     1230        {
     1231          WRITE_UVLC( vps->getMaxVpsDecPicBufferingMinus1( i, k, j), "max_vps_dec_pic_buffering_minus1[i][k][j]" );
     1232        }
     1233        WRITE_UVLC( vps->getMaxVpsNumReorderPics( i, j), "max_vps_num_reorder_pics[i][j]" );             
     1234        WRITE_UVLC( vps->getMaxVpsLatencyIncreasePlus1( i, j), "max_vps_latency_increase_plus1[i][j]" );       
     1235      }
     1236    }
     1237  }
    12321238}
    12331239#endif
  • branches/SHM-5.0-dev/source/Lib/TLibEncoder/TEncCavlc.h

    r556 r578  
    9898  Void  codeRepFormat           ( RepFormat *repFormat );
    9999#endif
     100#if VPS_DPB_SIZE_TABLE
     101  Void  codeVpsDpbSizeTable      (TComVPS *vps);
     102#endif
    100103  Void  codeVUI                 ( TComVUI *pcVUI, TComSPS* pcSPS );
    101104  Void  codeSPS                 ( TComSPS* pcSPS );
Note: See TracChangeset for help on using the changeset viewer.