Changeset 200 in 3DVCSoftware for branches/HTM-5.0-Nokia/source/Lib/TLibEncoder
- Timestamp:
- 3 Dec 2012, 16:57:58 (12 years ago)
- Location:
- branches/HTM-5.0-Nokia/source/Lib/TLibEncoder
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-5.0-Nokia/source/Lib/TLibEncoder/TEncCfg.h
r197 r200 327 327 #endif 328 328 329 #if HHI_DMM_PRED_TEX && FLEX_CODING_ORDER 330 Bool m_bUseDMM34; 331 #endif 332 329 333 #if OL_QTLIMIT_PREDCODING_B0068 330 334 Bool m_bUseQTLPC; … … 844 848 #endif 845 849 850 #if HHI_DMM_PRED_TEX && FLEX_CODING_ORDER 851 Void setUseDMM34( Bool b) { m_bUseDMM34 = b; } 852 Bool getUseDMM34() { return m_bUseDMM34; } 853 #endif 854 846 855 #if OL_QTLIMIT_PREDCODING_B0068 847 856 Void setUseQTLPC( Bool b ) { m_bUseQTLPC = b; } -
branches/HTM-5.0-Nokia/source/Lib/TLibEncoder/TEncGOP.cpp
r195 r200 363 363 assert( tAppEncTop != NULL ); 364 364 365 366 #if FLEX_CODING_ORDER 367 TComPic * pcTexturePic; 368 if(m_pcEncTop->getIsDepth() == 1) 369 { 370 TComPicYuv * recText; 371 recText = tAppEncTop->getPicYuvFromView(m_pcEncTop->getViewId(), pcSlice->getPOC(), false ,true); 372 if(recText == NULL) 373 { 374 pcSlice->setTexturePic(NULL); 375 } 376 else 377 { 378 pcTexturePic = m_pcEncTop->getIsDepth() ? tAppEncTop->getPicFromView( m_pcEncTop->getViewId(), pcSlice->getPOC(), false ) : NULL; 379 pcSlice->setTexturePic( pcTexturePic ); 380 } 381 } 382 else 383 { 384 pcTexturePic = m_pcEncTop->getIsDepth() ? tAppEncTop->getPicFromView( m_pcEncTop->getViewId(), pcSlice->getPOC(), false ) : NULL; 385 assert( !m_pcEncTop->getIsDepth() || pcTexturePic != NULL ); 386 pcSlice->setTexturePic( pcTexturePic ); 387 } 388 389 #else 365 390 TComPic * const pcTexturePic = m_pcEncTop->getIsDepth() ? tAppEncTop->getPicFromView( m_pcEncTop->getViewId(), pcSlice->getPOC(), false ) : NULL; 366 391 assert( !m_pcEncTop->getIsDepth() || pcTexturePic != NULL ); 367 392 pcSlice->setTexturePic( pcTexturePic ); 368 393 394 #endif 369 395 std::vector<TComPic*> apcInterViewRefPics = tAppEncTop->getInterViewRefPics( m_pcEncTop->getViewId(), pcSlice->getPOC(), m_pcEncTop->getIsDepth(), pcSlice->getSPS() ); 370 396 pcSlice->setRefPicListMvc( rcListPic, apcInterViewRefPics ); … … 466 492 467 493 #if SAIT_VSO_EST_A0033 468 m_pcRdCost->setVideoRecPicYuv( m_pcEncTop->getEncTop()->getPicYuvFromView( pcSlice->getViewId(), pcSlice->getPOC(), false, true ) ); 494 { 495 Bool flag_rec; 496 flag_rec = ((m_pcEncTop->getEncTop()->getPicYuvFromView( pcSlice->getViewId(), pcSlice->getPOC(), false, true) == NULL) ? false: true); 497 m_pcRdCost->setVideoRecPicYuv( m_pcEncTop->getEncTop()->getPicYuvFromView( pcSlice->getViewId(), pcSlice->getPOC(), false, flag_rec ) ); 469 498 m_pcRdCost->setDepthPicYuv ( m_pcEncTop->getEncTop()->getPicYuvFromView( pcSlice->getViewId(), pcSlice->getPOC(), true, false ) ); 499 } 470 500 #endif 471 501 #if LGE_WVSO_A0119 -
branches/HTM-5.0-Nokia/source/Lib/TLibEncoder/TEncSbac.cpp
r195 r200 1076 1076 #endif 1077 1077 #if HHI_DMM_PRED_TEX 1078 1079 #if FLEX_CODING_ORDER 1080 if ( !pcCU->getSlice()->getSPS()->getUseDMM34() ) 1081 { 1082 assert( uiDir != DMM_WEDGE_PREDTEX_D_IDX ); 1083 assert( uiDir != DMM_CONTOUR_PREDTEX_D_IDX ); 1084 } 1085 #endif 1086 1078 1087 if( uiDir == DMM_WEDGE_PREDTEX_D_IDX ) { xCodeWedgePredTexDeltaInfo ( pcCU, uiAbsPartIdx ); } 1079 1088 if( uiDir == DMM_CONTOUR_PREDTEX_D_IDX ) { xCodeContourPredTexDeltaInfo( pcCU, uiAbsPartIdx ); } -
branches/HTM-5.0-Nokia/source/Lib/TLibEncoder/TEncSearch.cpp
r197 r200 2244 2244 #endif 2245 2245 #if HHI_DMM_PRED_TEX 2246 2247 #if FLEX_CODING_ORDER 2248 if ( pcCU->getSlice()->getSPS()->getUseDMM34() ) 2249 { 2250 #endif 2246 2251 UInt uiTexTabIdx = 0; 2247 2252 Int iTexDeltaDC1 = 0; … … 2267 2272 uiRdModeList[ numModesForFullRD++ ] = DMM_CONTOUR_PREDTEX_D_IDX; 2268 2273 } 2274 #if FLEX_CODING_ORDER 2275 } 2276 #endif 2269 2277 #endif 2270 2278 } … … 2311 2319 2312 2320 #if HHI_DMM_WEDGE_INTRA || HHI_DMM_PRED_TEX 2321 #if HHI_DMM_PRED_TEX && FLEX_CODING_ORDER 2322 if( m_pcEncCfg->getIsDepth() && !predIntraLumaDMMAvailable( uiOrgMode, uiWidth, uiHeight, pcCU->getSlice()->getSPS()->getUseDMM34() ) 2323 #if LGE_EDGE_INTRA 2324 && uiOrgMode < EDGE_INTRA_IDX 2325 #endif 2326 ) 2327 2328 #else 2329 2313 2330 if( m_pcEncCfg->getIsDepth() && !predIntraLumaDMMAvailable( uiOrgMode, uiWidth, uiHeight ) 2314 #if LGE_EDGE_INTRA _A00702331 #if LGE_EDGE_INTRA 2315 2332 && uiOrgMode < EDGE_INTRA_IDX 2316 2333 #endif 2317 2334 ) 2335 #endif 2318 2336 { 2319 2337 continue; … … 6466 6484 6467 6485 #if HHI_DMM_WEDGE_INTRA || HHI_DMM_PRED_TEX 6486 #if ((HHI_DMM_WEDGE_INTRA || HHI_DMM_PRED_TEX)&&FLEX_CODING_ORDER) 6487 Bool TEncSearch::predIntraLumaDMMAvailable( UInt uiMode, UInt uiWidth, UInt uiHeight, Bool bDMMAvailable34 ) 6488 #else 6468 6489 Bool TEncSearch::predIntraLumaDMMAvailable( UInt uiMode, UInt uiWidth, UInt uiHeight ) 6490 #endif 6469 6491 { 6470 6492 if( uiMode < NUM_INTRA_MODE ) return true; … … 6494 6516 bDMMAvailable = false; 6495 6517 } 6518 6519 #if FLEX_CODING_ORDER 6520 if ( !bDMMAvailable34 ) 6521 { 6522 bDMMAvailable = false; 6523 } 6524 #endif 6525 6496 6526 } 6497 6527 #endif -
branches/HTM-5.0-Nokia/source/Lib/TLibEncoder/TEncSearch.h
r197 r200 333 333 334 334 #if HHI_DMM_WEDGE_INTRA || HHI_DMM_PRED_TEX 335 335 336 Bool predIntraLumaDMMAvailable ( UInt uiMode, 336 337 UInt uiWidth, 337 UInt uiHeight ); 338 #if HHI_DMM_PRED_TEX && FLEX_CODING_ORDER 339 UInt uiHeight, 340 Bool bDMMAvailable34 ); 341 #else 342 UInt uiHeight ); 343 #endif 344 338 345 Void xGetWedgeDeltaDCsMinDist ( TComWedgelet* pcWedgelet, 339 346 TComDataCU* pcCU, -
branches/HTM-5.0-Nokia/source/Lib/TLibEncoder/TEncTop.cpp
r197 r200 769 769 m_cSPS.setUseDMM( m_bUseDMM ); 770 770 #endif 771 772 #if HHI_DMM_PRED_TEX && FLEX_CODING_ORDER 773 m_cSPS.setUseDMM34( m_bUseDMM34 ); 774 #endif 775 771 776 #if OL_QTLIMIT_PREDCODING_B0068 772 777 m_cSPS.setUseQTLPC( m_bUseQTLPC );
Note: See TracChangeset for help on using the changeset viewer.