Changeset 201 in 3DVCSoftware for branches/HTM-5.0-Nokia/source/App/TAppDecoder


Ignore:
Timestamp:
4 Dec 2012, 23:29:29 (12 years ago)
Author:
nokia
Message:
  1. Recommended coding style changes
  2. Disabling Compile flags:

#define QC_IV_AS_LT_B0046 0
#define QC_TMVP_IDX_MOD_B0046 0
#define QC_REM_IDV_B0046 0
#define FIX_DEL_NULLPTR 0

Location:
branches/HTM-5.0-Nokia/source/App/TAppDecoder
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-5.0-Nokia/source/App/TAppDecoder/TAppDecTop.cpp

    r200 r201  
    8888#endif
    8989 
    90 #if FLEX_CODING_ORDER
     90#if FLEX_CODING_ORDER_M23723
    9191  Int iDepthViewIdx = 0;
    9292  Int iTextureViewIdx=0;
    93   Bool first_frame=1;
    94   Bool viewid_zero=true;
    95   Int FCO_index=0;  //when the current frame is not first frame,use FCO_index stand for viewDepth.
     93  Bool firstFrame=1;
     94  Bool viewIdZero=true;
     95  Int fcoIndex=0;  //when the current frame is not first frame,use FCO_index stand for viewDepth.
    9696#endif
    9797
     
    110110    pcListPic[i] = NULL;
    111111    newPicture[i] = false;
    112 #if FLEX_CODING_ORDER
    113     FCO_Order[i]=NULL;
     112#if FLEX_CODING_ORDER_M23723
     113    m_fcoOrder[i]=NULL;
    114114#endif
    115115
     
    173173        depth = getVPSAccess()->getActiveVPS()->getDepthFlag(nalu.m_layerId);
    174174      }
    175 #if FLEX_CODING_ORDER
     175#if FLEX_CODING_ORDER_M23723
    176176      if (viewId>0)
    177177      {
    178         viewid_zero=false;
    179       }
    180       if (viewid_zero==false&&viewId==0)
    181       {
    182         first_frame=0; //if viewId has been more than zero and now it set to zero again, we can see that it is not the first view
    183       }
    184       if (first_frame)
     178        viewIdZero=false;
     179      }
     180      if (viewIdZero==false&&viewId==0)
     181      {
     182        firstFrame=0; //if viewId has been more than zero and now it set to zero again, we can see that it is not the first view
     183      }
     184      if (firstFrame)
    185185      { // if the current view is first frame, we set the viewDepthId as texture plus depth and get the FCO order
    186186        viewDepthId = iDepthViewIdx+iTextureViewIdx;
    187         FCO_viewDepthId=viewDepthId;
     187        m_fcoViewDepthId=viewDepthId;
    188188      }
    189189      else
     
    192192        if (depth)
    193193        {
    194           for (FCO_index=0;FCO_index<2*MAX_VIEW_NUM;FCO_index++ )
     194          for (fcoIndex=0;fcoIndex<2*MAX_VIEW_NUM;fcoIndex++ )
    195195          {
    196             if (FCO_Order[FCO_index]=='D')
     196            if (m_fcoOrder[fcoIndex]=='D')
    197197            {
    198198              if (viewId==viewDepthId)
     
    205205        else
    206206        {
    207           for (FCO_index=0;FCO_index<2*MAX_VIEW_NUM;FCO_index++ )
     207          for (fcoIndex=0;fcoIndex<2*MAX_VIEW_NUM;fcoIndex++ )
    208208          {
    209             if (FCO_Order[FCO_index]=='T')
     209            if (m_fcoOrder[fcoIndex]=='T')
    210210            {
    211211              if (viewId==viewDepthId)
     
    217217        }
    218218
    219         viewDepthId=FCO_index;
     219        viewDepthId=fcoIndex;
    220220
    221221      }
     
    229229      Int viewId = nalu.m_viewId;
    230230      Int depth = nalu.m_isDepth ? 1 : 0;
    231 #if FLEX_CODING_ORDER
     231#if FLEX_CODING_ORDER_M23723
    232232      if (viewId>0)
    233233      {
    234         viewid_zero=false;
    235       }
    236       if (viewid_zero==false&&viewId==0)
    237       {
    238         first_frame=0;
    239       }
    240       if (first_frame)
     234        viewIdZero=false;
     235      }
     236      if (viewIdZero==false&&viewId==0)
     237      {
     238        firstFrame=0;
     239      }
     240      if (firstFrame)
    241241      {
    242242        viewDepthId = iDepthViewIdx+iTextureViewIdx;
    243         FCO_viewDepthId=viewDepthId;
     243        m_fcoViewDepthId=viewDepthId;
    244244      }
    245245      else
     
    248248        if (depth)
    249249        {
    250           for (FCO_index=0;FCO_index<2*MAX_VIEW_NUM;FCO_index++ )
     250          for (fcoIndex=0;fcoIndex<2*MAX_VIEW_NUM;fcoIndex++ )
    251251          {
    252             if (FCO_Order[FCO_index]=='D')
     252            if (m_fcoOrder[fcoIndex]=='D')
    253253            {
    254254              if (viewId==viewDepthId)
     
    261261        else
    262262        {
    263           for (FCO_index=0;FCO_index<2*MAX_VIEW_NUM;FCO_index++ )
     263          for (fcoIndex=0;fcoIndex<2*MAX_VIEW_NUM;fcoIndex++ )
    264264          {
    265             if (FCO_Order[FCO_index]=='T')
     265            if (m_fcoOrder[fcoIndex]=='T')
    266266            {
    267267              if (viewId==viewDepthId)
     
    273273        }
    274274
    275         viewDepthId=FCO_index;
     275        viewDepthId=fcoIndex;
    276276
    277277      }
     
    338338        {
    339339          previousPictureDecoded = true;
    340 #if FLEX_CODING_ORDER
    341           if (first_frame)
    342           {
     340#if FLEX_CODING_ORDER_M23723
     341        if (firstFrame)
     342        {
    343343            if (depth)
    344344            {
    345345                iDepthViewIdx++;
    346                 FCO_Order[viewDepthId]='D';
     346                m_fcoOrder[viewDepthId]='D';
    347347            }
    348348            else
    349349           {
    350350                iTextureViewIdx++;
    351                 FCO_Order[viewDepthId]='T';
     351                m_fcoOrder[viewDepthId]='T';
    352352           }
    353353          }
     
    657657TDecTop* TAppDecTop::getTDecTop( Int viewId, Bool isDepth )
    658658{
    659 #if FLEX_CODING_ORDER
     659#if FLEX_CODING_ORDER_M23723
    660660  Int viewnumber=0;
    661661  Int i=0;
    662   Bool FCO_flag=0;
    663   if (viewId>FCO_viewDepthId)
     662  Bool fcoFlag=0;
     663  if (viewId>m_fcoViewDepthId)
    664664  {
    665665    return NULL;
     
    669669    if (isDepth)
    670670   {
    671       for ( i=0; i<=FCO_viewDepthId;i++)
    672       {
    673          if (FCO_Order[i]=='D')
     671      for ( i=0; i<=m_fcoViewDepthId;i++)
     672      {
     673         if (m_fcoOrder[i]=='D')
    674674         {
    675675           if (viewnumber==viewId)
    676676           {
    677              FCO_flag=1;
     677             fcoFlag=1;
    678678             break;
    679679           }
     
    685685    else
    686686    {
    687       for ( i=0; i<=FCO_viewDepthId;i++)
    688       {
    689         if (FCO_Order[i]=='T')
     687      for ( i=0; i<=m_fcoViewDepthId;i++)
     688      {
     689        if (m_fcoOrder[i]=='T')
    690690        {
    691691          if (viewnumber==viewId)
    692692          {
    693             FCO_flag=1;
     693            fcoFlag=1;
    694694            break;
    695695          }
     
    699699      }
    700700    }
    701     if (FCO_flag)
     701    if (fcoFlag)
    702702    {
    703703      return m_tDecTop[i];
     
    731731  assert( ( viewId >= 0 ) );
    732732
    733 #if FLEX_CODING_ORDER
     733#if FLEX_CODING_ORDER_M23723
    734734if (getTDecTop(viewId,isDepth))
    735735{
  • branches/HTM-5.0-Nokia/source/App/TAppDecoder/TAppDecTop.h

    r200 r201  
    7171  Bool                            m_useDepth;
    7272
    73 #if FLEX_CODING_ORDER
    74   Int  FCO_viewDepthId;
    75   Char FCO_Order[MAX_VIEW_NUM*2];
     73#if FLEX_CODING_ORDER_M23723
     74  Int  m_fcoViewDepthId;
     75  Char m_fcoOrder[MAX_VIEW_NUM*2];
    7676#endif
    7777
Note: See TracChangeset for help on using the changeset viewer.