Changeset 296 in 3DVCSoftware for trunk/source/App/TAppDecoder/TAppDecTop.cpp


Ignore:
Timestamp:
20 Feb 2013, 22:07:43 (12 years ago)
Author:
tech
Message:

Reintegrated branch 5.1-dev0 rev. 295.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/App/TAppDecoder/TAppDecTop.cpp

    r210 r296  
    9696#endif
    9797
    98 #if SONY_COLPIC_AVAILABILITY
    99   m_tDecTop[0]->setViewOrderIdx(0);
    100 #endif
    10198  Int                 viewDepthId = 0;
    10299  Int                 previousViewDepthId  = 0;
     
    111108    newPicture[i] = false;
    112109#if FLEX_CODING_ORDER_M23723
    113 #if  FIX_FCO_COMP_WARNING
    114110    m_fcoOrder[i] = ' ';
    115 #else
    116     m_fcoOrder[i]=NULL;
    117 #endif
    118111#endif
    119112
     
    302295      if( ( viewDepthId == 0 && (viewDepthId != previousViewDepthId) ) || m_tDecTop.size() == 1 )
    303296      {
    304 #if HHI_INTER_VIEW_RESIDUAL_PRED
     297#if H3D_IVRP
    305298        for( Int i = 0; i < m_tDecTop.size(); i++ )
    306299        {
     
    376369      if(newPicture[viewDepthId])
    377370      {
    378 #if H0567_DPB_PARAMETERS_PER_TEMPORAL_LAYER
    379371        xWriteOutput( pcListPic[viewDepthId], viewDepthId, nalu.m_temporalId );
    380 #else
    381         xWriteOutput( pcListPic[viewDepthId], viewDepthId );
    382 #endif
    383372      }
    384373    }
     
    447436}
    448437
    449 #if H0567_DPB_PARAMETERS_PER_TEMPORAL_LAYER
    450438Void TAppDecTop::xWriteOutput( TComList<TComPic*>* pcListPic, Int viewDepthId, UInt tId )
    451 #else
    452 Void TAppDecTop::xWriteOutput( TComList<TComPic*>* pcListPic, Int viewDepthId )
    453 #endif
    454439{
    455440  TComList<TComPic*>::iterator iterPic   = pcListPic->begin();
     
    470455  {
    471456    TComPic* pcPic = *(iterPic);
    472 #if PIC_CROPPING
    473457    TComSPS *sps = pcPic->getSlice(0)->getSPS();
    474 #endif
    475458   
    476 #if H0567_DPB_PARAMETERS_PER_TEMPORAL_LAYER
    477459    if ( pcPic->getOutputMark() && (not_displayed >  pcPic->getSlice(0)->getSPS()->getNumReorderPics(tId) && pcPic->getPOC() > m_pocLastDisplay[viewDepthId]))
    478 #else
    479     if ( pcPic->getOutputMark() && (not_displayed >  pcPic->getSlice(0)->getSPS()->getNumReorderFrames() && pcPic->getPOC() > m_pocLastDisplay[viewDepthId]))
    480 #endif
    481460    {
    482461      // write to file
     
    484463      if ( m_pchReconFile )
    485464      {
    486 #if PIC_CROPPING
    487465        m_tVideoIOYuvReconFile[viewDepthId]->write( pcPic->getPicYuvRec(), sps->getPicCropLeftOffset(), sps->getPicCropRightOffset(), sps->getPicCropTopOffset(), sps->getPicCropBottomOffset() );
    488 #else
    489         m_tVideoIOYuvReconFile[viewDepthId]->write( pcPic->getPicYuvRec(), pcPic->getSlice(0)->getSPS()->getPad() );
    490 #endif
    491466      }
    492467     
     
    533508  {
    534509    TComPic* pcPic = *(iterPic);
    535 #if PIC_CROPPING
    536510    TComSPS *sps = pcPic->getSlice(0)->getSPS();
    537 #endif
    538511
    539512    if ( pcPic->getOutputMark() )
     
    542515      if ( m_pchReconFile )
    543516      {
    544 #if PIC_CROPPING
    545517        m_tVideoIOYuvReconFile[viewDepthId]->write( pcPic->getPicYuvRec(), sps->getPicCropLeftOffset(), sps->getPicCropRightOffset(), sps->getPicCropTopOffset(), sps->getPicCropBottomOffset() );
    546 #else
    547         m_tVideoIOYuvReconFile[viewDepthId]->write( pcPic->getPicYuvRec(), pcPic->getSlice(0)->getSPS()->getPad() );
    548 #endif
    549518      }
    550519     
     
    764733#endif
    765734}
     735
     736#if MERL_VSP_C0152
     737Void TAppDecTop::setBWVSPLUT(TComSlice* pcSlice,  Int iCodedViewIdx,  Int iCurPoc)
     738{
     739  //first view does not have VSP
     740  if((iCodedViewIdx == 0)) return;
     741
     742  AOT( iCodedViewIdx <= 0);
     743  //AOT( iCodedViewIdx >= m_iNumberOfViews );
     744  Int iNeighborViewId = 0;
     745  //  Int* piShiftLUT = bRenderFromLeft ? m_cCamParsCollector.getBaseViewShiftLUTI()[iCodedViewIdx][iNeighborViewId][0] : m_cCamParsCollector.getBaseViewShiftLUTI()[iNeighborViewId][iCodedViewIdx][0];
     746  Int* piShiftLUT = m_cCamParsCollector.getBaseViewShiftLUTI()[iNeighborViewId][iCodedViewIdx][0];
     747  pcSlice->setBWVSPLUTParam(piShiftLUT, 2-LOG2_DISP_PREC_LUT );
     748}
     749#endif
     750
    766751//! \}
Note: See TracChangeset for help on using the changeset viewer.