Changeset 1196 in 3DVCSoftware for trunk/source/Lib/TLibEncoder/TEncCavlc.cpp
- Timestamp:
- 4 May 2015, 17:47:40 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/Lib/TLibEncoder/TEncCavlc.cpp
r1179 r1196 40 40 #include "SEIwrite.h" 41 41 #include "../TLibCommon/TypeDef.h" 42 #if H_3D _ANNEX_SELECTION_FIX42 #if H_3D 43 43 #include "TEncTop.h" 44 44 #endif … … 862 862 WRITE_FLAG( pcPPS->getPocResetInfoPresentFlag( ) ? 1 : 0 , "poc_reset_info_present_flag" ); 863 863 WRITE_FLAG( pcPPS->getPpsInferScalingListFlag( ) ? 1 : 0 , "pps_infer_scaling_list_flag" ); 864 #if FIX_TICKET_95865 864 if (pcPPS->getPpsInferScalingListFlag()) 866 865 { 867 866 WRITE_CODE( pcPPS->getPpsScalingListRefLayerId( ), 6, "pps_scaling_list_ref_layer_id" ); 868 867 } 869 #else870 WRITE_CODE( pcPPS->getPpsScalingListRefLayerId( ), 6, "pps_scaling_list_ref_layer_id" );871 #endif872 868 WRITE_UVLC( 0, "num_ref_loc_offsets" ); 873 869 WRITE_FLAG( 0 , "colour_mapping_enabled_flag" ); … … 901 897 WRITE_FLAG( sps3dExt->getQtPredFlag( d ) ? 1 : 0 , "qt_pred_flag" ); 902 898 WRITE_FLAG( sps3dExt->getInterSdcFlag( d ) ? 1 : 0 , "inter_sdc_flag" ); 903 #if SEC_DEPTH_INTRA_SKIP_MODE_K0033904 899 WRITE_FLAG( sps3dExt->getDepthIntraSkipFlag( d ) ? 1 : 0 , "intra_skip_flag" ); 905 #else906 WRITE_FLAG( sps3dExt->getIntraSingleFlag( d ) ? 1 : 0 , "intra_single_flag" );907 #endif908 900 } 909 901 } … … 1614 1606 Void TEncCavlc::codeVPS3dExtension( TComVPS* pcVPS ) 1615 1607 { 1616 #if HHI_CAM_PARA_K00521617 1608 WRITE_UVLC( pcVPS->getCpPrecision( ), "cp_precision" ); 1618 1609 for (Int n = 1; n < pcVPS->getNumViews(); n++) … … 1640 1631 } 1641 1632 } 1642 #else1643 WRITE_UVLC( pcVPS->getCamParPrecision(), "cp_precision" );1644 for (UInt viewIndex=1; viewIndex<pcVPS->getNumViews(); viewIndex++)1645 {1646 WRITE_FLAG( pcVPS->getCamParPresent(viewIndex) ? 1 : 0, "cp_present_flag[i]" );1647 if ( pcVPS->getCamParPresent(viewIndex) )1648 {1649 WRITE_FLAG( pcVPS->hasCamParInSliceHeader(viewIndex) ? 1 : 0, "cp_in_slice_segment_header_flag[i]" );1650 if ( !pcVPS->hasCamParInSliceHeader(viewIndex) )1651 {1652 for( UInt uiIndex = 0; uiIndex < viewIndex; uiIndex++ )1653 {1654 WRITE_SVLC( pcVPS->getCodedScale (viewIndex)[ uiIndex ], "vps_cp_scale" );1655 WRITE_SVLC( pcVPS->getCodedOffset (viewIndex)[ uiIndex ], "vps_cp_off" );1656 WRITE_SVLC( pcVPS->getInvCodedScale (viewIndex)[ uiIndex ] + pcVPS->getCodedScale (viewIndex)[ uiIndex ], "vps_cp_inv_scale_plus_scale" );1657 WRITE_SVLC( pcVPS->getInvCodedOffset(viewIndex)[ uiIndex ] + pcVPS->getCodedOffset(viewIndex)[ uiIndex ], "vps_cp_inv_off_plus_off" );1658 }1659 }1660 }1661 }1662 #endif1663 1633 } 1664 1634 #endif … … 1945 1915 #endif 1946 1916 1947 #if HHI_INTER_COMP_PRED_K00521948 1917 #if H_3D 1949 1918 if( getEncTop()->decProcAnnexI() ) … … 1954 1923 } 1955 1924 } 1956 #endif1957 1925 #endif 1958 1926 if(pcSlice->getSPS()->getUseSAO()) … … 2086 2054 } 2087 2055 #if H_3D_IC 2088 #if H_3D_ANNEX_SELECTION_FIX2089 2056 else if( pcSlice->getViewIndex() && ( pcSlice->getSliceType() == P_SLICE || pcSlice->getSliceType() == B_SLICE ) 2090 2057 && !pcSlice->getIsDepth() && vps->getNumRefListLayers( layerId ) > 0 2091 2058 && getEncTop()->decProcAnnexI() 2092 2059 ) 2093 #else2094 else if( pcSlice->getViewIndex() && ( pcSlice->getSliceType() == P_SLICE || pcSlice->getSliceType() == B_SLICE ) && !pcSlice->getIsDepth() && vps->getNumRefListLayers( layerId ) > 0 )2095 #endif2096 2060 { 2097 2061 WRITE_FLAG( pcSlice->getApplyIC() ? 1 : 0, "slice_ic_enable_flag" ); … … 2148 2112 WRITE_FLAG(pcSlice->getLFCrossSliceBoundaryFlag()?1:0, "slice_loop_filter_across_slices_enabled_flag"); 2149 2113 } 2150 #if HHI_CAM_PARA_K00522151 2114 #if H_3D 2152 2115 if (getEncTop()->decProcAnnexI() ) … … 2166 2129 } 2167 2130 #endif 2168 #endif 2169 } 2170 2171 #if !HHI_CAM_PARA_K0052 2172 #if H_3D 2173 #if H_3D_FCO 2174 if( pcSlice->getVPS()->hasCamParInSliceHeader( pcSlice->getViewIndex() ) && pcSlice->getIsDepth() ) 2175 #else 2176 if( pcSlice->getVPS()->hasCamParInSliceHeader( pcSlice->getViewIndex() ) && !pcSlice->getIsDepth() ) 2177 #endif 2178 { 2179 for( UInt uiId = 0; uiId < pcSlice->getViewIndex(); uiId++ ) 2180 { 2181 WRITE_SVLC( pcSlice->getCodedScale ()[ uiId ], "cp_scale" ); 2182 WRITE_SVLC( pcSlice->getCodedOffset ()[ uiId ], "cp_off" ); 2183 WRITE_SVLC( pcSlice->getInvCodedScale ()[ uiId ] + pcSlice->getCodedScale ()[ uiId ], "cp_inv_scale_plus_scale" ); 2184 WRITE_SVLC( pcSlice->getInvCodedOffset()[ uiId ] + pcSlice->getCodedOffset()[ uiId ], "cp_inv_off_plus_off" ); 2185 } 2186 } 2187 #endif 2188 #endif 2131 } 2132 2189 2133 2190 2134 … … 2532 2476 assert(0); 2533 2477 } 2534 2535 #if SEC_DEPTH_INTRA_SKIP_MODE_K0033 2478 #if H_3D 2536 2479 Void TEncCavlc::codeDIS( TComDataCU* pcCU, UInt uiAbsPartIdx ) 2537 2480 { 2538 2481 assert(0); 2539 2482 } 2540 #else2541 #if H_3D_SINGLE_DEPTH2542 Void TEncCavlc::codeSingleDepthMode( TComDataCU* pcCU, UInt uiAbsPartIdx )2543 {2544 assert(0);2545 }2546 #endif2547 2483 #endif 2548 2484
Note: See TracChangeset for help on using the changeset viewer.