Changeset 561 in 3DVCSoftware for branches/HTM-DEV-2.0-dev3-Zhejiang/source/Lib/TLibDecoder
- Timestamp:
- 11 Aug 2013, 17:37:58 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-DEV-2.0-dev3-Zhejiang/source/Lib/TLibDecoder/TDecSbac.cpp
r557 r561 1255 1255 else 1256 1256 { 1257 #if ZJU_DEPTH_INTRA_MODE_E0204 1258 UInt maxBinNum = 0; 1259 m_pcTDecBinIf->decodeBinEP(symbol); 1260 if( symbol == 1 ) 1261 { 1262 maxBinNum = 3; 1263 } 1264 else 1265 { 1266 maxBinNum = 2; 1267 symbol = 1; 1268 } 1269 while( binNum<maxBinNum && symbol ) 1270 { 1271 ctxDepthMode = puIdx*3 + ( binNum >= 2 ? 2 : binNum ); 1272 m_pcTDecBinIf->decodeBin(symbol,m_cDepthIntraModeSCModel.get(0,0,ctxDepthMode)); 1273 modeCode = (modeCode<<1)+symbol; 1274 binNum++; 1275 } 1276 if( maxBinNum == 3 ) 1277 { 1278 if ( modeCode == 0 ) { dir = PLANAR_IDX; sdcFlag = 1;} 1279 else if ( modeCode == 2 ) { dir = (2* RBC_IDX+DIM_OFFSET); sdcFlag = 0;} 1280 else if ( modeCode == 6 ) { dir = (2*DMM3_IDX+DIM_OFFSET); sdcFlag = 0;} 1281 else if ( modeCode == 7 ) { dir = (2*DMM1_IDX+DIM_OFFSET); sdcFlag = 0;} 1282 } 1283 else 1284 { 1285 if ( modeCode == 0 ) { dir = 5; sdcFlag = 0;} 1286 else if ( modeCode == 2 ) { dir = (2*DMM1_IDX+DIM_OFFSET); sdcFlag = 1;} 1287 else if ( modeCode == 3 ) { dir = (2*DMM4_IDX+DIM_OFFSET); sdcFlag = 0;} 1288 } 1289 #else 1257 1290 ctxDepthMode = puIdx*3 ; 1258 1291 m_pcTDecBinIf->decodeBin( symbol, m_cDepthIntraModeSCModel.get(0,0,ctxDepthMode) ); … … 1323 1356 else if( modeCode == 30 ) { dir = (2* RBC_IDX+DIM_OFFSET); sdcFlag = 0;} 1324 1357 else if( modeCode == 31 ) { dir = (2*DMM2_IDX+DIM_OFFSET); sdcFlag = 0;} 1358 #endif 1325 1359 #endif 1326 1360 #endif
Note: See TracChangeset for help on using the changeset viewer.