Ignore:
Timestamp:
13 Aug 2015, 17:38:13 (9 years ago)
Author:
tech
Message:

Merged 14.1-update-dev1@1312.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/Lib/TLibCommon/TComMotionInfo.cpp

    r1196 r1313  
    22 * License, included below. This software may be subject to other third party
    33 * and contributor rights, including patent rights, and no such rights are
    4  * granted under this license. 
     4 * granted under this license.
    55 *
    6 * Copyright (c) 2010-2015, ITU/ISO/IEC
     6 * Copyright (c) 2010-2015, ITU/ISO/IEC
    77 * All rights reserved.
    88 *
     
    4040#include "assert.h"
    4141#include <stdlib.h>
    42 #if H_3D_SPIVMP
     42#if NH_3D_SPIVMP
    4343#include "TComDataCU.h"
    4444#include "TComPic.h"
     
    6161  assert(m_pcMvd    == NULL);
    6262  assert(m_piRefIdx == NULL);
    63  
     63
    6464  m_pcMv     = new TComMv[ uiNumPartition ];
    6565  m_pcMvd    = new TComMv[ uiNumPartition ];
    6666  m_piRefIdx = new Char  [ uiNumPartition ];
    67  
     67
    6868  m_uiNumPartition = uiNumPartition;
    6969}
     
    7474  assert(m_pcMvd    != NULL);
    7575  assert(m_piRefIdx != NULL);
    76  
     76
    7777  delete[] m_pcMv;
    7878  delete[] m_pcMvd;
    7979  delete[] m_piRefIdx;
    80  
     80
    8181  m_pcMv     = NULL;
    8282  m_pcMvd    = NULL;
    8383  m_piRefIdx = NULL;
    84  
     84
    8585  m_uiNumPartition = 0;
    8686}
     
    9595  {
    9696    m_pcMv [ i ].setZero();
    97     m_pcMvd[ i ].setZero();     
     97    m_pcMvd[ i ].setZero();
    9898  }
    9999  assert( sizeof( *m_piRefIdx ) == 1 );
     
    104104{
    105105  Int iSizeInTComMv = sizeof( TComMv ) * iNumPartSrc;
    106  
     106
    107107  memcpy( m_pcMv     + iPartAddrDst, pcCUMvFieldSrc->m_pcMv,     iSizeInTComMv );
    108108  memcpy( m_pcMvd    + iPartAddrDst, pcCUMvFieldSrc->m_pcMvd,    iSizeInTComMv );
     
    119119  Int iSizeInTComMv = sizeof( TComMv ) * uiNumPart;
    120120  Int iOffset = uiOffset + iPartAddrDst;
    121  
     121
    122122  memcpy( pcCUMvFieldDst->m_pcMv     + iOffset, m_pcMv     + uiOffset, iSizeInTComMv );
    123123  memcpy( pcCUMvFieldDst->m_pcMvd    + iOffset, m_pcMvd    + uiOffset, iSizeInTComMv );
     
    135135  p += iPartAddr;
    136136  Int numElements = m_uiNumPartition >> ( 2 * uiDepth );
    137  
     137
    138138  switch( eCUMode )
    139139  {
     
    144144      }
    145145      break;
    146      
     146
    147147    case SIZE_2NxN:
    148148      numElements >>= 1;
     
    152152      }
    153153      break;
    154      
     154
    155155    case SIZE_Nx2N:
    156156      numElements >>= 2;
     
    161161      }
    162162      break;
    163      
     163
    164164    case SIZE_NxN:
    165165      numElements >>= 2;
     
    328328}
    329329
    330 #if H_3D_SPIVMP
     330#if NH_3D_SPIVMP
    331331Void TComCUMvField::setMvFieldSP( TComDataCU* pcCU, UInt uiAbsPartIdx, TComMvField cMvField, Int iWidth, Int iHeight  )
    332332{
    333   uiAbsPartIdx += pcCU->getZorderIdxInCU();
     333  uiAbsPartIdx += pcCU->getZorderIdxInCtu();
    334334  Int iStartPelX = g_auiRasterToPelX[g_auiZscanToRaster[uiAbsPartIdx]];
    335335  Int iStartPelY = g_auiRasterToPelY[g_auiZscanToRaster[uiAbsPartIdx]];
     
    341341    for (Int j=iStartPelX; j < iEndPelX; j += pcCU->getPic()->getMinCUWidth())
    342342    {
    343       Int iCurrRaster = i / pcCU->getPic()->getMinCUHeight() * pcCU->getPic()->getNumPartInWidth() + j/pcCU->getPic()->getMinCUWidth();
     343      Int iCurrRaster = i / pcCU->getPic()->getMinCUHeight() * pcCU->getPic()->getNumPartInCtuWidth() + j/pcCU->getPic()->getMinCUWidth();
    344344      Int uiPartAddr = g_auiRasterToZscan[iCurrRaster];
    345       uiPartAddr -= pcCU->getZorderIdxInCU(); 
     345      uiPartAddr -= pcCU->getZorderIdxInCtu(); 
    346346
    347347      m_pcMv[uiPartAddr] = cMvField.getMv();
     
    360360  Int N = scale * scale;
    361361  assert( N > 0 && N <= m_uiNumPartition);
    362  
     362
    363363  for ( Int uiPartIdx = 0; uiPartIdx < m_uiNumPartition; uiPartIdx += N )
    364364  {
    365     TComMv cMv(0,0);
    366     PredMode predMode = MODE_INTRA;
     365    TComMv cMv(0,0);
    367366    Int iRefIdx = 0;
    368    
     367
    369368    cMv = m_pcMv[ uiPartIdx ];
    370     predMode = static_cast<PredMode>( pePredMode[ uiPartIdx ] );
     369    PredMode predMode = static_cast<PredMode>( pePredMode[ uiPartIdx ] );
    371370    iRefIdx = m_piRefIdx[ uiPartIdx ];
    372371    for ( Int i = 0; i < N; i++ )
     
    377376    }
    378377  }
    379 } 
     378}
    380379//! \}
Note: See TracChangeset for help on using the changeset viewer.