source: 3DVCSoftware/branches/HTM-10.2-dev0/source/Lib/TLibDecoder/TDecEntropy.cpp @ 937

Last change on this file since 937 was 937, checked in by tech, 10 years ago

Added missing guard macros ETRIKHU_CLEANUP_H0083_MISSING.

  • Property svn:eol-style set to native
File size: 32.0 KB
Line 
1/* The copyright in this software is being made available under the BSD
2 * License, included below. This software may be subject to other third party
3 * and contributor rights, including patent rights, and no such rights are
4 * granted under this license. 
5 *
6* Copyright (c) 2010-2014, ITU/ISO/IEC
7 * All rights reserved.
8 *
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions are met:
11 *
12 *  * Redistributions of source code must retain the above copyright notice,
13 *    this list of conditions and the following disclaimer.
14 *  * Redistributions in binary form must reproduce the above copyright notice,
15 *    this list of conditions and the following disclaimer in the documentation
16 *    and/or other materials provided with the distribution.
17 *  * Neither the name of the ITU/ISO/IEC nor the names of its contributors may
18 *    be used to endorse or promote products derived from this software without
19 *    specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS
25 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
31 * THE POSSIBILITY OF SUCH DAMAGE.
32 */
33
34/** \file     TDecEntropy.cpp
35    \brief    entropy decoder class
36*/
37
38#include "TDecEntropy.h"
39
40//! \ingroup TLibDecoder
41//! \{
42
43Void TDecEntropy::setEntropyDecoder         ( TDecEntropyIf* p )
44{
45  m_pcEntropyDecoderIf = p;
46}
47
48#include "TLibCommon/TComSampleAdaptiveOffset.h"
49
50Void TDecEntropy::decodeSkipFlag( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth )
51{
52  m_pcEntropyDecoderIf->parseSkipFlag( pcCU, uiAbsPartIdx, uiDepth );
53}
54
55Void TDecEntropy::decodeCUTransquantBypassFlag(TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth )
56{
57  m_pcEntropyDecoderIf->parseCUTransquantBypassFlag( pcCU, uiAbsPartIdx, uiDepth );
58}
59
60/** decode merge flag
61 * \param pcSubCU
62 * \param uiAbsPartIdx
63 * \param uiDepth
64 * \param uiPUIdx
65 * \returns Void
66 */
67Void TDecEntropy::decodeMergeFlag( TComDataCU* pcSubCU, UInt uiAbsPartIdx, UInt uiDepth, UInt uiPUIdx )
68{ 
69  // at least one merge candidate exists
70  m_pcEntropyDecoderIf->parseMergeFlag( pcSubCU, uiAbsPartIdx, uiDepth, uiPUIdx );
71}
72
73/** decode merge index
74 * \param pcCU
75 * \param uiPartIdx
76 * \param uiAbsPartIdx
77 * \param puhInterDirNeighbours pointer to list of inter direction from the casual neighbours
78 * \param pcMvFieldNeighbours pointer to list of motion vector field from the casual neighbours
79 * \param uiDepth
80 * \returns Void
81 */
82Void TDecEntropy::decodeMergeIndex( TComDataCU* pcCU, UInt uiPartIdx, UInt uiAbsPartIdx, UInt uiDepth )
83{
84  UInt uiMergeIndex = 0;
85  m_pcEntropyDecoderIf->parseMergeIndex( pcCU, uiMergeIndex );
86  pcCU->setMergeIndexSubParts( uiMergeIndex, uiAbsPartIdx, uiPartIdx, uiDepth );
87}
88
89#if H_3D_ARP
90Void TDecEntropy::decodeARPW( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth )
91{
92  if( !pcCU->getSlice()->getARPStepNum() || pcCU->isIntra( uiAbsPartIdx ) )
93  {
94    return;
95  }
96
97  if( pcCU->getPartitionSize(uiAbsPartIdx) != SIZE_2Nx2N )
98  {
99    pcCU->setARPWSubParts( 0 , uiAbsPartIdx, uiDepth );
100  }
101  else
102  {
103    m_pcEntropyDecoderIf->parseARPW( pcCU , uiAbsPartIdx , uiDepth );
104  }
105}
106#endif
107
108#if H_3D_IC
109Void TDecEntropy::decodeICFlag( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth )
110{
111  pcCU->setICFlagSubParts( false , uiAbsPartIdx, 0, uiDepth );
112
113  if ( pcCU->isIntra( uiAbsPartIdx ) || ( pcCU->getSlice()->getViewIndex() == 0 ) || pcCU->getSlice()->getIsDepth() || pcCU->getARPW( uiAbsPartIdx ) > 0 )
114  {
115    return;
116  }
117
118  if( !pcCU->getSlice()->getApplyIC() )
119    return;
120
121  if( pcCU->isICFlagRequired( uiAbsPartIdx ) )
122    m_pcEntropyDecoderIf->parseICFlag( pcCU, uiAbsPartIdx, uiDepth );
123}
124#endif
125
126Void TDecEntropy::decodeSplitFlag   ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth )
127{
128  m_pcEntropyDecoderIf->parseSplitFlag( pcCU, uiAbsPartIdx, uiDepth );
129}
130
131Void TDecEntropy::decodePredMode( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth )
132{
133  m_pcEntropyDecoderIf->parsePredMode( pcCU, uiAbsPartIdx, uiDepth );
134}
135
136Void TDecEntropy::decodePartSize( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth )
137{
138  m_pcEntropyDecoderIf->parsePartSize( pcCU, uiAbsPartIdx, uiDepth );
139 
140#if H_3D_DBBP
141
142#if MTK_DBBP_SIGNALING_H0094
143  if( pcCU->getSlice()->getVPS()->getUseDBBP(pcCU->getSlice()->getLayerIdInVps()) )
144#else
145  if( pcCU->getSlice()->getVPS()->getUseDBBP(pcCU->getSlice()->getLayerIdInVps()) && pcCU->getPartitionSize(uiAbsPartIdx) == RWTH_DBBP_PACK_MODE )
146#endif
147  {
148    decodeDBBPFlag(pcCU, uiAbsPartIdx, uiDepth);
149   
150    if( pcCU->getDBBPFlag(uiAbsPartIdx) )
151    {
152#if !MTK_DBBP_SIGNALING_H0094
153      AOF( pcCU->getPartitionSize(uiAbsPartIdx) == RWTH_DBBP_PACK_MODE );
154#endif
155     
156      // get collocated depth block
157      UInt uiDepthStride = 0;
158      Pel* pDepthPels = NULL;
159      pDepthPels = pcCU->getVirtualDepthBlock(uiAbsPartIdx, pcCU->getWidth(uiAbsPartIdx), pcCU->getHeight(uiAbsPartIdx), uiDepthStride);
160     
161      AOF( pDepthPels != NULL );
162      AOF( uiDepthStride != 0 );
163     
164      // derive true partitioning for this CU based on depth
165      // (needs to be done in parsing process as motion vector predictors are also derived during parsing)
166      PartSize eVirtualPartSize = m_pcPrediction->getPartitionSizeFromDepth(pDepthPels, uiDepthStride, pcCU->getWidth(uiAbsPartIdx));
167      AOF( eVirtualPartSize != SIZE_NONE );
168     
169      pcCU->setPartSizeSubParts(eVirtualPartSize, uiAbsPartIdx, uiDepth);
170     
171#if RWTH_DBBP_NO_SPU_H0057
172      // make sure that DBBP flag is set for both segments
173      UInt uiPUOffset = ( g_auiPUOffset[UInt( eVirtualPartSize )] << ( ( pcCU->getSlice()->getSPS()->getMaxCUDepth() - uiDepth ) << 1 ) ) >> 4;
174      pcCU->setDBBPFlagSubParts(true, uiAbsPartIdx, 0, uiDepth);
175      pcCU->setDBBPFlagSubParts(true, uiAbsPartIdx+uiPUOffset, 1, uiDepth);
176#endif
177    }
178  }
179#endif
180}
181
182Void TDecEntropy::decodePredInfo    ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth, TComDataCU* pcSubCU )
183{
184  if( pcCU->isIntra( uiAbsPartIdx ) )                                 // If it is Intra mode, encode intra prediction mode.
185  {
186    decodeIntraDirModeLuma  ( pcCU, uiAbsPartIdx, uiDepth );
187#if H_3D_DIM_SDC
188    if(!pcCU->getSDCFlag(uiAbsPartIdx))
189#endif
190    decodeIntraDirModeChroma( pcCU, uiAbsPartIdx, uiDepth );
191  }
192  else                                                                // if it is Inter mode, encode motion vector and reference index
193  {
194    decodePUWise( pcCU, uiAbsPartIdx, uiDepth, pcSubCU );
195  }
196}
197
198/** Parse I_PCM information.
199 * \param pcCU  pointer to CUpointer to CU
200 * \param uiAbsPartIdx CU index
201 * \param uiDepth CU depth
202 * \returns Void
203 */
204Void TDecEntropy::decodeIPCMInfo( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth )
205{
206  if(!pcCU->getSlice()->getSPS()->getUsePCM()
207    || pcCU->getWidth(uiAbsPartIdx) > (1<<pcCU->getSlice()->getSPS()->getPCMLog2MaxSize())
208    || pcCU->getWidth(uiAbsPartIdx) < (1<<pcCU->getSlice()->getSPS()->getPCMLog2MinSize()) )
209  {
210    return;
211  }
212#if H_3D_DIM_SDC
213  if( pcCU->getSDCFlag(uiAbsPartIdx) )
214  {
215    return;
216  }
217#endif
218 
219  m_pcEntropyDecoderIf->parseIPCMInfo( pcCU, uiAbsPartIdx, uiDepth );
220}
221
222Void TDecEntropy::decodeIntraDirModeLuma  ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth )
223{
224  m_pcEntropyDecoderIf->parseIntraDirLumaAng( pcCU, uiAbsPartIdx, uiDepth );
225}
226
227Void TDecEntropy::decodeIntraDirModeChroma( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth )
228{
229  m_pcEntropyDecoderIf->parseIntraDirChroma( pcCU, uiAbsPartIdx, uiDepth );
230}
231
232/** decode motion information for every PU block.
233 * \param pcCU
234 * \param uiAbsPartIdx
235 * \param uiDepth
236 * \param pcSubCU
237 * \returns Void
238 */
239Void TDecEntropy::decodePUWise( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth, TComDataCU* pcSubCU )
240{
241  PartSize ePartSize = pcCU->getPartitionSize( uiAbsPartIdx );
242  UInt uiNumPU = ( ePartSize == SIZE_2Nx2N ? 1 : ( ePartSize == SIZE_NxN ? 4 : 2 ) );
243  UInt uiPUOffset = ( g_auiPUOffset[UInt( ePartSize )] << ( ( pcCU->getSlice()->getSPS()->getMaxCUDepth() - uiDepth ) << 1 ) ) >> 4;
244
245#if H_3D_IV_MERGE
246  TComMvField cMvFieldNeighbours[MRG_MAX_NUM_CANDS_MEM << 1]; // double length for mv of both lists
247  UChar uhInterDirNeighbours[MRG_MAX_NUM_CANDS_MEM];
248#else
249  TComMvField cMvFieldNeighbours[MRG_MAX_NUM_CANDS << 1]; // double length for mv of both lists
250  UChar uhInterDirNeighbours[MRG_MAX_NUM_CANDS];
251#endif
252#if H_3D_SPIVMP
253  Bool bSPIVMPFlag[MRG_MAX_NUM_CANDS_MEM];
254  TComMvField*  pcMvFieldSP;
255  UChar* puhInterDirSP;
256  pcMvFieldSP = new TComMvField[pcCU->getPic()->getPicSym()->getNumPartition()*2]; 
257  puhInterDirSP = new UChar[pcCU->getPic()->getPicSym()->getNumPartition()]; 
258#endif
259  for ( UInt ui = 0; ui < pcCU->getSlice()->getMaxNumMergeCand(); ui++ )
260  {
261    uhInterDirNeighbours[ui] = 0;
262  }
263  Int numValidMergeCand = 0;
264  Bool isMerged = false;
265
266  pcSubCU->copyInterPredInfoFrom( pcCU, uiAbsPartIdx, REF_PIC_LIST_0 );
267  pcSubCU->copyInterPredInfoFrom( pcCU, uiAbsPartIdx, REF_PIC_LIST_1 );
268#if H_3D_IV_MERGE
269  pcSubCU->copyDVInfoFrom( pcCU, uiAbsPartIdx);
270#endif
271  for ( UInt uiPartIdx = 0, uiSubPartIdx = uiAbsPartIdx; uiPartIdx < uiNumPU; uiPartIdx++, uiSubPartIdx += uiPUOffset )
272  {
273#if H_MV_ENC_DEC_TRAC
274    DTRACE_PU_S("=========== prediction_unit ===========\n")
275    // ToDo:
276    //DTRACE_PU("x0", uiLPelX)
277    //DTRACE_PU("x1", uiTPelY)
278#endif
279    decodeMergeFlag( pcCU, uiSubPartIdx, uiDepth, uiPartIdx );
280    if ( pcCU->getMergeFlag( uiSubPartIdx ) )
281    {
282      decodeMergeIndex( pcCU, uiPartIdx, uiSubPartIdx, uiDepth );
283      UInt uiMergeIndex = pcCU->getMergeIndex(uiSubPartIdx);
284#if H_3D_ARP
285      decodeARPW  ( pcCU, uiAbsPartIdx, uiDepth );
286#endif
287#if H_3D_IC
288      decodeICFlag( pcCU, uiAbsPartIdx, uiDepth );
289#endif
290#if H_3D_DBBP
291      if ( pcCU->getSlice()->getPPS()->getLog2ParallelMergeLevelMinus2() && ePartSize != SIZE_2Nx2N && pcSubCU->getWidth( 0 ) <= 8 && pcCU->getDBBPFlag(uiAbsPartIdx) == false )
292#else
293      if ( pcCU->getSlice()->getPPS()->getLog2ParallelMergeLevelMinus2() && ePartSize != SIZE_2Nx2N && pcSubCU->getWidth( 0 ) <= 8 ) 
294#endif
295      {
296        pcSubCU->setPartSizeSubParts( SIZE_2Nx2N, 0, uiDepth );
297        if ( !isMerged )
298        {
299#if H_3D_VSP
300          Int vspFlag[MRG_MAX_NUM_CANDS_MEM];
301          memset(vspFlag, 0, sizeof(Int)*MRG_MAX_NUM_CANDS_MEM);
302          InheritedVSPDisInfo inheritedVSPDisInfo[MRG_MAX_NUM_CANDS_MEM];
303#if H_3D_SPIVMP
304          memset(bSPIVMPFlag, false, sizeof(Bool)*MRG_MAX_NUM_CANDS_MEM);
305#endif
306          pcSubCU->initAvailableFlags();
307          pcSubCU->getInterMergeCandidates( 0, 0, cMvFieldNeighbours, uhInterDirNeighbours, numValidMergeCand);
308          pcSubCU->xGetInterMergeCandidates( 0, 0, cMvFieldNeighbours, uhInterDirNeighbours
309#if !ETRIKHU_CLEANUP_H0083
310            ,vspFlag
311#endif
312            , inheritedVSPDisInfo
313#if H_3D_SPIVMP
314#if !ETRIKHU_CLEANUP_H0083_MISSING
315            , bSPIVMPFlag
316#endif
317            , pcMvFieldSP, puhInterDirSP
318#endif
319            , numValidMergeCand );
320
321#if ETRIKHU_CLEANUP_H0083
322          pcSubCU->buildMCL( cMvFieldNeighbours, uhInterDirNeighbours, vspFlag
323#if H_3D_SPIVMP
324            , bSPIVMPFlag
325#endif
326            , numValidMergeCand );
327#endif
328          pcCU->setVSPFlagSubParts( vspFlag[uiMergeIndex], uiSubPartIdx, uiPartIdx, uiDepth );
329
330          if(vspFlag[uiMergeIndex])
331          {
332            pcCU->setDvInfoSubParts(inheritedVSPDisInfo[uiMergeIndex].m_acDvInfo, uiSubPartIdx, uiPartIdx, uiDepth);
333          }
334#else
335#if H_3D
336          pcSubCU->initAvailableFlags();
337          pcSubCU->getInterMergeCandidates( 0, 0, cMvFieldNeighbours, uhInterDirNeighbours, numValidMergeCand);
338          pcSubCU->xGetInterMergeCandidates( 0, 0, cMvFieldNeighbours, uhInterDirNeighbours, numValidMergeCand );
339
340#else
341          pcSubCU->getInterMergeCandidates( 0, 0, cMvFieldNeighbours, uhInterDirNeighbours, numValidMergeCand );
342#endif
343#endif
344          isMerged = true;
345        }
346        pcSubCU->setPartSizeSubParts( ePartSize, 0, uiDepth );
347      }
348      else
349      {
350        uiMergeIndex = pcCU->getMergeIndex(uiSubPartIdx);
351#if H_3D_VSP
352        Int vspFlag[MRG_MAX_NUM_CANDS_MEM];
353        memset(vspFlag, 0, sizeof(Int)*MRG_MAX_NUM_CANDS_MEM);
354        InheritedVSPDisInfo inheritedVSPDisInfo[MRG_MAX_NUM_CANDS_MEM];
355#if H_3D_SPIVMP
356        memset(bSPIVMPFlag, false, sizeof(Bool)*MRG_MAX_NUM_CANDS_MEM);
357#endif
358        pcSubCU->initAvailableFlags();
359        pcSubCU->getInterMergeCandidates( uiSubPartIdx-uiAbsPartIdx, uiPartIdx, cMvFieldNeighbours, uhInterDirNeighbours, numValidMergeCand, uiMergeIndex );
360        pcSubCU->xGetInterMergeCandidates( uiSubPartIdx-uiAbsPartIdx, uiPartIdx, cMvFieldNeighbours, uhInterDirNeighbours
361#if !ETRIKHU_CLEANUP_H0083
362          , vspFlag
363#endif
364          , inheritedVSPDisInfo
365#if H_3D_SPIVMP
366          , pcMvFieldSP, puhInterDirSP
367#endif
368          ,numValidMergeCand, uiMergeIndex );
369
370#if ETRIKHU_CLEANUP_H0083
371        pcSubCU->buildMCL( cMvFieldNeighbours, uhInterDirNeighbours, vspFlag
372#if H_3D_SPIVMP
373          , bSPIVMPFlag
374#endif
375          ,numValidMergeCand );
376#endif
377        pcCU->setVSPFlagSubParts( vspFlag[uiMergeIndex], uiSubPartIdx, uiPartIdx, uiDepth );
378        if(vspFlag[uiMergeIndex])
379        {
380          pcCU->setDvInfoSubParts(inheritedVSPDisInfo[uiMergeIndex].m_acDvInfo, uiSubPartIdx, uiPartIdx, uiDepth);
381        }
382#else
383#if H_3D
384        pcSubCU->initAvailableFlags();
385        pcSubCU->getInterMergeCandidates( uiSubPartIdx-uiAbsPartIdx, uiPartIdx, cMvFieldNeighbours, uhInterDirNeighbours, numValidMergeCand, uiMergeIndex );
386        pcSubCU->xGetInterMergeCandidates( uiSubPartIdx-uiAbsPartIdx, uiPartIdx, cMvFieldNeighbours, uhInterDirNeighbours, numValidMergeCand, uiMergeIndex );
387#else
388        pcSubCU->getInterMergeCandidates( uiSubPartIdx-uiAbsPartIdx, uiPartIdx, cMvFieldNeighbours, uhInterDirNeighbours, numValidMergeCand, uiMergeIndex );
389#endif
390#endif
391      }
392      pcCU->setInterDirSubParts( uhInterDirNeighbours[uiMergeIndex], uiSubPartIdx, uiPartIdx, uiDepth );
393
394#if H_3D_DDD
395      if( uiMergeIndex == pcSubCU->getUseDDDCandIdx() )
396      {
397          assert( pcCU->getSlice()->getViewIndex() != 0 );
398          pcCU->setUseDDD( true, uiSubPartIdx, uiPartIdx, uiDepth );
399          pcCU->setDDDepthSubParts( pcSubCU->getDDTmpDepth(),uiSubPartIdx, uiPartIdx, uiDepth );
400      }
401      else
402      {
403          pcCU->setUseDDD( false, uiSubPartIdx, uiPartIdx, uiDepth );
404      }
405#endif
406
407      TComMv cTmpMv( 0, 0 );
408      for ( UInt uiRefListIdx = 0; uiRefListIdx < 2; uiRefListIdx++ )
409      {       
410        if ( pcCU->getSlice()->getNumRefIdx( RefPicList( uiRefListIdx ) ) > 0 )
411        {
412          pcCU->setMVPIdxSubParts( 0, RefPicList( uiRefListIdx ), uiSubPartIdx, uiPartIdx, uiDepth);
413          pcCU->setMVPNumSubParts( 0, RefPicList( uiRefListIdx ), uiSubPartIdx, uiPartIdx, uiDepth);
414          pcCU->getCUMvField( RefPicList( uiRefListIdx ) )->setAllMvd( cTmpMv, ePartSize, uiSubPartIdx, uiDepth, uiPartIdx );
415          pcCU->getCUMvField( RefPicList( uiRefListIdx ) )->setAllMvField( cMvFieldNeighbours[ 2*uiMergeIndex + uiRefListIdx ], ePartSize, uiSubPartIdx, uiDepth, uiPartIdx );
416#if H_3D_VSP
417#if H_3D_DBBP
418          if( pcCU->getVSPFlag( uiSubPartIdx ) != 0 && !pcCU->getDBBPFlag( uiAbsPartIdx ) )
419#else
420          if( pcCU->getVSPFlag( uiSubPartIdx ) != 0 )
421#endif
422          {
423            if ( uhInterDirNeighbours[ uiMergeIndex ] & (1<<uiRefListIdx) )
424            {
425              UInt dummy;
426              Int vspSize;
427              Int width, height;
428              pcCU->getPartIndexAndSize( uiPartIdx, dummy, width, height, uiSubPartIdx, pcCU->getTotalNumPart()==256 );
429              pcCU->setMvFieldPUForVSP( pcCU, uiSubPartIdx, width, height, RefPicList( uiRefListIdx ), cMvFieldNeighbours[ 2*uiMergeIndex + uiRefListIdx ].getRefIdx(), vspSize );
430              pcCU->setVSPFlag( uiSubPartIdx, vspSize );
431            }
432          }
433#endif
434        }
435      }
436#if H_3D_SPIVMP
437      pcCU->setSPIVMPFlagSubParts(bSPIVMPFlag[uiMergeIndex], uiSubPartIdx, uiPartIdx, uiDepth ); 
438      if (bSPIVMPFlag[uiMergeIndex] != 0)
439      {
440        Int iWidth, iHeight;
441        UInt uiIdx;
442        pcCU->getPartIndexAndSize( uiPartIdx, uiIdx, iWidth, iHeight, uiSubPartIdx, true );
443
444        UInt uiSPAddr;
445
446        Int iNumSPInOneLine, iNumSP, iSPWidth, iSPHeight;
447
448        pcCU->getSPPara(iWidth, iHeight, iNumSP, iNumSPInOneLine, iSPWidth, iSPHeight);
449
450        for (Int iPartitionIdx = 0; iPartitionIdx < iNumSP; iPartitionIdx++)
451        {
452          pcCU->getSPAbsPartIdx(uiSubPartIdx, iSPWidth, iSPHeight, iPartitionIdx, iNumSPInOneLine, uiSPAddr);
453          pcCU->setInterDirSP(puhInterDirSP[iPartitionIdx], uiSPAddr, iSPWidth, iSPHeight);
454          pcCU->getCUMvField( REF_PIC_LIST_0 )->setMvFieldSP(pcCU, uiSPAddr, pcMvFieldSP[2*iPartitionIdx], iSPWidth, iSPHeight);
455          pcCU->getCUMvField( REF_PIC_LIST_1 )->setMvFieldSP(pcCU, uiSPAddr, pcMvFieldSP[2*iPartitionIdx + 1], iSPWidth, iSPHeight);
456        }
457      }
458#endif
459    }
460    else
461    {
462      decodeInterDirPU( pcCU, uiSubPartIdx, uiDepth, uiPartIdx );
463      for ( UInt uiRefListIdx = 0; uiRefListIdx < 2; uiRefListIdx++ )
464      {       
465        if ( pcCU->getSlice()->getNumRefIdx( RefPicList( uiRefListIdx ) ) > 0 )
466        {
467          decodeRefFrmIdxPU( pcCU,    uiSubPartIdx,              uiDepth, uiPartIdx, RefPicList( uiRefListIdx ) );
468          decodeMvdPU      ( pcCU,    uiSubPartIdx,              uiDepth, uiPartIdx, RefPicList( uiRefListIdx ) );
469          decodeMVPIdxPU   ( pcSubCU, uiSubPartIdx-uiAbsPartIdx, uiDepth, uiPartIdx, RefPicList( uiRefListIdx ) );
470        }
471      }
472#if H_3D_ARP
473      decodeARPW  ( pcCU, uiAbsPartIdx, uiDepth );
474#endif
475#if H_3D_IC
476      decodeICFlag( pcCU, uiAbsPartIdx, uiDepth );
477#endif
478    }
479#if H_3D_VSP
480    if ( (pcCU->getInterDir(uiSubPartIdx) == 3) && pcSubCU->isBipredRestriction(uiPartIdx) && (pcCU->getVSPFlag(uiSubPartIdx) == 0))
481#else
482    if ( (pcCU->getInterDir(uiSubPartIdx) == 3) && pcSubCU->isBipredRestriction(uiPartIdx) )
483#endif
484    {
485      pcCU->getCUMvField( REF_PIC_LIST_1 )->setAllMv( TComMv(0,0), ePartSize, uiSubPartIdx, uiDepth, uiPartIdx);
486      pcCU->getCUMvField( REF_PIC_LIST_1 )->setAllRefIdx( -1, ePartSize, uiSubPartIdx, uiDepth, uiPartIdx);
487      pcCU->setInterDirSubParts( 1, uiSubPartIdx, uiPartIdx, uiDepth);
488    }
489  }
490#if H_3D_SPIVMP
491  delete[] pcMvFieldSP;
492  delete[] puhInterDirSP;
493#endif
494  return;
495}
496
497/** decode inter direction for a PU block
498 * \param pcCU
499 * \param uiAbsPartIdx
500 * \param uiDepth
501 * \param uiPartIdx
502 * \returns Void
503 */
504Void TDecEntropy::decodeInterDirPU( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth, UInt uiPartIdx )
505{
506  UInt uiInterDir;
507
508  if ( pcCU->getSlice()->isInterP() )
509  {
510    uiInterDir = 1;
511  }
512  else
513  {
514    m_pcEntropyDecoderIf->parseInterDir( pcCU, uiInterDir, uiAbsPartIdx );
515  }
516
517  pcCU->setInterDirSubParts( uiInterDir, uiAbsPartIdx, uiPartIdx, uiDepth );
518}
519
520Void TDecEntropy::decodeRefFrmIdxPU( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth, UInt uiPartIdx, RefPicList eRefList )
521{
522  Int iRefFrmIdx = 0;
523  Int iParseRefFrmIdx = pcCU->getInterDir( uiAbsPartIdx ) & ( 1 << eRefList );
524
525  if ( pcCU->getSlice()->getNumRefIdx( eRefList ) > 1 && iParseRefFrmIdx )
526  {
527    m_pcEntropyDecoderIf->parseRefFrmIdx( pcCU, iRefFrmIdx, eRefList );
528  }
529  else if ( !iParseRefFrmIdx )
530  {
531    iRefFrmIdx = NOT_VALID;
532  }
533  else
534  {
535    iRefFrmIdx = 0;
536  }
537
538  PartSize ePartSize = pcCU->getPartitionSize( uiAbsPartIdx );
539  pcCU->getCUMvField( eRefList )->setAllRefIdx( iRefFrmIdx, ePartSize, uiAbsPartIdx, uiDepth, uiPartIdx );
540}
541
542/** decode motion vector difference for a PU block
543 * \param pcCU
544 * \param uiAbsPartIdx
545 * \param uiDepth
546 * \param uiPartIdx
547 * \param eRefList
548 * \returns Void
549 */
550Void TDecEntropy::decodeMvdPU( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth, UInt uiPartIdx, RefPicList eRefList )
551{
552  if ( pcCU->getInterDir( uiAbsPartIdx ) & ( 1 << eRefList ) )
553  {
554    m_pcEntropyDecoderIf->parseMvd( pcCU, uiAbsPartIdx, uiPartIdx, uiDepth, eRefList );
555  }
556}
557
558Void TDecEntropy::decodeMVPIdxPU( TComDataCU* pcSubCU, UInt uiPartAddr, UInt uiDepth, UInt uiPartIdx, RefPicList eRefList )
559{
560  Int iMVPIdx = -1;
561
562  TComMv cZeroMv( 0, 0 );
563  TComMv cMv     = cZeroMv;
564  Int    iRefIdx = -1;
565
566  TComCUMvField* pcSubCUMvField = pcSubCU->getCUMvField( eRefList );
567  AMVPInfo* pAMVPInfo = pcSubCUMvField->getAMVPInfo();
568
569  iRefIdx = pcSubCUMvField->getRefIdx(uiPartAddr);
570  cMv = cZeroMv;
571
572  if ( (pcSubCU->getInterDir(uiPartAddr) & ( 1 << eRefList )) )
573  {
574    m_pcEntropyDecoderIf->parseMVPIdx( iMVPIdx );
575#if H_MV_ENC_DEC_TRAC
576#if ENC_DEC_TRACE
577    if ( eRefList == REF_PIC_LIST_0 )
578    {
579      DTRACE_PU("mvp_l0_flag", iMVPIdx)
580    }
581    else
582    {
583      DTRACE_PU("mvp_l1_flag", iMVPIdx)
584    }
585#endif
586#endif
587  }
588  pcSubCU->fillMvpCand(uiPartIdx, uiPartAddr, eRefList, iRefIdx, pAMVPInfo);
589  pcSubCU->setMVPNumSubParts(pAMVPInfo->iN, eRefList, uiPartAddr, uiPartIdx, uiDepth);
590  pcSubCU->setMVPIdxSubParts( iMVPIdx, eRefList, uiPartAddr, uiPartIdx, uiDepth );
591  if ( iRefIdx >= 0 )
592  {
593    m_pcPrediction->getMvPredAMVP( pcSubCU, uiPartIdx, uiPartAddr, eRefList, cMv);
594    cMv += pcSubCUMvField->getMvd( uiPartAddr );
595  }
596
597  PartSize ePartSize = pcSubCU->getPartitionSize( uiPartAddr );
598  pcSubCU->getCUMvField( eRefList )->setAllMv(cMv, ePartSize, uiPartAddr, 0, uiPartIdx);
599}
600
601Void TDecEntropy::xDecodeTransform( TComDataCU* pcCU, UInt offsetLuma, UInt offsetChroma, UInt uiAbsPartIdx, UInt uiDepth, UInt width, UInt height, UInt uiTrIdx, Bool& bCodeDQP, Int quadtreeTULog2MinSizeInCU)
602{
603  UInt uiSubdiv;
604  const UInt uiLog2TrafoSize = g_aucConvertToBit[pcCU->getSlice()->getSPS()->getMaxCUWidth()]+2 - uiDepth;
605
606  if(uiTrIdx==0)
607  {
608    m_bakAbsPartIdxCU = uiAbsPartIdx;
609  }
610  if( uiLog2TrafoSize == 2 )
611  {
612    UInt partNum = pcCU->getPic()->getNumPartInCU() >> ( ( uiDepth - 1 ) << 1 );
613    if( ( uiAbsPartIdx % partNum ) == 0 )
614    {
615      m_uiBakAbsPartIdx   = uiAbsPartIdx;
616      m_uiBakChromaOffset = offsetChroma;
617    }
618  }
619  if( pcCU->getPredictionMode(uiAbsPartIdx) == MODE_INTRA && pcCU->getPartitionSize(uiAbsPartIdx) == SIZE_NxN && uiDepth == pcCU->getDepth(uiAbsPartIdx) )
620  {
621    uiSubdiv = 1;
622  }
623  else if( (pcCU->getSlice()->getSPS()->getQuadtreeTUMaxDepthInter() == 1) && (pcCU->getPredictionMode(uiAbsPartIdx) == MODE_INTER) && ( pcCU->getPartitionSize(uiAbsPartIdx) != SIZE_2Nx2N ) && (uiDepth == pcCU->getDepth(uiAbsPartIdx)) )
624  {
625    uiSubdiv = (uiLog2TrafoSize > quadtreeTULog2MinSizeInCU);
626  }
627  else if( uiLog2TrafoSize > pcCU->getSlice()->getSPS()->getQuadtreeTULog2MaxSize() )
628  {
629    uiSubdiv = 1;
630  }
631  else if( uiLog2TrafoSize == pcCU->getSlice()->getSPS()->getQuadtreeTULog2MinSize() )
632  {
633    uiSubdiv = 0;
634  }
635  else if( uiLog2TrafoSize == quadtreeTULog2MinSizeInCU )
636  {
637    uiSubdiv = 0;
638  }
639  else
640  {
641    assert( uiLog2TrafoSize > quadtreeTULog2MinSizeInCU );
642    m_pcEntropyDecoderIf->parseTransformSubdivFlag( uiSubdiv, 5 - uiLog2TrafoSize );
643  }
644 
645  const UInt uiTrDepth = uiDepth - pcCU->getDepth( uiAbsPartIdx );
646  {
647    const Bool bFirstCbfOfCU = uiTrDepth == 0;
648    if( bFirstCbfOfCU )
649    {
650      pcCU->setCbfSubParts( 0, TEXT_CHROMA_U, uiAbsPartIdx, uiDepth );
651      pcCU->setCbfSubParts( 0, TEXT_CHROMA_V, uiAbsPartIdx, uiDepth );
652    }
653    if( bFirstCbfOfCU || uiLog2TrafoSize > 2 )
654    {
655      if( bFirstCbfOfCU || pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_U, uiTrDepth - 1 ) )
656      {
657        m_pcEntropyDecoderIf->parseQtCbf( pcCU, uiAbsPartIdx, TEXT_CHROMA_U, uiTrDepth, uiDepth );
658      }
659      if( bFirstCbfOfCU || pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_V, uiTrDepth - 1 ) )
660      {
661        m_pcEntropyDecoderIf->parseQtCbf( pcCU, uiAbsPartIdx, TEXT_CHROMA_V, uiTrDepth, uiDepth );
662      }
663    }
664    else
665    {
666      pcCU->setCbfSubParts( pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_U, uiTrDepth - 1 ) << uiTrDepth, TEXT_CHROMA_U, uiAbsPartIdx, uiDepth );
667      pcCU->setCbfSubParts( pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_V, uiTrDepth - 1 ) << uiTrDepth, TEXT_CHROMA_V, uiAbsPartIdx, uiDepth );
668    }
669  }
670 
671  if( uiSubdiv )
672  {
673    UInt size;
674    width  >>= 1;
675    height >>= 1;
676    size = width*height;
677    uiTrIdx++;
678    ++uiDepth;
679    const UInt uiQPartNum = pcCU->getPic()->getNumPartInCU() >> (uiDepth << 1);
680    const UInt uiStartAbsPartIdx = uiAbsPartIdx;
681    UInt uiYCbf = 0;
682    UInt uiUCbf = 0;
683    UInt uiVCbf = 0;
684   
685    for( Int i = 0; i < 4; i++ )
686    {
687      xDecodeTransform( pcCU, offsetLuma, offsetChroma, uiAbsPartIdx, uiDepth, width, height, uiTrIdx, bCodeDQP, quadtreeTULog2MinSizeInCU );
688      uiYCbf |= pcCU->getCbf( uiAbsPartIdx, TEXT_LUMA, uiTrDepth+1 );
689      uiUCbf |= pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_U, uiTrDepth+1 );
690      uiVCbf |= pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_V, uiTrDepth+1 );
691      uiAbsPartIdx += uiQPartNum;
692      offsetLuma += size;  offsetChroma += (size>>2);
693    }
694   
695    for( UInt ui = 0; ui < 4 * uiQPartNum; ++ui )
696    {
697      pcCU->getCbf( TEXT_LUMA     )[uiStartAbsPartIdx + ui] |= uiYCbf << uiTrDepth;
698      pcCU->getCbf( TEXT_CHROMA_U )[uiStartAbsPartIdx + ui] |= uiUCbf << uiTrDepth;
699      pcCU->getCbf( TEXT_CHROMA_V )[uiStartAbsPartIdx + ui] |= uiVCbf << uiTrDepth;
700    }
701  }
702  else
703  {
704    assert( uiDepth >= pcCU->getDepth( uiAbsPartIdx ) );
705    pcCU->setTrIdxSubParts( uiTrDepth, uiAbsPartIdx, uiDepth );
706   
707#if !H_MV_ENC_DEC_TRAC
708    {
709      DTRACE_CABAC_VL( g_nSymbolCounter++ );
710      DTRACE_CABAC_T( "\tTrIdx: abspart=" );
711      DTRACE_CABAC_V( uiAbsPartIdx );
712      DTRACE_CABAC_T( "\tdepth=" );
713      DTRACE_CABAC_V( uiDepth );
714      DTRACE_CABAC_T( "\ttrdepth=" );
715      DTRACE_CABAC_V( uiTrDepth );
716      DTRACE_CABAC_T( "\n" );
717    }
718#endif
719   
720    pcCU->setCbfSubParts ( 0, TEXT_LUMA, uiAbsPartIdx, uiDepth );
721    if( pcCU->getPredictionMode(uiAbsPartIdx) != MODE_INTRA && uiDepth == pcCU->getDepth( uiAbsPartIdx ) && !pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_U, 0 ) && !pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_V, 0 ) )
722    {
723      pcCU->setCbfSubParts( 1 << uiTrDepth, TEXT_LUMA, uiAbsPartIdx, uiDepth );
724    }
725    else
726    {
727      m_pcEntropyDecoderIf->parseQtCbf( pcCU, uiAbsPartIdx, TEXT_LUMA, uiTrDepth, uiDepth );
728    }
729
730
731    // transform_unit begin
732    UInt cbfY = pcCU->getCbf( uiAbsPartIdx, TEXT_LUMA    , uiTrIdx );
733    UInt cbfU = pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_U, uiTrIdx );
734    UInt cbfV = pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_V, uiTrIdx );
735    if( uiLog2TrafoSize == 2 )
736    {
737      UInt partNum = pcCU->getPic()->getNumPartInCU() >> ( ( uiDepth - 1 ) << 1 );
738      if( ( uiAbsPartIdx % partNum ) == (partNum - 1) )
739      {
740        cbfU = pcCU->getCbf( m_uiBakAbsPartIdx, TEXT_CHROMA_U, uiTrIdx );
741        cbfV = pcCU->getCbf( m_uiBakAbsPartIdx, TEXT_CHROMA_V, uiTrIdx );
742      }
743    }
744    if ( cbfY || cbfU || cbfV )
745    {
746      // dQP: only for LCU
747      if ( pcCU->getSlice()->getPPS()->getUseDQP() )
748      {
749        if ( bCodeDQP )
750        {
751          decodeQP( pcCU, m_bakAbsPartIdxCU);
752          bCodeDQP = false;
753        }
754      }
755    }
756    if( cbfY )
757    {
758      Int trWidth = width;
759      Int trHeight = height;
760      m_pcEntropyDecoderIf->parseCoeffNxN( pcCU, (pcCU->getCoeffY()+offsetLuma), uiAbsPartIdx, trWidth, trHeight, uiDepth, TEXT_LUMA );
761    }
762    if( uiLog2TrafoSize > 2 )
763    {
764      Int trWidth = width >> 1;
765      Int trHeight = height >> 1;
766      if( cbfU )
767      {
768        m_pcEntropyDecoderIf->parseCoeffNxN( pcCU, (pcCU->getCoeffCb()+offsetChroma), uiAbsPartIdx, trWidth, trHeight, uiDepth, TEXT_CHROMA_U );
769      }
770      if( cbfV )
771      {
772        m_pcEntropyDecoderIf->parseCoeffNxN( pcCU, (pcCU->getCoeffCr()+offsetChroma), uiAbsPartIdx, trWidth, trHeight, uiDepth, TEXT_CHROMA_V );
773      }
774    }
775    else
776    {
777      UInt partNum = pcCU->getPic()->getNumPartInCU() >> ( ( uiDepth - 1 ) << 1 );
778      if( ( uiAbsPartIdx % partNum ) == (partNum - 1) )
779      {
780        Int trWidth = width;
781        Int trHeight = height;
782        if( cbfU )
783        {
784          m_pcEntropyDecoderIf->parseCoeffNxN( pcCU, (pcCU->getCoeffCb()+m_uiBakChromaOffset), m_uiBakAbsPartIdx, trWidth, trHeight, uiDepth, TEXT_CHROMA_U );
785        }
786        if( cbfV )
787        {
788          m_pcEntropyDecoderIf->parseCoeffNxN( pcCU, (pcCU->getCoeffCr()+m_uiBakChromaOffset), m_uiBakAbsPartIdx, trWidth, trHeight, uiDepth, TEXT_CHROMA_V );
789        }
790      }
791    }
792    // transform_unit end
793  }
794}
795
796Void TDecEntropy::decodeQP          ( TComDataCU* pcCU, UInt uiAbsPartIdx )
797{
798  if ( pcCU->getSlice()->getPPS()->getUseDQP() )
799  {
800    m_pcEntropyDecoderIf->parseDeltaQP( pcCU, uiAbsPartIdx, pcCU->getDepth( uiAbsPartIdx ) );
801  }
802}
803
804
805/** decode coefficients
806 * \param pcCU
807 * \param uiAbsPartIdx
808 * \param uiDepth
809 * \param uiWidth
810 * \param uiHeight
811 * \returns Void
812 */
813Void TDecEntropy::decodeCoeff( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth, UInt uiWidth, UInt uiHeight, Bool& bCodeDQP )
814{
815  UInt uiMinCoeffSize = pcCU->getPic()->getMinCUWidth()*pcCU->getPic()->getMinCUHeight();
816  UInt uiLumaOffset   = uiMinCoeffSize*uiAbsPartIdx;
817  UInt uiChromaOffset = uiLumaOffset>>2;
818#if H_3D_DIM_SDC
819  if( pcCU->getSDCFlag( uiAbsPartIdx ) && pcCU->isIntra( uiAbsPartIdx) )
820  {
821    assert( pcCU->getPartitionSize(uiAbsPartIdx) == SIZE_2Nx2N );
822    assert( pcCU->getTransformIdx(uiAbsPartIdx) == 0 );
823    assert( pcCU->getCbf(uiAbsPartIdx, TEXT_LUMA) == 1 );
824    assert( pcCU->getCbf(uiAbsPartIdx, TEXT_CHROMA_U) == 1 );
825    assert( pcCU->getCbf(uiAbsPartIdx, TEXT_CHROMA_V) == 1 );
826  }
827
828#if H_3D_INTER_SDC
829  if( pcCU->getSDCFlag( uiAbsPartIdx ) && !pcCU->isIntra( uiAbsPartIdx) )
830  {
831    assert( !pcCU->isSkipped( uiAbsPartIdx ) );
832    assert( !pcCU->isIntra( uiAbsPartIdx) );
833    assert( pcCU->getSlice()->getIsDepth() );
834  }
835#endif
836  if( pcCU->getSlice()->getIsDepth() && ( pcCU->getSDCFlag( uiAbsPartIdx ) || pcCU->isIntra( uiAbsPartIdx ) ) )
837  {
838    Int iPartNum = ( pcCU->isIntra( uiAbsPartIdx ) && pcCU->getPartitionSize( uiAbsPartIdx ) == SIZE_NxN ) ? 4 : 1;
839    UInt uiPartOffset = ( pcCU->getPic()->getNumPartInCU() >> ( pcCU->getDepth( uiAbsPartIdx ) << 1 ) ) >> 2;
840 
841    if( !pcCU->getSDCFlag( uiAbsPartIdx ) )
842    {
843      for( Int iPart = 0; iPart < iPartNum; iPart++ )
844      {
845        if( getDimType( pcCU->getLumaIntraDir( uiAbsPartIdx + uiPartOffset*iPart ) ) < DIM_NUM_TYPE ) 
846        {
847          m_pcEntropyDecoderIf->parseDeltaDC( pcCU, uiAbsPartIdx + uiPartOffset*iPart, uiDepth + ( pcCU->getPartitionSize( uiAbsPartIdx ) == SIZE_NxN ) );
848        }
849      }
850    }
851    else
852    {
853      m_pcEntropyDecoderIf->parseDeltaDC( pcCU, uiAbsPartIdx, uiDepth );
854      return;
855    }
856  }
857#endif
858
859  if( pcCU->isIntra(uiAbsPartIdx) )
860  {
861  }
862  else
863  {
864    UInt uiQtRootCbf = 1;
865    if( !( pcCU->getPartitionSize( uiAbsPartIdx) == SIZE_2Nx2N && pcCU->getMergeFlag( uiAbsPartIdx ) ) )
866    {
867      m_pcEntropyDecoderIf->parseQtRootCbf( uiAbsPartIdx, uiQtRootCbf );
868    }
869    if ( !uiQtRootCbf )
870    {
871      pcCU->setCbfSubParts( 0, 0, 0, uiAbsPartIdx, uiDepth );
872      pcCU->setTrIdxSubParts( 0 , uiAbsPartIdx, uiDepth );
873      return;
874    }
875   
876  }
877
878  Int getQuadtreeTULog2MinSizeInCU = pcCU->getQuadtreeTULog2MinSizeInCU(uiAbsPartIdx);
879
880  xDecodeTransform( pcCU, uiLumaOffset, uiChromaOffset, uiAbsPartIdx, uiDepth, uiWidth, uiHeight, 0, bCodeDQP, getQuadtreeTULog2MinSizeInCU );
881}
882
883#if H_3D_INTER_SDC
884Void TDecEntropy::decodeSDCFlag( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth )
885{
886  pcCU->setSDCFlagSubParts( false, uiAbsPartIdx, uiDepth );
887
888  if( ( !pcCU->isIntra( uiAbsPartIdx ) && !pcCU->getSlice()->getVPS()->getInterSDCFlag( pcCU->getSlice()->getLayerIdInVps() ) ) || 
889    ( pcCU->isIntra( uiAbsPartIdx ) && !pcCU->getSlice()->getVPS()->getVpsDepthModesFlag( pcCU->getSlice()->getLayerIdInVps() ) ) )
890  {
891    return;
892  }
893
894  if( !pcCU->getSlice()->getIsDepth() || pcCU->getPartitionSize( uiAbsPartIdx ) != SIZE_2Nx2N || pcCU->isSkipped( uiAbsPartIdx ) )
895  {
896    return;
897  }
898
899  assert( pcCU->getPartitionSize( uiAbsPartIdx ) == SIZE_2Nx2N || ( !pcCU->isIntra( uiAbsPartIdx ) && !pcCU->isSkipped( uiAbsPartIdx ) ) );
900  m_pcEntropyDecoderIf->parseSDCFlag( pcCU, uiAbsPartIdx, uiDepth );
901}
902#endif
903#if H_3D_DBBP
904Void TDecEntropy::decodeDBBPFlag( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth )
905{
906  m_pcEntropyDecoderIf->parseDBBPFlag( pcCU, uiAbsPartIdx, uiDepth );
907}
908#endif
909
910//! \}
Note: See TracBrowser for help on using the repository browser.