Changeset 1074 in 3DVCSoftware for branches/HTM-12.1-dev0/source/Lib/TLibDecoder/TDecCAVLC.cpp
- Timestamp:
- 21 Oct 2014, 20:39:50 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-12.1-dev0/source/Lib/TLibDecoder/TDecCAVLC.cpp
r1066 r1074 505 505 READ_CODE(8, uiNumDepthValues, "num_depth_values_in_dlt[i]"); // num_entry 506 506 507 #if !H_3D_DELTA_DLT508 if ( pcDLT->getInterViewDltPredEnableFlag( i ) == false ) // Single-view DLT Diff Coding509 #endif510 507 { 511 508 // The condition if( pcVPS->getNumDepthValues(i) > 0 ) is always true since for Single-view Diff Coding, there is at least one depth value in depth component. … … 555 552 } 556 553 557 #if H_3D_DELTA_DLT558 554 if( pcDLT->getInterViewDltPredEnableFlag( i ) ) 559 555 { … … 571 567 pcDLT->setDepthLUTs(i, aiIdx2DepthValue, uiNumDepthValues); 572 568 } 573 #else 574 // store final DLT 575 pcDLT->setDepthLUTs(i, aiIdx2DepthValue, uiNumDepthValues); 576 #endif 569 577 570 } 578 571 } … … 1107 1100 Void TDecCavlc::parseSPSExtension2( TComSPS* pcSPS, Int viewIndex, Bool depthFlag ) 1108 1101 { 1109 #if !MTK_I0099_VPS_EX2 1110 UInt uiCode; 1111 #if H_3D_QTLPC 1112 //GT: This has to go to VPS 1113 if( depthFlag ) 1114 { 1115 READ_FLAG( uiCode, "use_qtl_flag" ); 1116 pcSPS->setUseQTL( uiCode ); 1117 READ_FLAG( uiCode, "use_pc_flag" ); 1118 pcSPS->setUsePC( uiCode ); 1119 } 1120 #endif 1121 #endif 1102 1122 1103 } 1123 1104 #endif … … 2106 2087 { 2107 2088 UInt uiCode; 2108 #if SEC_VPS_CLEANUP_I00902109 2089 for( Int i = 1; i <= pcVPS->getMaxLayersMinus1(); i++ ) 2110 #else2111 for( Int i = 0; i <= pcVPS->getMaxLayersMinus1(); i++ )2112 #endif2113 2090 { 2114 2091 #if H_3D_ARP … … 2119 2096 pcVPS->setSubPULog2Size(i, 0); 2120 2097 #endif 2121 #if !SEC_VPS_CLEANUP_I0090 2122 if ( i != 0 ) 2123 #endif 2124 { 2125 #if MTK_I0099_VPS_EX2 2098 { 2099 #if H_3D_IV_MERGE 2126 2100 READ_FLAG( uiCode, "iv_mv_pred_flag[i]"); pcVPS->setIvMvPredFlag ( i, uiCode == 1 ? true : false ); 2127 #if SEC_HLS_CLEANUP_I01002128 2101 READ_FLAG( uiCode, "iv_mv_scaling_flag[i]"); pcVPS->setIvMvScalingFlag ( i, uiCode == 1 ? true : false ); 2129 2102 #endif 2130 #endif2131 2103 if( !( pcVPS->getDepthId( i ) == 1 ) ) 2132 2104 { 2133 2105 #if H_3D_IV_MERGE 2134 #if !MTK_I0099_VPS_EX22135 READ_FLAG( uiCode, "iv_mv_pred_flag[i]"); pcVPS->setIvMvPredFlag ( i, uiCode == 1 ? true : false );2136 #endif2137 2106 if( !pcVPS->getNumDirectRefLayers(i) ) 2138 2107 { … … 2166 2135 else 2167 2136 { 2168 #if !MTK_I0099_VPS_EX22169 #if H_3D_IV_MERGE2170 if(i!=1)2171 {2172 READ_FLAG( uiCode, "iv_mv_pred_flag[i]"); pcVPS->setIvMvPredFlag ( i, uiCode == 1 ? true : false );2173 if( !pcVPS->getNumDirectRefLayers(i) )2174 {2175 assert( !uiCode );2176 }2177 }2178 #endif2179 #if H_3D_SPIVMP2180 if (i!=1)2181 {2182 READ_UVLC (uiCode, "log2_sub_PU_size_minus3[i]"); pcVPS->setSubPULog2Size(i, uiCode+3);2183 }2184 #endif2185 #endif2186 2137 #if H_3D_IV_MERGE 2187 2138 READ_FLAG( uiCode, "mpi_flag[i]" ); pcVPS->setMPIFlag( i, uiCode == 1 ? true : false ); 2188 #endif2189 #if MTK_I0099_VPS_EX22190 2139 READ_UVLC (uiCode, "log2_mpi_sub_PU_size_minus3[i]"); pcVPS->setSubPUMPILog2Size(i, uiCode+3); 2191 2140 #endif 2192 2141 READ_FLAG( uiCode, "vps_depth_modes_flag[i]" ); pcVPS->setVpsDepthModesFlag( i, uiCode == 1 ? true : false ); 2193 #if SEPARATE_FLAG_I00852142 #if H_3D 2194 2143 READ_FLAG( uiCode, "ivp_flag[i]" ); pcVPS->setIVPFlag( i, uiCode == 1 ? true : false ); 2195 2144 #endif 2196 #if MTK_I0099_VPS_EX22145 #if H_3D_QTLPC 2197 2146 READ_FLAG( uiCode, "lim_qt_pred_flag[i]"); pcVPS->setLimQtPredFlag ( i, uiCode == 1 ? true : false ); 2198 2147 #endif … … 2209 2158 2210 2159 READ_UVLC( uiCamParPrecision, "cp_precision" ); 2211 #if SEC_VPS_CLEANUP_I00902212 2160 for (UInt viewIndex=1; viewIndex<pcVPS->getNumViews(); viewIndex++) 2213 #else2214 for (UInt viewIndex=0; viewIndex<pcVPS->getNumViews(); viewIndex++)2215 #endif2216 2161 { 2217 2162 pcVPS->setCamParPresent ( viewIndex, false ); … … 2235 2180 } 2236 2181 } 2237 #if !MTK_I0099_VPS_EX22238 READ_UVLC (uiCode, "log2_sub_PU_MPI_size_minus3"); pcVPS->setSubPUMPILog2Size( uiCode + 3 );2239 #endif2240 #if !SEC_HLS_CLEANUP_I01002241 READ_FLAG( uiCode, "iv_mv_scaling_flag"); pcVPS->setIvMvScalingFlag( uiCode == 1 ? true : false );2242 #endif2243 2182 } 2244 2183 #endif … … 2865 2804 } 2866 2805 #if H_3D_IC 2867 #if SEC_HLS_CLEANUP_I01002868 2806 else if( rpcSlice->getViewIndex() && ( rpcSlice->getSliceType() == P_SLICE || rpcSlice->getSliceType() == B_SLICE ) && !rpcSlice->getIsDepth() && vps->getNumDirectRefLayers( layerId ) > 0 ) 2869 #else2870 else if( rpcSlice->getViewIndex() && ( rpcSlice->getSliceType() == P_SLICE || rpcSlice->getSliceType() == B_SLICE ) && !rpcSlice->getIsDepth())2871 #endif2872 2807 { 2873 2808 UInt uiCodeTmp = 0; … … 2883 2818 } 2884 2819 #endif 2885 #if MTK_SINGLE_DEPTH_MODE_I00952820 #if H_3D_SINGLE_DEPTH 2886 2821 if(rpcSlice->getIsDepth()) 2887 2822 { … … 3009 2944 3010 2945 #if H_3D 3011 #if LGE_FCO_I01162946 #if H_3D_FCO 3012 2947 if( rpcSlice->getVPS()->hasCamParInSliceHeader( rpcSlice->getViewIndex() ) && rpcSlice->getIsDepth() ) 3013 2948 #else … … 3331 3266 assert(0); 3332 3267 } 3333 #if MTK_SINGLE_DEPTH_MODE_I00953268 #if H_3D_SINGLE_DEPTH 3334 3269 Void TDecCavlc::parseSingleDepthMode( TComDataCU* /*pcCU*/, UInt /*uiAbsPartIdx*/, UInt /*uiDepth*/ ) 3335 3270 {
Note: See TracChangeset for help on using the changeset viewer.