Changeset 1118 in 3DVCSoftware for branches/HTM-12.2-dev0/source/Lib/TLibCommon


Ignore:
Timestamp:
8 Nov 2014, 21:07:36 (10 years ago)
Author:
tech
Message:

Merged 12.2-dev1-Hisilicon@1116.

Location:
branches/HTM-12.2-dev0/source/Lib/TLibCommon
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-12.2-dev0/source/Lib/TLibCommon/TComDataCU.cpp

    r1106 r1118  
    62666266    }
    62676267    break;
     6268#if !SINGLE_DEPTH_SIMP_J0115
    62686269  case 2: // Above
    62696270    if(yP != 0)
     
    62876288    }
    62886289    break;
     6290#endif
    62896291  default:
    62906292      break;
     
    69056907
    69066908  iNumSPInOneLine = iPUWidth/iSubPUSize;
     6909#if !HS_SP_SIMP_J0066
    69076910  iNumSPInOneLine = iNumSPInOneLine < 1 ? 1: iNumSPInOneLine;
     6911#endif
    69086912  Int iNumSPInOneColumn = iPUHeight/iSubPUSize;
     6913#if !HS_SP_SIMP_J0066
    69096914  iNumSPInOneColumn = iNumSPInOneColumn < 1 ? 1: iNumSPInOneColumn;
     6915#else
     6916  iNumSPInOneLine = (iPUHeight % iSubPUSize != 0 || iPUWidth % iSubPUSize != 0 ) ? 1 : iNumSPInOneLine;
     6917  iNumSPInOneColumn = (iPUHeight % iSubPUSize != 0  || iPUWidth % iSubPUSize != 0 ) ? 1 : iNumSPInOneColumn;
     6918#endif
    69106919  iNumSP = iNumSPInOneLine * iNumSPInOneColumn;
    69116920
  • branches/HTM-12.2-dev0/source/Lib/TLibCommon/TComRom.cpp

    r1084 r1118  
    362362const UChar g_dmm1TabIdxBits[6] =
    363363{ //2x2   4x4   8x8 16x16 32x32 64x64
     364#if MTK_DMM_SIM_J0035
     365     0,    7,   10,   9,    9,   13 };
     366#else
    364367     0,    7,   10,   11,   11,   13 };
     368#endif
    365369
    366370const UChar g_dmm3IntraTabIdxBits[6] =
     
    763767    }
    764768
     769#if MTK_DMM_SIM_J0035
     770    for( Int iK = 0; iK < uiBlockSize; iK += (uiWidth>=16 ?2:1))
     771    {
     772      for( Int iL = 0; iL < uiBlockSize; iL += ((uiWidth>=16 && uiOri<4)?2:1) )
     773      {
     774        cTempWedgelet.setWedgelet( uhStartX + (iK*iStepStartX) , uhStartY + (iK*iStepStartY), uhEndX + (iL*iStepEndX), uhEndY + (iL*iStepEndY), (UChar)uiOri, eWedgeRes, ((iL%2)==0 && (iK%2)==0) );
     775        addWedgeletToList( cTempWedgelet, racWedgeList, racWedgeRefList );
     776      }
     777    }
     778#else
    765779    for( Int iK = 0; iK < uiBlockSize; iK++ )
    766780    {
     
    771785      }
    772786    }
     787#endif
    773788  }
    774789
  • branches/HTM-12.2-dev0/source/Lib/TLibCommon/TComSlice.cpp

    r1112 r1118  
    19721972    m_ivMvScalingFlag[i] = true;
    19731973    m_bIVPFlag [i]      = false;
     1974#if MTK_SINGLE_DEPTH_VPS_FLAG_J0060
     1975    m_singleDepthModeFlag[ i ] = false;
     1976#endif
    19741977#endif
    19751978#endif
     
    30813084      i++;
    30823085    }
     3086#if SHARP_DLT_SIMP_J0029
     3087    iIdxUp = bFound ?  iIdxDown + 1 : iNumDepthValues-1;
     3088#else
    30833089    // iterate over indices to find upper closest depth
    30843090    i = iNumDepthValues-2;
     
    30973103    // assert monotony
    30983104    assert(iIdxDown<=iIdxUp);
     3105#endif
    30993106
    31003107    // assign closer depth value/idx
  • branches/HTM-12.2-dev0/source/Lib/TLibCommon/TComSlice.h

    r1113 r1118  
    970970  Bool        m_bMPIFlag[MAX_NUM_LAYERS   ];
    971971#endif
     972#if MTK_SINGLE_DEPTH_VPS_FLAG_J0060
     973  Bool        m_singleDepthModeFlag    [ MAX_NUM_LAYERS ];
     974#endif
    972975#endif
    973976
     
    14001403  Bool    getMPIFlag      ( Int layerIdInVps )           { return m_bMPIFlag[layerIdInVps]; }
    14011404  Void    setMPIFlag      ( Int layerIdInVps, Bool bval ){ m_bMPIFlag[layerIdInVps] = bval; }
     1405#endif
     1406#if MTK_SINGLE_DEPTH_VPS_FLAG_J0060
     1407  Void    setSingleDepthModeFlag  ( Int layerIdInVps, Bool val )  { m_singleDepthModeFlag[ layerIdInVps ] = val; }
     1408  Bool    getSingleDepthModeFlag  ( Int layerIdInVps )            { return m_singleDepthModeFlag[ layerIdInVps ]; };
    14021409#endif
    14031410#endif 
     
    26042611  TComPic*  getTexturePic       ()                              { return  m_ivPicsCurrPoc[0][ m_viewIndex ]; }
    26052612#endif
     2613#if !MTK_SINGLE_DEPTH_VPS_FLAG_J0060
    26062614#if H_3D_SINGLE_DEPTH
    26072615  Void      setApplySingleDepthMode( Bool b )                                { m_bApplySingleDepthMode = b; }
    26082616  Bool      getApplySingleDepthMode()                                        { return m_bApplySingleDepthMode; }
     2617#endif
    26092618#endif
    26102619#if H_3D_IC
  • branches/HTM-12.2-dev0/source/Lib/TLibCommon/TypeDef.h

    r1111 r1118  
    182182                                              // SEC_SIMP_SHIFTED_DV_I0086     Simplification of Shifted DV candidate, JCT3V-I0086
    183183
     184#define MTK_MRG_LIST_SIZE_CLEANUP_J0059   1   // Include VSP for deriving merge candidate list size, JCT3V-J0059
    184185
    185186
     
    235236
    236237#define H_3D_SINGLE_DEPTH                 1   // Single depth mode proposed in JCT3V-I0095
    237 
     238#define MTK_SINGLE_DEPTH_VPS_FLAG_J0060   1   // Add VPS control flags and remove slice header control flag for single depth, JCT3V-J0060
     239
     240#define MTK_J0033                         1
     241#define SHARP_DLT_SIMP_J0029              1   // DLT(DepthValue2Idx[]) table derivation cleanup
    238242
    239243#define H_3D_INTER_SDC                    1   // INTER SDC, Inter simplified depth coding
     
    277281#define H_3D_FAST_DEPTH_INTRA             1   // Fast DMM and RBC Mode Selection
    278282                                              // SCU_HS_FAST_DEPTH_INTRA_E0238_HHIFIX
     283#define MTK_DMM_SIM_J0035                 1
    279284#endif
    280285
     
    307312#if H_3D_SINGLE_DEPTH
    308313#define SINGLE_DEPTH_MODE_CAND_LIST_SIZE            2 // size of the sample candidate list
     314#define SINGLE_DEPTH_SIMP_J0115           1
    309315#endif
    310316
     
    379385#if H_3D
    380386#define PPS_FIX_DEPTH                           1
     387#endif
     388
     389
     390#if H_3D_SPIVMP
     391#define HS_SP_SIMP_J0066                        1
    381392#endif
    382393
Note: See TracChangeset for help on using the changeset viewer.