Changeset 878 in 3DVCSoftware for branches/HTM-10.1-dev0/source/Lib/TLibDecoder


Ignore:
Timestamp:
27 Mar 2014, 19:51:52 (11 years ago)
Author:
tech
Message:

Cleanups part 3.

Location:
branches/HTM-10.1-dev0/source/Lib/TLibDecoder
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-10.1-dev0/source/Lib/TLibDecoder/TDecCu.cpp

    r877 r878  
    11191119#if QC_PKU_SDC_SPLIT_G0123
    11201120#if HS_TSINGHUA_SDC_SPLIT_G0111
    1121 #if QC_GENERIC_SDC_G0122
    11221121  TComWedgelet* dmm4SegmentationOrg = new TComWedgelet( uiWidth, uiHeight );
    1123 #endif
    11241122#else
    1125 #if QC_GENERIC_SDC_G0122
    11261123  TComWedgelet* dmm4Segmentation = new TComWedgelet( uiWidth, uiHeight );
    1127 #endif
    11281124#endif
    11291125#endif
     
    12101206#endif
    12111207#if !QC_PKU_SDC_SPLIT_G0123
    1212 #if QC_GENERIC_SDC_G0122
    12131208  TComWedgelet* dmm4Segmentation = new TComWedgelet( uiWidth, uiHeight );
    1214 #endif
    12151209#endif
    12161210#if HS_TSINGHUA_SDC_SPLIT_G0111
     
    12221216  {
    12231217    m_pcPrediction->predIntraLumaDepth( pcCU, uiAbsPartIdx, uiLumaPredMode, piPred, uiStride, uiWidth, uiHeight
    1224 #if QC_GENERIC_SDC_G0122
    12251218      , false, dmm4Segmentation
    1226 #endif
    12271219      );
    12281220#if HS_TSINGHUA_SDC_SPLIT_G0111
     
    12921284    uiMaskStride = pcWedgelet->getStride();
    12931285  }
    1294 #if QC_GENERIC_SDC_G0122
    12951286  if( getDimType( uiLumaPredMode ) == DMM4_IDX )
    12961287  {
     
    13041295#endif
    13051296  }
    1306 #endif
    13071297  // get DC prediction for each segment
    13081298  Pel apDCPredValues[2];
     
    13661356    pRecCr += uiStrideC;
    13671357  }
    1368 #if QC_GENERIC_SDC_G0122
    13691358#if HS_TSINGHUA_SDC_SPLIT_G0111
    13701359  dmm4SegmentationOrg->destroy(); delete dmm4SegmentationOrg;
    13711360#else
    13721361  dmm4Segmentation->destroy(); delete dmm4Segmentation;
    1373 #endif
    13741362#endif
    13751363}
  • branches/HTM-10.1-dev0/source/Lib/TLibDecoder/TDecSbac.cpp

    r877 r878  
    8686, m_cDdcFlagSCModel           ( 1,             1,               NUM_DDC_FLAG_CTX              , m_contextModels + m_numContextModels, m_numContextModels)
    8787, m_cDdcDataSCModel           ( 1,             1,               NUM_DDC_DATA_CTX              , m_contextModels + m_numContextModels, m_numContextModels)
    88 #if QC_GENERIC_SDC_G0122
    8988, m_cAngleFlagSCModel         ( 1,             1,               NUM_ANGLE_FLAG_CTX            , m_contextModels + m_numContextModels, m_numContextModels)
    90 #endif
    9189#if H_3D_DIM_DMM
    9290, m_cDmm1DataSCModel          ( 1,             1,               NUM_DMM1_DATA_CTX             , m_contextModels + m_numContextModels, m_numContextModels)
     
    172170  m_cDdcFlagSCModel.initBuffer           ( sliceType, qp, (UChar*)INIT_DDC_FLAG );
    173171  m_cDdcDataSCModel.initBuffer           ( sliceType, qp, (UChar*)INIT_DDC_DATA );
    174 #if QC_GENERIC_SDC_G0122
    175172  m_cAngleFlagSCModel.initBuffer         ( sliceType, qp, (UChar*)INIT_ANGLE_FLAG );
    176 #endif
    177173#if H_3D_DIM_DMM
    178174  m_cDmm1DataSCModel.initBuffer          ( sliceType, qp, (UChar*)INIT_DMM1_DATA );
     
    244240  m_cDdcFlagSCModel.initBuffer           ( eSliceType, iQp, (UChar*)INIT_DDC_FLAG );
    245241  m_cDdcDataSCModel.initBuffer           ( eSliceType, iQp, (UChar*)INIT_DDC_DATA );
    246 #if QC_GENERIC_SDC_G0122
    247242  m_cAngleFlagSCModel.initBuffer         ( eSliceType, iQp, (UChar*)INIT_ANGLE_FLAG );
    248 #endif
    249243#if H_3D_DIM_DMM
    250244  m_cDmm1DataSCModel.initBuffer          ( eSliceType, iQp, (UChar*)INIT_DMM1_DATA );
     
    10171011    }
    10181012    if( pcCU->getLumaIntraDir( absPartIdx+partOffset*j ) < NUM_INTRA_MODE )
    1019 #if H_3D_DIM_SDC
    1020 #if QC_GENERIC_SDC_G0122
    1021       if( 1 ) // This should be cleaned up.
    1022 #else
    1023       if( !pcCU->getSDCFlag( absPartIdx+partOffset*j ) )
    1024 #endif
    1025 #endif
    10261013    {
    10271014#endif
     
    10391026#if H_3D_DIM
    10401027    if( pcCU->getLumaIntraDir( absPartIdx+partOffset*j ) < NUM_INTRA_MODE )
    1041 #if H_3D_DIM_SDC
    1042 #if QC_GENERIC_SDC_G0122
    1043       if( 1 )  // This should be cleaned up.
    1044 #else
    1045       if( !pcCU->getSDCFlag( absPartIdx+partOffset*j ) )
    1046 #endif
    1047 #endif
    10481028    {
    10491029#endif
     
    11501130}
    11511131
    1152 #if QC_GENERIC_SDC_G0122
    11531132Void TDecSbac::parseIntraDepthMode( TComDataCU* pcCU, UInt absPartIdx, UInt depth )
    11541133{
     
    11801159  }
    11811160}
    1182 #else
    1183 Void TDecSbac::parseIntraDepthMode( TComDataCU* pcCU, UInt absPartIdx, UInt depth )
    1184 {
    1185   UInt puIdx = (pcCU->getWidth(absPartIdx) == 64) ? 2 : ( (pcCU->getPartitionSize(absPartIdx) == SIZE_NxN && pcCU->getWidth(absPartIdx) == 8) ? 0 : 1 );
    1186   UInt dir = 0;
    1187   Bool sdcFlag = 0;
    1188   UInt symbol = 1;
    1189   UInt modeCode = 0 ;
    1190   UInt binNum = 0;
    1191   UInt ctxDepthMode = 0;
    1192 
    1193   if( puIdx == 2 )
    1194   {
    1195     {
    1196       ctxDepthMode = puIdx*3 + binNum;
    1197       m_pcTDecBinIf->decodeBin( symbol, m_cDepthIntraModeSCModel.get(0,0,ctxDepthMode) );
    1198       modeCode = (modeCode<<1) + symbol;
    1199       binNum++;
    1200     }
    1201          if( modeCode == 0 ) { dir = PLANAR_IDX; sdcFlag = 1;}
    1202     else if( modeCode == 1 ) { dir = 0;          sdcFlag = 0;}
    1203   }
    1204   else if( puIdx == 0 )
    1205   {
    1206     while( binNum < 1 && symbol )
    1207     {
    1208       ctxDepthMode = puIdx*3 + ((binNum >= 2) ? 2 : binNum);
    1209       m_pcTDecBinIf->decodeBin( symbol, m_cDepthIntraModeSCModel.get(0,0,ctxDepthMode) );
    1210       modeCode = (modeCode<<1) + symbol;
    1211       binNum++;
    1212     }
    1213     if( modeCode == 0 )
    1214     {
    1215       dir = 0;
    1216       sdcFlag = 0;
    1217     }
    1218     else if ( modeCode == 1 )
    1219     {
    1220       dir = (2*DMM1_IDX+DIM_OFFSET);
    1221       sdcFlag = 0;
    1222     }
    1223   }
    1224   else
    1225   {
    1226     while( binNum < 4 && symbol )
    1227     {
    1228       ctxDepthMode = puIdx*3 + ((binNum >= 2) ? 2 : binNum);
    1229       m_pcTDecBinIf->decodeBin( symbol, m_cDepthIntraModeSCModel.get(0,0,ctxDepthMode) );
    1230       modeCode = (modeCode<<1) + symbol;
    1231       binNum++;
    1232     }
    1233     if ( modeCode == 0 )        { dir =  PLANAR_IDX;             sdcFlag = 1;}
    1234     else if ( modeCode == 2 )   { dir = 5;                       sdcFlag = 0;}
    1235     else if ( modeCode == 6 )   { dir = (2*DMM1_IDX+DIM_OFFSET); sdcFlag = 1;}
    1236     else if ( modeCode == 14 )  { dir = (2*DMM1_IDX+DIM_OFFSET); sdcFlag = 0;}
    1237     else if ( modeCode == 15 )  { dir = (2*DMM4_IDX+DIM_OFFSET); sdcFlag = 0;}
    1238 
    1239   }
    1240   pcCU->setLumaIntraDirSubParts( (UChar)dir, absPartIdx, depth );
    1241 #if H_3D_DIM_SDC
    1242   pcCU->setSDCFlagSubParts( sdcFlag, absPartIdx, depth );
    1243 #endif
    1244 }
    1245 #endif
    12461161#endif
    12471162
  • branches/HTM-10.1-dev0/source/Lib/TLibDecoder/TDecSbac.h

    r877 r878  
    213213  ContextModel3DBuffer m_cDdcFlagSCModel;
    214214  ContextModel3DBuffer m_cDdcDataSCModel;
    215 #if QC_GENERIC_SDC_G0122
    216215  ContextModel3DBuffer m_cAngleFlagSCModel;
    217 #endif
    218216#if H_3D_DIM_DMM
    219217  ContextModel3DBuffer m_cDmm1DataSCModel;
Note: See TracChangeset for help on using the changeset viewer.