Ignore:
Timestamp:
12 Jan 2014, 04:39:11 (10 years ago)
Author:
tech
Message:

Cleanup part 4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-9.2-dev0/source/Lib/TLibEncoder/TEncCavlc.cpp

    r766 r767  
    282282  WRITE_FLAG( pcPPS->getSliceHeaderExtensionPresentFlag() ? 1 : 0, "slice_segment_header_extension_present_flag");
    283283
    284 #if !DLT_DIFF_CODING_IN_PPS
     284#if !H_3D
    285285  WRITE_FLAG( 0, "pps_extension_flag" );
    286286#else
     
    291291}
    292292
    293 #if DLT_DIFF_CODING_IN_PPS
     293#if H_3D
    294294Void  TEncCavlc::codePPSExtension        ( TComPPS* pcPPS )
    295295{
     
    300300  //   Step 1) decoding DLT tables based on the number of depth layers, and
    301301  //   Step 2) mapping DLT tables to the depth layers
    302   // as descripted in the 3D-HEVC WD.
     302  // as described in the 3D-HEVC WD.
    303303  TComVPS* pcVPS = pcPPS->getSPS()->getVPS();
    304304
     
    857857}
    858858#endif
    859 #if !CAM_HLS_F0136_F0045_F0082
    860 if (!depthFlag )
    861 {
    862   WRITE_UVLC( pcSPS->getCamParPrecision(), "cp_precision" );
    863   WRITE_FLAG( pcSPS->hasCamParInSliceHeader() ? 1 : 0, "cp_in_slice_header_flag" );
    864   if( !pcSPS->hasCamParInSliceHeader() )
    865   {
    866     for( UInt uiIndex = 0; uiIndex < viewIndex; uiIndex++ )
    867     {
    868       WRITE_SVLC( pcSPS->getCodedScale    ()[ uiIndex ],                                      "cp_scale" );
    869       WRITE_SVLC( pcSPS->getCodedOffset   ()[ uiIndex ],                                      "cp_off" );
    870       WRITE_SVLC( pcSPS->getInvCodedScale ()[ uiIndex ] + pcSPS->getCodedScale ()[ uiIndex ], "cp_inv_scale_plus_scale" );
    871       WRITE_SVLC( pcSPS->getInvCodedOffset()[ uiIndex ] + pcSPS->getCodedOffset()[ uiIndex ], "cp_inv_off_plus_off" );
    872     }
    873   }
    874 }
    875 #endif
    876859}
    877860#endif
     
    15451528        WRITE_FLAG( pcVPS->getVpsDepthModesFlag( i ) ? 1 : 0 ,          "vps_depth_modes_flag[i]" );
    15461529        //WRITE_FLAG( pcVPS->getLimQtPredFlag    ( i ) ? 1 : 0 ,          "lim_qt_pred_flag[i]"     );
    1547 #if H_3D_DIM_DLT
    1548 #if !DLT_DIFF_CODING_IN_PPS
    1549         if( pcVPS->getVpsDepthModesFlag( i ) )
    1550         {
    1551           WRITE_FLAG( pcVPS->getUseDLTFlag( i ) ? 1 : 0, "dlt_flag[i]" );
    1552         }
    1553         if( pcVPS->getUseDLTFlag( i ) )
    1554         {
    1555           // code mapping
    1556           WRITE_UVLC(pcVPS->getNumDepthValues(i), "num_depth_values_in_dlt[i]");
    1557           for(Int d=0; d<pcVPS->getNumDepthValues(i); d++)
    1558           {
    1559             WRITE_UVLC( pcVPS->idx2DepthValue(i, d), "dlt_depth_value[i][d]" );
    1560           }
    1561         }
    1562 #endif
    1563 #endif
    15641530#if H_3D_INTER_SDC
    15651531        WRITE_FLAG( pcVPS->getInterSDCFlag( i ) ? 1 : 0, "depth_inter_SDC_flag" );
     
    15681534    } 
    15691535  }
    1570 #if CAM_HLS_F0136_F0045_F0082
    15711536  WRITE_UVLC( pcVPS->getCamParPrecision(), "cp_precision" );
    15721537  for (UInt viewIndex=0; viewIndex<pcVPS->getNumViews(); viewIndex++)
     
    15881553    }
    15891554  }
    1590 #endif
    15911555#if H_3D_TMVP
    15921556  WRITE_FLAG( pcVPS->getIvMvScalingFlag( ) ? 1 : 0 ,          "iv_mv_scaling_flag" );
     
    20362000    }
    20372001  }
    2038 #if CAM_HLS_F0044
    2039 #if CAM_HLS_F0136_F0045_F0082
     2002#if H_3D
    20402003  if( pcSlice->getVPS()->hasCamParInSliceHeader( pcSlice->getViewIndex() ) && !pcSlice->getIsDepth() )
    2041 #else
    2042   if( pcSlice->getSPS()->hasCamParInSliceHeader() && !pcSlice->getIsDepth() )
    2043 #endif
    20442004  {
    20452005    for( UInt uiId = 0; uiId < pcSlice->getViewIndex(); uiId++ )
     
    20592019#endif
    20602020  {
    2061 #if !H_3D || CAM_HLS_F0044
    20622021    WRITE_UVLC(0,"slice_header_extension_length");
    2063 #else
    2064     WRITE_UVLC(0,"slice_header_extension_length"); //<- this element needs to be set to the correct value!!
    2065 #if CAM_HLS_F0136_F0045_F0082
    2066     if( pcSlice->getVPS()->hasCamParInSliceHeader( pcSlice->getViewIndex() ) && !pcSlice->getIsDepth() )
    2067 #else
    2068     if( pcSlice->getSPS()->hasCamParInSliceHeader() && !pcSlice->getIsDepth() )
    2069 #endif
    2070     {
    2071       for( UInt uiId = 0; uiId < pcSlice->getViewIndex(); uiId++ )
    2072       {
    2073         WRITE_SVLC( pcSlice->getCodedScale    ()[ uiId ],                                     "cp_scale" );
    2074         WRITE_SVLC( pcSlice->getCodedOffset   ()[ uiId ],                                     "cp_off" );
    2075         WRITE_SVLC( pcSlice->getInvCodedScale ()[ uiId ] + pcSlice->getCodedScale ()[ uiId ], "cp_inv_scale_plus_scale" );
    2076         WRITE_SVLC( pcSlice->getInvCodedOffset()[ uiId ] + pcSlice->getCodedOffset()[ uiId ], "cp_inv_off_plus_off" );
    2077       }
    2078     }
    2079 
    2080     Bool sliceSegmentHeaderExtension2Flag = false;
    2081     WRITE_FLAG( sliceSegmentHeaderExtension2Flag ? 1 : 0 , "slice_segment_header_extension2_flag" );
    2082     if ( sliceSegmentHeaderExtension2Flag )
    2083     {
    2084       WRITE_UVLC(0,"slice_header_extension2_length");
    2085     }
    2086 #endif
    20872022  }
    20882023}
Note: See TracChangeset for help on using the changeset viewer.