Changeset 1090 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibEncoder
- Timestamp:
- 1 Jul 2015, 00:53:31 (10 years ago)
- Location:
- branches/SHM-dev/source/Lib/TLibEncoder
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibEncoder/TEnc3DAsymLUT.cpp
r1029 r1090 690 690 TComSlice * pSlice = pCurPic->getSlice(pCurPic->getCurrSliceIdx()); 691 691 UInt refLayerId = pSlice->getVPS()->getRefLayerId(pSlice->getLayerId(), refLayerIdc); 692 #if MOVE_SCALED_OFFSET_TO_PPS693 692 const Window &scalEL = pSlice->getPPS()->getScaledRefLayerWindowForLayer(refLayerId); 694 #else695 const Window &scalEL = pSlice->getSPS()->getScaledRefLayerWindowForLayer(refLayerId);696 #endif697 693 TComPicYuv *pcRecPicBL = pSlice->getBaseColPic(refLayerIdc)->getPicYuvRec(); 698 694 // borders of down-sampled picture -
branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r1085 r1090 316 316 #endif 317 317 318 #if REF_REGION_OFFSET319 318 WRITE_UVLC( pcPPS->getNumRefLayerLocationOffsets(), "num_ref_loc_offsets" ); 320 319 for(Int k = 0; k < pcPPS->getNumRefLayerLocationOffsets(); k++) … … 339 338 WRITE_SVLC( refWindow.getWindowBottomOffset() >> 1, "ref_region_bottom_offset" ); 340 339 } 341 #if R0209_GENERIC_PHASE342 340 WRITE_FLAG( pcPPS->getResamplePhaseSetPresentFlag(k) ? 1 : 0, "resample_phase_set_present_flag" ); 343 341 if (pcPPS->getResamplePhaseSetPresentFlag(k)) … … 348 346 WRITE_UVLC( pcPPS->getPhaseVerChroma(k) + 8, "phase_ver_chroma_plus8" ); 349 347 } 350 #endif351 348 } 352 #else353 #if MOVE_SCALED_OFFSET_TO_PPS354 WRITE_UVLC( pcPPS->getNumScaledRefLayerOffsets(), "num_scaled_ref_layer_offsets" );355 for(Int k = 0; k < pcPPS->getNumScaledRefLayerOffsets(); k++)356 {357 Window scaledWindow = pcPPS->getScaledRefLayerWindow(k);358 #if O0098_SCALED_REF_LAYER_ID359 WRITE_CODE( pcPPS->getScaledRefLayerId(k), 6, "scaled_ref_layer_id" );360 #endif361 WRITE_SVLC( scaledWindow.getWindowLeftOffset() >> 1, "scaled_ref_layer_left_offset" );362 WRITE_SVLC( scaledWindow.getWindowTopOffset() >> 1, "scaled_ref_layer_top_offset" );363 WRITE_SVLC( scaledWindow.getWindowRightOffset() >> 1, "scaled_ref_layer_right_offset" );364 WRITE_SVLC( scaledWindow.getWindowBottomOffset() >> 1, "scaled_ref_layer_bottom_offset" );365 }366 #endif367 #endif368 349 #if Q0048_CGS_3D_ASYMLUT 369 350 bits = getNumberOfWrittenBits(); … … 1268 1249 } 1269 1250 } 1270 #if P0312_VERT_PHASE_ADJ1271 for(Int i = 0; i < pcSlice->getActiveNumILRRefIdx(); i++ )1272 {1273 UInt refLayerIdc = pcSlice->getInterLayerPredLayerIdc(i);1274 if( pcSlice->getSPS()->getVertPhasePositionEnableFlag(refLayerIdc) )1275 {1276 WRITE_FLAG( pcSlice->getVertPhasePositionFlag(refLayerIdc), "vert_phase_position_flag" );1277 }1278 }1279 #endif1280 1251 #endif //SVC_EXTENSION 1281 1252 … … 2549 2520 } 2550 2521 #endif 2551 #if O0215_PHASE_ALIGNMENT2552 WRITE_FLAG(vps->getPhaseAlignFlag(), "cross_layer_phase_alignment_flag" );2553 #endif2554 2522 #if !IRAP_ALIGN_FLAG_IN_VPS_VUI 2555 2523 WRITE_FLAG(vps->getCrossLayerIrapAlignFlag(), "cross_layer_irap_aligned_flag"); … … 2993 2961 WRITE_FLAG(vps->getHigherLayerIrapSkipFlag(), "higher_layer_irap_skip_flag" ); 2994 2962 #endif 2995 #endif2996 #if P0312_VERT_PHASE_ADJ2997 WRITE_FLAG( vps->getVpsVuiVertPhaseInUseFlag(), "vps_vui_vert_phase_in_use_flag" );2998 2963 #endif 2999 2964 #if N0160_VUI_EXT_ILP_REF … … 3122 3087 // Vertical MV component restriction is not used in SHVC CTC 3123 3088 WRITE_FLAG( 0, "inter_view_mv_vert_constraint_flag" ); 3124 3125 #if !MOVE_SCALED_OFFSET_TO_PPS3126 if( pcSPS->getLayerId() > 0 )3127 {3128 WRITE_UVLC( pcSPS->getNumScaledRefLayerOffsets(), "num_scaled_ref_layer_offsets" );3129 for(Int i = 0; i < pcSPS->getNumScaledRefLayerOffsets(); i++)3130 {3131 Window scaledWindow = pcSPS->getScaledRefLayerWindow(i);3132 #if O0098_SCALED_REF_LAYER_ID3133 WRITE_CODE( pcSPS->getScaledRefLayerId(i), 6, "scaled_ref_layer_id" );3134 #endif3135 WRITE_SVLC( scaledWindow.getWindowLeftOffset() >> 1, "scaled_ref_layer_left_offset" );3136 WRITE_SVLC( scaledWindow.getWindowTopOffset() >> 1, "scaled_ref_layer_top_offset" );3137 WRITE_SVLC( scaledWindow.getWindowRightOffset() >> 1, "scaled_ref_layer_right_offset" );3138 WRITE_SVLC( scaledWindow.getWindowBottomOffset() >> 1, "scaled_ref_layer_bottom_offset" );3139 #if P0312_VERT_PHASE_ADJ3140 WRITE_FLAG( scaledWindow.getVertPhasePositionEnableFlag(), "vert_phase_position_enable_flag" );3141 #endif3142 }3143 }3144 #endif3145 3089 } 3146 3090 #endif //SVC_EXTENSION -
branches/SHM-dev/source/Lib/TLibEncoder/TEncCfg.h
r1089 r1090 489 489 490 490 Window &getConformanceWindow() { return m_conformanceWindow; } 491 #if P0312_VERT_PHASE_ADJ && !R0209_GENERIC_PHASE492 Void setConformanceWindow (Int confLeft, Int confRight, Int confTop, Int confBottom ) { m_conformanceWindow.setWindow (confLeft, confRight, confTop, confBottom, false); }493 #else494 491 Void setConformanceWindow (Int confLeft, Int confRight, Int confTop, Int confBottom ) { m_conformanceWindow.setWindow (confLeft, confRight, confTop, confBottom); } 495 #endif496 492 497 493 Void setFramesToBeEncoded ( Int i ) { m_framesToBeEncoded = i; } -
branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r1089 r1090 1477 1477 #endif 1478 1478 1479 #if REF_REGION_OFFSET1480 1479 const Window &windowRL = m_pcEncTop->getRefLayerWindowForLayer(pcSlice->getVPS()->getRefLayerId(m_layerId, refLayerIdc)); 1481 1480 Int widthBL = pcSlice->getBaseColPic(refLayerIdc)->getPicYuvRec()->getWidth(COMPONENT_Y) - windowRL.getWindowLeftOffset() - windowRL.getWindowRightOffset(); 1482 1481 Int heightBL = pcSlice->getBaseColPic(refLayerIdc)->getPicYuvRec()->getHeight(COMPONENT_Y) - windowRL.getWindowTopOffset() - windowRL.getWindowBottomOffset(); 1483 #else1484 Int widthBL = pcSlice->getBaseColPic(refLayerIdc)->getPicYuvRec()->getWidth(COMPONENT_Y);1485 Int heightBL = pcSlice->getBaseColPic(refLayerIdc)->getPicYuvRec()->getHeight(COMPONENT_Y);1486 #if Q0200_CONFORMANCE_BL_SIZE1487 Int chromaFormatIdc = pcSlice->getBaseColPic(refLayerIdc)->getSlice(0)->getChromaFormatIdc();1488 const Window &confBL = pcSlice->getBaseColPic(refLayerIdc)->getConformanceWindow();1489 widthBL -= ( confBL.getWindowLeftOffset() + confBL.getWindowRightOffset() ) * TComSPS::getWinUnitX( chromaFormatIdc );1490 heightBL -= ( confBL.getWindowTopOffset() + confBL.getWindowBottomOffset() ) * TComSPS::getWinUnitY( chromaFormatIdc );1491 #endif1492 #endif1493 1482 Int widthEL = pcPic->getPicYuvRec()->getWidth(COMPONENT_Y) - scalEL.getWindowLeftOffset() - scalEL.getWindowRightOffset(); 1494 1483 Int heightEL = pcPic->getPicYuvRec()->getHeight(COMPONENT_Y) - scalEL.getWindowTopOffset() - scalEL.getWindowBottomOffset(); 1495 1484 1496 #if RESAMPLING_FIX1497 #if REF_REGION_OFFSET1498 1485 // conformance check: the values of RefLayerRegionWidthInSamplesY, RefLayerRegionHeightInSamplesY, ScaledRefRegionWidthInSamplesY and ScaledRefRegionHeightInSamplesY shall be greater than 0 1499 1486 assert(widthEL > 0 && heightEL > 0 && widthBL > 0 && widthEL > 0); … … 1502 1489 assert(widthEL >= widthBL && heightEL >= heightBL); 1503 1490 1504 #if R0209_GENERIC_PHASE1505 1491 // conformance check: when ScaledRefRegionWidthInSamplesY is equal to RefLayerRegionWidthInSamplesY, PhaseHorY shall be equal to 0, when ScaledRefRegionWidthInSamplesC is equal to RefLayerRegionWidthInSamplesC, PhaseHorC shall be equal to 0, when ScaledRefRegionHeightInSamplesY is equal to RefLayerRegionHeightInSamplesY, PhaseVerY shall be equal to 0, and when ScaledRefRegionHeightInSamplesC is equal to RefLayerRegionHeightInSamplesC, PhaseVerC shall be equal to 0. 1506 1492 Bool phaseSetPresentFlag; … … 1510 1496 assert( ( (widthEL != widthBL) || (phaseHorLuma == 0 && phaseHorChroma == 0) ) 1511 1497 && ( (heightEL != heightBL) || (phaseVerLuma == 0 && phaseVerChroma == 0) ) ); 1512 #endif1513 #endif1514 #endif1515 1498 1516 1499 g_mvScalingFactor[refLayerIdc][0] = widthEL == widthBL ? 4096 : Clip3(-4096, 4095, ((widthEL << 8) + (widthBL >> 1)) / widthBL); … … 1556 1539 if( pcSlice->getVPS()->isSamplePredictionType( pcSlice->getVPS()->getLayerIdxInVps(m_layerId), pcSlice->getVPS()->getLayerIdxInVps(refLayerId) ) ) 1557 1540 { 1558 #if P0312_VERT_PHASE_ADJ1559 //when PhasePositionEnableFlag is equal to 1, set vertPhasePositionFlag to 0 if BL is top field and 1 if bottom1560 if( scalEL.getVertPhasePositionEnableFlag() )1561 {1562 pcSlice->setVertPhasePositionFlag( pcSlice->getPOC()%2, refLayerIdc );1563 }1564 #endif1565 #if O0215_PHASE_ALIGNMENT_REMOVAL1566 1541 m_pcPredSearch->upsampleBasePic( pcSlice, refLayerIdc, pcPic->getFullPelBaseRec(refLayerIdc), pBaseColRec, pcPic->getPicYuvRec() ); 1567 #else1568 #if O0215_PHASE_ALIGNMENT1569 #if O0194_JOINT_US_BITSHIFT1570 #if Q0048_CGS_3D_ASYMLUT1571 m_pcPredSearch->upsampleBasePic( pcSlice, refLayerIdc, pcPic->getFullPelBaseRec(refLayerIdc), pBaseColRec, pcPic->getPicYuvRec(), pcSlice->getVPS()->getPhaseAlignFlag() );1572 #else1573 m_pcPredSearch->upsampleBasePic( pcSlice, refLayerIdc, pcPic->getFullPelBaseRec(refLayerIdc), pcSlice->getBaseColPic(refLayerIdc)->getPicYuvRec(), pcPic->getPicYuvRec(), pcSlice->getVPS()->getPhaseAlignFlag() );1574 #endif1575 #else1576 #if Q0048_CGS_3D_ASYMLUT1577 m_pcPredSearch->upsampleBasePic( refLayerIdc, pcPic->getFullPelBaseRec(refLayerIdc), pBaseColRec, pcPic->getPicYuvRec(), scalEL, pcSlice->getVPS()->getPhaseAlignFlag() );1578 #else1579 m_pcPredSearch->upsampleBasePic( refLayerIdc, pcPic->getFullPelBaseRec(refLayerIdc), pcSlice->getBaseColPic(refLayerIdc)->getPicYuvRec(), pcPic->getPicYuvRec(), scalEL, pcSlice->getVPS()->getPhaseAlignFlag() );1580 #endif1581 #endif1582 #else1583 #if O0194_JOINT_US_BITSHIFT1584 #if Q0048_CGS_3D_ASYMLUT1585 #if REF_REGION_OFFSET1586 m_pcPredSearch->upsampleBasePic( pcSlice, refLayerIdc, pcPic->getFullPelBaseRec(refLayerIdc), pBaseColRec, pcPic->getPicYuvRec(), scalEL, altRL );1587 #else1588 m_pcPredSearch->upsampleBasePic( pcSlice, refLayerIdc, pcPic->getFullPelBaseRec(refLayerIdc), pBaseColRec, pcPic->getPicYuvRec(), scalEL );1589 #endif1590 #else1591 m_pcPredSearch->upsampleBasePic( pcSlice, refLayerIdc, pcPic->getFullPelBaseRec(refLayerIdc), pcSlice->getBaseColPic(refLayerIdc)->getPicYuvRec(), pcPic->getPicYuvRec(), scalEL );1592 #endif1593 #else1594 #if Q0048_CGS_3D_ASYMLUT1595 m_pcPredSearch->upsampleBasePic( refLayerIdc, pcPic->getFullPelBaseRec(refLayerIdc), pBaseColRec, pcPic->getPicYuvRec(), scalEL );1596 #else1597 m_pcPredSearch->upsampleBasePic( refLayerIdc, pcPic->getFullPelBaseRec(refLayerIdc), pcSlice->getBaseColPic(refLayerIdc)->getPicYuvRec(), pcPic->getPicYuvRec(), scalEL );1598 #endif1599 #endif1600 #endif1601 #endif1602 1542 } 1603 1543 } -
branches/SHM-dev/source/Lib/TLibEncoder/TEncTop.cpp
r1068 r1090 619 619 for(UInt i = 0; i < m_cVPS.getNumDirectRefLayers( m_layerId ); i++ ) 620 620 { 621 #if MOVE_SCALED_OFFSET_TO_PPS622 621 #if O0098_SCALED_REF_LAYER_ID 623 622 const Window scalEL = getPPS()->getScaledRefLayerWindowForLayer(m_cVPS.getRefLayerId(m_layerId, i)); … … 625 624 const Window scalEL = getPPS()->getScaledRefLayerWindow(i); 626 625 #endif 627 #else628 #if O0098_SCALED_REF_LAYER_ID629 const Window scalEL = getSPS()->getScaledRefLayerWindowForLayer(m_cVPS.getRefLayerId(m_layerId, i));630 #else631 const Window scalEL = getSPS()->getScaledRefLayerWindow(i);632 #endif633 #endif634 #if REF_REGION_OFFSET635 626 const Window altRL = getPPS()->getRefLayerWindowForLayer(m_cVPS.getRefLayerId(m_layerId, i)); 636 #if RESAMPLING_FIX637 627 Bool equalOffsets = scalEL.hasEqualOffset(altRL); 638 #if R0209_GENERIC_PHASE639 628 Bool zeroPhase = getPPS()->hasZeroResamplingPhase(m_cVPS.getRefLayerId(m_layerId, i)); 640 #endif641 #else642 Bool zeroOffsets = ( scalEL.getWindowLeftOffset() == 0 && scalEL.getWindowRightOffset() == 0 && scalEL.getWindowTopOffset() == 0 && scalEL.getWindowBottomOffset() == 0643 && altRL.getWindowLeftOffset() == 0 && altRL.getWindowRightOffset() == 0 && altRL.getWindowTopOffset() == 0 && altRL.getWindowBottomOffset() == 0);644 #endif645 #else646 Bool zeroOffsets = ( scalEL.getWindowLeftOffset() == 0 && scalEL.getWindowRightOffset() == 0 && scalEL.getWindowTopOffset() == 0 && scalEL.getWindowBottomOffset() == 0 );647 #endif648 629 649 630 #if VPS_EXTN_DIRECT_REF_LAYERS … … 665 646 #else 666 647 if( m_iSourceWidth != pcEncTopBase->getSourceWidth() || m_iSourceHeight != pcEncTopBase->getSourceHeight() || !sameBitDepths 667 #if REF_REGION_OFFSET && RESAMPLING_FIX668 648 || !equalOffsets 669 #if R0209_GENERIC_PHASE670 649 || !zeroPhase 671 #endif672 #else673 || !zeroOffsets674 #endif675 650 #endif 676 651 #if Q0048_CGS_3D_ASYMLUT … … 683 658 #else 684 659 if(m_iSourceWidth != pcEncTopBase->getSourceWidth() || m_iSourceHeight != pcEncTopBase->getSourceHeight() 685 #if REF_REGION_OFFSET && RESAMPLING_FIX686 660 || !equalOffsets 687 #if R0209_GENERIC_PHASE688 661 || !zeroPhase 689 #endif690 #else691 || !zeroOffsets692 #endif693 662 ) 694 663 #endif … … 720 689 for(UInt i = 0; i < m_cVPS.getNumDirectRefLayers( m_layerId ); i++ ) 721 690 { 722 #if MOVE_SCALED_OFFSET_TO_PPS723 691 #if O0098_SCALED_REF_LAYER_ID 724 692 const Window scalEL = getPPS()->getScaledRefLayerWindowForLayer(m_cVPS.getRefLayerId(m_layerId, i)); … … 726 694 const Window scalEL = getPPS()->getScaledRefLayerWindow(i); 727 695 #endif 728 #else729 #if O0098_SCALED_REF_LAYER_ID730 const Window scalEL = getSPS()->getScaledRefLayerWindowForLayer(m_cVPS.getRefLayerId(m_layerId, i));731 #else732 const Window scalEL = getSPS()->getScaledRefLayerWindow(i);733 #endif734 #endif735 #if REF_REGION_OFFSET736 696 const Window altRL = getPPS()->getRefLayerWindowForLayer(m_cVPS.getRefLayerId(m_layerId, i)); 737 #if RESAMPLING_FIX738 697 Bool equalOffsets = scalEL.hasEqualOffset(altRL); 739 #if R0209_GENERIC_PHASE740 698 Bool zeroPhase = getPPS()->hasZeroResamplingPhase(m_cVPS.getRefLayerId(m_layerId, i)); 741 #endif742 #else743 Bool zeroOffsets = ( scalEL.getWindowLeftOffset() == 0 && scalEL.getWindowRightOffset() == 0 && scalEL.getWindowTopOffset() == 0 && scalEL.getWindowBottomOffset() == 0744 && altRL.getWindowLeftOffset() == 0 && altRL.getWindowRightOffset() == 0 && altRL.getWindowTopOffset() == 0 && altRL.getWindowBottomOffset() == 0);745 #endif746 #else747 Bool zeroOffsets = ( scalEL.getWindowLeftOffset() == 0 && scalEL.getWindowRightOffset() == 0 && scalEL.getWindowTopOffset() == 0 && scalEL.getWindowBottomOffset() == 0 );748 #endif749 699 750 700 #if VPS_EXTN_DIRECT_REF_LAYERS … … 758 708 759 709 if( m_iSourceWidth != pcEncTopBase->getSourceWidth() || m_iSourceHeight != pcEncTopBase->getSourceHeight() || !sameBitDepths 760 #if REF_REGION_OFFSET && RESAMPLING_FIX761 710 || !equalOffsets 762 #if R0209_GENERIC_PHASE763 711 || !zeroPhase 764 #endif765 #else766 || !zeroOffsets767 #endif768 712 #if Q0048_CGS_3D_ASYMLUT 769 713 || m_cPPS.getCGSFlag() > 0 … … 775 719 #else 776 720 if(m_iSourceWidth != pcEncTopBase->getSourceWidth() || m_iSourceHeight != pcEncTopBase->getSourceHeight() 777 #if REF_REGION_OFFSET && RESAMPLING_FIX778 721 || !equalOffsets 779 #if R0209_GENERIC_PHASE780 722 || !zeroPhase 781 #endif782 #else783 || !zeroOffsets784 #endif785 723 ) 786 724 #endif … … 832 770 #else 833 771 m_cSPS.setLayerId(m_layerId); 834 #endif835 #if !MOVE_SCALED_OFFSET_TO_PPS836 m_cSPS.setNumScaledRefLayerOffsets(m_numScaledRefLayerOffsets);837 for(Int i = 0; i < m_cSPS.getNumScaledRefLayerOffsets(); i++)838 {839 #if O0098_SCALED_REF_LAYER_ID840 m_cSPS.setScaledRefLayerId(i, m_scaledRefLayerId[i]);841 #endif842 m_cSPS.getScaledRefLayerWindow(i) = m_scaledRefLayerWindow[i];843 #if P0312_VERT_PHASE_ADJ844 m_cSPS.setVertPhasePositionEnableFlag( m_scaledRefLayerId[i], m_scaledRefLayerWindow[i].getVertPhasePositionEnableFlag() );845 #endif846 }847 772 #endif 848 773 #endif //SVC_EXTENSION … … 1149 1074 } 1150 1075 #endif 1151 #if MOVE_SCALED_OFFSET_TO_PPS1152 1076 m_cPPS.setNumRefLayerLocationOffsets(m_numRefLayerLocationOffsets); 1153 1077 for(Int i = 0; i < m_cPPS.getNumRefLayerLocationOffsets(); i++) … … 1157 1081 #endif 1158 1082 m_cPPS.getScaledRefLayerWindow(i) = m_scaledRefLayerWindow[i]; 1159 #if REF_REGION_OFFSET1160 1083 m_cPPS.getRefLayerWindow(i) = m_refLayerWindow[i]; 1161 1084 m_cPPS.setScaledRefLayerOffsetPresentFlag( i, m_scaledRefLayerOffsetPresentFlag[i] ); 1162 1085 m_cPPS.setRefRegionOffsetPresentFlag( i, m_refRegionOffsetPresentFlag[i] ); 1163 #endif1164 #if R0209_GENERIC_PHASE1165 1086 m_cPPS.setResamplePhaseSetPresentFlag( i, m_resamplePhaseSetPresentFlag[i] ); 1166 1087 m_cPPS.setPhaseHorLuma( m_refLocationOffsetLayerId[i], m_phaseHorLuma[i] ); … … 1168 1089 m_cPPS.setPhaseHorChroma( m_refLocationOffsetLayerId[i], m_phaseHorChroma[i] ); 1169 1090 m_cPPS.setPhaseVerChroma( m_refLocationOffsetLayerId[i], m_phaseVerChroma[i] ); 1170 #endif 1171 #if P0312_VERT_PHASE_ADJ 1172 m_cPPS.setVertPhasePositionEnableFlag( m_scaledRefLayerId[i], m_scaledRefLayerWindow[i].getVertPhasePositionEnableFlag() ); 1173 #endif 1174 } 1175 #endif 1091 } 1176 1092 #if Q0048_CGS_3D_ASYMLUT 1177 1093 m_cPPS.setCGSFlag( m_nCGSFlag ); … … 1688 1604 return win; 1689 1605 } 1690 #if REF_REGION_OFFSET 1606 1691 1607 Window& TEncTop::getRefLayerWindowForLayer(Int layerId) 1692 1608 { … … 1705 1621 } 1706 1622 #endif 1707 #endif1708 1623 #endif //SVC_EXTENSION 1709 1624 //! \} -
branches/SHM-dev/source/Lib/TLibEncoder/TEncTop.h
r1057 r1090 127 127 #endif 128 128 Window m_scaledRefLayerWindow[MAX_LAYERS]; 129 #if REF_REGION_OFFSET130 129 UInt m_numRefLayerOffsets; 131 130 UInt m_refLayerId[MAX_LAYERS]; … … 133 132 Bool m_scaledRefLayerOffsetPresentFlag[MAX_LAYERS]; 134 133 Bool m_refRegionOffsetPresentFlag[MAX_LAYERS]; 135 #endif136 #if R0209_GENERIC_PHASE137 134 Int m_phaseHorLuma [MAX_LAYERS]; 138 135 Int m_phaseVerLuma [MAX_LAYERS]; … … 140 137 Int m_phaseVerChroma[MAX_LAYERS]; 141 138 Int m_resamplePhaseSetPresentFlag[MAX_LAYERS]; 142 #endif143 #if P0312_VERT_PHASE_ADJ144 Bool m_vertPhasePositionEnableFlag[MAX_LAYERS];145 #endif146 139 #if POC_RESET_FLAG || POC_RESET_IDC_ENCODER 147 140 Int m_pocAdjustmentValue; … … 232 225 #endif 233 226 Window& getScaledRefLayerWindow(Int x) { return m_scaledRefLayerWindow[x]; } 234 #if REF_REGION_OFFSET235 227 Void setNumRefLayerOffsets(Int x) { m_numRefLayerOffsets = x; } 236 228 UInt getNumRefLayerOffsets() { return m_numRefLayerOffsets; } … … 243 235 Bool getRefRegionOffsetPresentFlag(Int x) { return m_refRegionOffsetPresentFlag[x]; } 244 236 Void setRefRegionOffsetPresentFlag(Int x, Bool b) { m_refRegionOffsetPresentFlag[x] = b; } 245 #endif246 #if P0312_VERT_PHASE_ADJ247 Void setVertPhasePositionEnableFlag(Int x, Bool b) { m_vertPhasePositionEnableFlag[x] = b; }248 UInt getVertPhasePositionEnableFlag(Int x) { return m_vertPhasePositionEnableFlag[x]; }249 #endif250 #if R0209_GENERIC_PHASE251 237 Int getPhaseHorLuma(Int x) { return m_phaseHorLuma[x]; } 252 238 Int getPhaseVerLuma(Int x) { return m_phaseVerLuma[x]; } … … 259 245 Bool getResamplePhaseSetPresentFlag(Int x) { return m_resamplePhaseSetPresentFlag[x]; } 260 246 Void setResamplePhaseSetPresentFlag(Int x, Bool b) { m_resamplePhaseSetPresentFlag[x] = b; } 261 #endif262 247 263 248 TComPic** getIlpList() { return m_cIlpPic; }
Note: See TracChangeset for help on using the changeset viewer.