Changeset 627 in SHVCSoftware for branches/SHM-5.1-dev/source/Lib/TLibDecoder


Ignore:
Timestamp:
12 Mar 2014, 22:06:13 (12 years ago)
Author:
qualcomm
Message:

JCTVC-P312: vertical phase adjustment for interlace-to-progressive scalability, from Jianle Chen (cjianle@…)

Location:
branches/SHM-5.1-dev/source/Lib/TLibDecoder
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-5.1-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r625 r627  
    859859      READ_SVLC( iCode, "scaled_ref_layer_right_offset" );   scaledWindow.setWindowRightOffset (iCode << 1);
    860860      READ_SVLC( iCode, "scaled_ref_layer_bottom_offset" );  scaledWindow.setWindowBottomOffset(iCode << 1);
     861#if P0312_VERT_PHASE_ADJ
     862      READ_FLAG( uiCode, "vert_phase_pos_enable_flag" );scaledWindow.setVertPhasePositionEnableFlag  (uiCode);  pcSPS->setVertPhasePositionEnableFlag(i,uiCode);
     863#endif
    861864    }
    862865  }
     
    19381941    }
    19391942  }
     1943#endif
     1944
     1945#if P0312_VERT_PHASE_ADJ
     1946  READ_FLAG( uiCode, "vps_vui_vert_phase_in_use_flag" ); vps->setVpsVuiVertPhaseInUseFlag(uiCode);
    19401947#endif
    19411948
     
    24862493#endif
    24872494#endif
     2495#if P0312_VERT_PHASE_ADJ
     2496    for(Int i = 0; i < rpcSlice->getSPS()->getNumScaledRefLayerOffsets(); i++)
     2497    {
     2498      if (rpcSlice->getSPS()->getVertPhasePositionEnableFlag(rpcSlice->getInterLayerPredLayerIdc(i)))
     2499      {
     2500        READ_FLAG( uiCode, "phase_pos_flag" ); rpcSlice->setVertPhasePositionFlag( uiCode? true: false, i);
     2501      }
     2502    }
     2503#endif
    24882504
    24892505    if(sps->getUseSAO())
  • branches/SHM-5.1-dev/source/Lib/TLibDecoder/TDecTop.cpp

    r625 r627  
    14671467#endif
    14681468
     1469#if P0312_VERT_PHASE_ADJ
     1470#if O0098_SCALED_REF_LAYER_ID
     1471        Window &scalEL = pcSlice->getSPS()->getScaledRefLayerWindowForLayer(pcSlice->getVPS()->getRefLayerId(m_layerId, refLayerIdc));
     1472#else
     1473        Window &scalEL = pcSlice->getSPS()->getScaledRefLayerWindow(refLayerIdc);
     1474#endif
     1475#else
    14691476#if O0098_SCALED_REF_LAYER_ID
    14701477        const Window &scalEL = pcSlice->getSPS()->getScaledRefLayerWindowForLayer(pcSlice->getVPS()->getRefLayerId(m_layerId, refLayerIdc));
    14711478#else
    14721479        const Window &scalEL = pcSlice->getSPS()->getScaledRefLayerWindow(refLayerIdc);
     1480#endif
    14731481#endif
    14741482
     
    14931501          Window &scalEL = pcSlice->getSPS()->getScaledRefLayerWindow(refLayerIdc);
    14941502#endif*/
     1503#if P0312_VERT_PHASE_ADJ
     1504          scalEL.setVertPhasePositionFlag (pcSlice->getVertPhasePositionFlag(i));
     1505#endif
    14951506#if O0215_PHASE_ALIGNMENT
    14961507#if O0194_JOINT_US_BITSHIFT
Note: See TracChangeset for help on using the changeset viewer.