Changeset 788 in SHVCSoftware
- Timestamp:
- 6 Jun 2014, 19:34:06 (11 years ago)
- Location:
- branches/SHM-6-dev/source/Lib/TLibCommon
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-6-dev/source/Lib/TLibCommon/TComUpsampleFilter.cpp
r787 r788 327 327 Int bottomEndL = pcUsPic->getHeight() - scalEL.getWindowBottomOffset(); 328 328 Int leftOffset = leftStartL > 0 ? leftStartL : 0; 329 #if N0214_INTERMEDIATE_BUFFER_16BITS330 329 #if O0194_JOINT_US_BITSHIFT 331 330 // g_bitDepthY was set to EL bit-depth, but shift1 should be calculated using BL bit-depth … … 339 338 #else 340 339 Int shift1 = g_bitDepthY - 8; 341 #endif342 340 #endif 343 341 … … 356 354 for( j = 0; j < heightBL ; j++ ) 357 355 { 358 #if N0214_INTERMEDIATE_BUFFER_16BITS359 356 *piDstY = sumLumaHor(piSrcY, coeff) >> shift1; 360 #else361 *piDstY = sumLumaHor(piSrcY, coeff);362 #endif363 357 piSrcY += strideBL; 364 358 piDstY += strideEL; … … 372 366 pcTempPic->setHeight(heightEL); 373 367 374 #if N0214_INTERMEDIATE_BUFFER_16BITS375 368 #if O0194_JOINT_US_BITSHIFT 376 369 Int nShift = 20 - g_bitDepthYLayer[currLayerId]; 377 370 #else 378 371 Int nShift = US_FILTER_PREC*2 - shift1; 379 #endif380 #else381 const Int nShift = US_FILTER_PREC*2;382 372 #endif 383 373 Int iOffset = 1 << (nShift - 1); … … 491 481 heightBL = min<Int>( pcBasePic->getHeight() >> 1, heightEL ); 492 482 493 #if N0214_INTERMEDIATE_BUFFER_16BITS494 483 #if O0194_JOINT_US_BITSHIFT 495 484 // g_bitDepthC was set to EL bit-depth, but shift1 should be calculated using BL bit-depth … … 503 492 #else 504 493 shift1 = g_bitDepthC - 8; 505 #endif506 494 #endif 507 495 … … 522 510 for( j = 0; j < heightBL ; j++ ) 523 511 { 524 #if N0214_INTERMEDIATE_BUFFER_16BITS525 512 *piDstU = sumChromaHor(piSrcU, coeff) >> shift1; 526 513 *piDstV = sumChromaHor(piSrcV, coeff) >> shift1; 527 #else528 *piDstU = sumChromaHor(piSrcU, coeff);529 *piDstV = sumChromaHor(piSrcV, coeff);530 #endif531 514 532 515 piSrcU += strideBL; … … 543 526 pcTempPic->setHeight(heightEL << 1); 544 527 545 #if N0214_INTERMEDIATE_BUFFER_16BITS546 528 #if O0194_JOINT_US_BITSHIFT 547 529 nShift = 20 - g_bitDepthCLayer[currLayerId]; … … 550 532 #endif 551 533 iOffset = 1 << (nShift - 1); 552 #endif553 534 554 535 for( j = 0; j < pcTempPic->getHeight() >> 1; j++ ) -
branches/SHM-6-dev/source/Lib/TLibCommon/TypeDef.h
r787 r788 163 163 #define DERIVE_LAYER_ID_LIST_VARIABLES 1 ///< Derived variables based on the variables in VPS - for use in syntax table parsing 164 164 165 #define N0214_INTERMEDIATE_BUFFER_16BITS 1 ///< JCTVC-N0214: support base layer input more than 8 bits166 165 #define ARBITRARY_SPATIAL_RATIO 1 ///< JCTVC-N0219, JCTVC-N0273: Support arbitrary spatial ratio 167 166
Note: See TracChangeset for help on using the changeset viewer.