Ticket #1464: fix_localRPS.patch
File fix_localRPS.patch, 1.4 KB (added by Tomohiro Ikai, 8 years ago) |
---|
-
source/Lib/TLibCommon/TypeDef.h
38 38 #ifndef __TYPEDEF__ 39 39 #define __TYPEDEF__ 40 40 41 #define FIX_LOCAL_RPS 2 ///< fix localRPS usage in arrangeLongtermPicturesInRPS 42 41 43 #ifndef __COMMONDEF__ 42 44 #error Include CommonDef.h not TypeDef.h 43 45 #endif -
source/Lib/TLibEncoder/TEncGOP.cpp
2511 2511 { 2512 2512 return; 2513 2513 } 2514 #if FIX_LOCAL_RPS == 1 2515 TComReferencePictureSet *rps = pcSlice->getRPS(); 2516 #elif FIX_LOCAL_RPS == 2 2517 TComReferencePictureSet *rps = pcSlice->getLocalRPS(); 2518 if (pcSlice->getRPSidx() != -1) 2519 { 2520 // (*rps)=TComReferencePictureSet(); 2521 memcpy(rps, pcSlice->getRPS(), sizeof(TComReferencePictureSet)); 2522 pcSlice->setRPS(rps); 2523 pcSlice->setRPSidx(-1); 2524 } 2525 #else 2514 2526 // we can only modify the local RPS! 2515 2527 assert (pcSlice->getRPSidx()==-1); 2516 2528 TComReferencePictureSet *rps = pcSlice->getLocalRPS(); 2529 #endif 2517 2530 2518 2531 // Arrange long-term reference pictures in the correct order of LSB and MSB, 2519 2532 // and assign values for pocLSBLT and MSB present flag