Ignore:
Timestamp:
8 Mar 2013, 16:13:08 (11 years ago)
Author:
mediatek-htm
Message:

Added FCO_FIX, FCO_FIX_SPS_CHANGE, and FCO_DVP_REFINE_C0132_C0170 macros to support FCO.
The new macros are default disabled in CTC.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-6.0-Mediatek/source/Lib/TLibDecoder/TDecTop.cpp

    r296 r303  
    193193
    194194  AOF( pcSlice->getSPS()->getViewId() < MAX_VIEW_NUM );
     195#if !FCO_FIX  // Under flexible coding order, depth may need the camera parameters
    195196  if ( pcSlice->getSPS()->isDepth  () )
    196197  {
    197198    return;
    198199  }
     200#endif
    199201  Bool  bFirstAU          = ( pcSlice->getPOC()               == 0 );
    200202  Bool  bFirstSliceInAU   = ( pcSlice->getPOC()               != Int ( m_iLastPOC ) );
    201203  Bool  bFirstSliceInView = ( pcSlice->getSPS()->getViewId()  != UInt( m_iLastViewId ) || bFirstSliceInAU );
    202204  AOT(  bFirstSliceInAU  &&   pcSlice->getSPS()->getViewId()  != 0 );
     205#if FCO_FIX
     206#else
    203207  AOT( !bFirstSliceInAU  &&   pcSlice->getSPS()->getViewId()   < UInt( m_iLastViewId ) );
     208#endif
    204209  AOT( !bFirstSliceInAU  &&   pcSlice->getSPS()->getViewId()   > UInt( m_iLastViewId + 1 ) );
    205210  AOT( !bFirstAU         &&   pcSlice->getSPS()->getViewId()   > m_uiMaxViewId );
     
    11711176  }
    11721177#endif
     1178
     1179#if FCO_DVP_REFINE_C0132_C0170
     1180  if(m_bFirstSliceInPicture)
     1181  {
     1182    pcPic->setDepthCoded(false);
     1183
     1184    if(m_viewId != 0)
     1185    {
     1186      if( m_isDepth == 0)
     1187      {
     1188        TComPic * recDepthMapBuffer;
     1189        recDepthMapBuffer = m_tAppDecTop->getPicFromView( m_viewId, pcSlice->getPOC(), true );
     1190        pcPic->setRecDepthMap(recDepthMapBuffer);
     1191
     1192        if(recDepthMapBuffer != NULL)
     1193        {
     1194          pcPic->setDepthCoded(true);
     1195        }
     1196      }
     1197    }
     1198  }
     1199#endif
     1200
    11731201
    11741202#if MERL_VSP_C0152 // set BW LUT
Note: See TracChangeset for help on using the changeset viewer.