Changeset 686 in SHVCSoftware for branches/SHM-6-dev/source
- Timestamp:
- 16 Apr 2014, 17:56:01 (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
r677 r686 267 267 Int phaseX = 2*phaseAlignFlag; 268 268 #if P0312_VERT_PHASE_ADJ 269 #if Q0120_PHASE_CALCULATION 270 Int phaseY = 2*phaseAlignFlag; 271 #else 269 272 Int phaseY = vertPhasePositionEnableFlag ? ( vertPhasePositionFlag * 4 ) : ( 2 * phaseAlignFlag ); 273 #endif 270 274 #else 271 275 Int phaseY = 2*phaseAlignFlag; … … 274 278 Int phaseX = 0; 275 279 #if P0312_VERT_PHASE_ADJ 280 #if Q0120_PHASE_CALCULATION 281 Int phaseY = 0; 282 #else 276 283 Int phaseY = (vertPhasePositionEnableFlag?(vertPhasePositionFlag *4):(0)); 284 #endif 277 285 #else 278 286 Int phaseY = 0; 279 287 #endif 280 288 #endif 281 289 282 290 #if ROUNDING_OFFSET 283 291 Int addX = ( ( phaseX * scaleX + 2 ) >> 2 ) + ( 1 << ( shiftX - 5 ) ); … … 288 296 #endif 289 297 298 #if Q0120_PHASE_CALCULATION 299 Int deltaX = (Int)phaseAlignFlag <<3; 300 Int deltaY = (((Int)phaseAlignFlag <<3)>>(Int)vertPhasePositionEnableFlag) + ((Int)vertPhasePositionFlag<<3); 301 #else 290 302 Int deltaX = 4 * phaseX; 291 303 Int deltaY = 4 * phaseY; 292 304 #endif 293 305 Int shiftXM4 = shiftX - 4; 294 306 Int shiftYM4 = shiftY - 4; … … 426 438 Int phaseXC = phaseAlignFlag; 427 439 #if P0312_VERT_PHASE_ADJ 440 #if Q0120_PHASE_CALCULATION 441 Int phaseYC = phaseAlignFlag + 1; 442 #else 428 443 Int phaseYC = vertPhasePositionEnableFlag ? ( vertPhasePositionFlag * 4 ) : ( phaseAlignFlag + 1 ); 444 #endif 429 445 #else 430 446 Int phaseYC = phaseAlignFlag + 1; … … 433 449 Int phaseXC = 0; 434 450 #if P0312_VERT_PHASE_ADJ 451 #if Q0120_PHASE_CALCULATION 452 Int phaseYC = 1; 453 #else 435 454 Int phaseYC = vertPhasePositionEnableFlag ? (vertPhasePositionFlag * 4): 1; 455 #endif 436 456 #else 437 457 Int phaseYC = 1; … … 447 467 #endif 448 468 469 #if Q0120_PHASE_CALCULATION 470 deltaX = (Int)phaseAlignFlag << 2; 471 deltaY = ((( (Int)phaseAlignFlag +1)<<2)>>(Int)vertPhasePositionEnableFlag)+((Int)vertPhasePositionFlag<<3); 472 #else 449 473 deltaX = 4 * phaseXC; 450 474 deltaY = 4 * phaseYC; 475 #endif 451 476 452 477 shiftXM4 = shiftX - 4; -
branches/SHM-6-dev/source/Lib/TLibCommon/TypeDef.h
r684 r686 51 51 52 52 #define P0312_VERT_PHASE_ADJ 1 ///< JCTVC-P0312: vertical phase adjustment in re-sampling process (BoG report) 53 #if P0312_VERT_PHASE_ADJ 54 #define Q0120_PHASE_CALCULATION 1 ///< JCTVC-Q0120 phase offset derivation for combination of spatial scalibility and field coding. 55 #endif 53 56 #define P0130_EOB 1 ///< JCTVC-P0130, set layer Id of EOB NALU to be fixed to 0 54 57 #define P0307_REMOVE_VPS_VUI_OFFSET 1 ///< JCTVC-P0307, remove implementation related to VPS VUI offset signalling
Note: See TracChangeset for help on using the changeset viewer.