Changeset 1487 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibCommon
- Timestamp:
- 24 Nov 2015, 03:13:36 (9 years ago)
- Location:
- branches/SHM-dev/source/Lib/TLibCommon
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified branches/SHM-dev/source/Lib/TLibCommon/TComPic.cpp ¶
r1485 r1487 292 292 Void TComPic::copyUpsampledPictureYuv(TComPicYuv* pcPicYuvIn, TComPicYuv* pcPicYuvOut) 293 293 { 294 #if SCALABLE_REXT 295 Int upsampledRowWidthLuma = pcPicYuvOut->getStride(COMPONENT_Y); // 2 * pcPicYuvOut->getLumaMargin() + pcPicYuvOut->getWidth(); 296 copyOnetoOnePicture( 297 pcPicYuvIn->getAddr(COMPONENT_Y), 298 pcPicYuvOut->getAddr(COMPONENT_Y), 299 pcPicYuvOut->getWidth(COMPONENT_Y), 300 pcPicYuvOut->getHeight(COMPONENT_Y), 301 upsampledRowWidthLuma); 302 303 if(pcPicYuvOut->getChromaFormat() != CHROMA_400) 304 { 305 Int upsampledRowWidthChroma = pcPicYuvOut->getStride(COMPONENT_Cb); //2 * pcPicYuvOut->getChromaMargin() + (pcPicYuvOut->getWidth()>>1); 306 307 copyOnetoOnePicture( 308 pcPicYuvIn->getAddr(COMPONENT_Cr), 309 pcPicYuvOut->getAddr(COMPONENT_Cr), 310 pcPicYuvOut->getWidth(COMPONENT_Cr), 311 pcPicYuvOut->getHeight(COMPONENT_Cr), 312 upsampledRowWidthChroma); 313 copyOnetoOnePicture( 314 pcPicYuvIn->getAddr(COMPONENT_Cb), 315 pcPicYuvOut->getAddr(COMPONENT_Cb), 316 pcPicYuvOut->getWidth(COMPONENT_Cb), 317 pcPicYuvOut->getHeight(COMPONENT_Cb), 318 upsampledRowWidthChroma); 319 } 320 #else 294 321 Int upsampledRowWidthLuma = pcPicYuvOut->getStride(COMPONENT_Y); // 2 * pcPicYuvOut->getLumaMargin() + pcPicYuvOut->getWidth(); 295 322 Int upsampledRowWidthCroma = pcPicYuvOut->getStride(COMPONENT_Cb); //2 * pcPicYuvOut->getChromaMargin() + (pcPicYuvOut->getWidth()>>1); … … 313 340 pcPicYuvOut->getHeight(COMPONENT_Y)>>1, 314 341 upsampledRowWidthCroma); 342 #endif 315 343 } 316 344 -
TabularUnified branches/SHM-dev/source/Lib/TLibCommon/TComUpsampleFilter.cpp ¶
r1431 r1487 85 85 if( !resamplingPhase.phasePresentFlag ) 86 86 { 87 #if SCALABLE_REXT 88 if(chromaFormatIdc == 3) 89 { 90 phaseVerChroma = 0; 91 } 92 else 93 { 94 #endif 87 95 Int refRegionHeight = heightBL - windowRL.getWindowTopOffset() - windowRL.getWindowBottomOffset(); 88 96 phaseVerChroma = (4 * heightEL + (refRegionHeight >> 1)) / refRegionHeight - 4; 97 #if SCALABLE_REXT 98 } 99 #endif 89 100 } 90 101 … … 139 150 } 140 151 152 #if SCALABLE_REXT 153 if(chromaFormatIdc != 0) 154 { 155 #endif 141 156 widthEL >>= 1; 142 157 heightEL >>= 1; … … 177 192 piDstV += strideEL; 178 193 } 194 #if SCALABLE_REXT 195 } 196 #endif 179 197 } 180 198 else // general resampling process … … 290 308 //========== UV component upsampling =========== 291 309 310 #if SCALABLE_REXT 311 if(chromaFormatIdc != 0) 312 { 313 #endif 292 314 widthEL >>= 1; 293 315 heightEL >>= 1; … … 396 418 } 397 419 } 420 #if SCALABLE_REXT 421 } 422 #endif 398 423 } 399 424 pcUsPic->setBorderExtension(false); -
TabularUnified branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h ¶
r1486 r1487 48 48 49 49 #if SVC_EXTENSION 50 #define SCALABLE_REXT 1 51 #define FORMATIDX_CHECK 1 52 50 53 #define MAX_LAYERS 8 ///< max number of layers the codec is supposed to handle 51 54 … … 197 200 // This can be enabled by the makefile 198 201 #ifndef RExt__HIGH_BIT_DEPTH_SUPPORT 199 #define RExt__HIGH_BIT_DEPTH_SUPPORT 0///< 0 (default) use data type definitions for 8-10 bit video, 1 = use larger data types to allow for up to 16-bit video (originally developed as part of N0188)202 #define RExt__HIGH_BIT_DEPTH_SUPPORT 1 ///< 0 (default) use data type definitions for 8-10 bit video, 1 = use larger data types to allow for up to 16-bit video (originally developed as part of N0188) 200 203 #endif 201 204 … … 644 647 SCALABLEMAIN = 7, 645 648 SCALABLEMAIN10 = 8, 649 #if SCALABLE_REXT 650 SCALABLEREXT = 10 651 #endif 646 652 #endif 647 653 };
Note: See TracChangeset for help on using the changeset viewer.