source: 3DVCSoftware/branches/HTM-12.2-dev0/source/Lib/TLibDecoder/TDecEntropy.cpp @ 1122

Last change on this file since 1122 was 1122, checked in by tech, 9 years ago

Alignment of J0060 and J0107 (ALIGN_J0060_J0107)

  • Property svn:eol-style set to native
File size: 31.1 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#if H_3D_SINGLE_DEPTH
55Void TDecEntropy::decodeSingleDepthMode( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth )
56{
57  if( !pcCU->getSlice()->getIntraSingleFlag() )
58  {
59    return;
60  } 
61#if ALIGN_J0060_J0107
62#else
63  if ( !pcCU->getSlice()->getIsDepth() )
64  {
65    return;
66  }
67#if MTK_SINGLE_DEPTH_VPS_FLAG_J0060
68  if(!pcCU->getSlice()->getVPS()->getSingleDepthModeFlag(pcCU->getSlice()->getLayerIdInVps()))
69  {
70     return;
71  }
72#else
73  if(!pcCU->getSlice()->getApplySingleDepthMode())
74  {
75     return;
76  }
77#endif
78#endif
79
80  m_pcEntropyDecoderIf->parseSingleDepthMode( pcCU, uiAbsPartIdx, uiDepth );
81}
82#endif
83Void TDecEntropy::decodeCUTransquantBypassFlag(TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth )
84{
85  m_pcEntropyDecoderIf->parseCUTransquantBypassFlag( pcCU, uiAbsPartIdx, uiDepth );
86}
87
88/** decode merge flag
89 * \param pcSubCU
90 * \param uiAbsPartIdx
91 * \param uiDepth
92 * \param uiPUIdx
93 * \returns Void
94 */
95Void TDecEntropy::decodeMergeFlag( TComDataCU* pcSubCU, UInt uiAbsPartIdx, UInt uiDepth, UInt uiPUIdx )
96{ 
97  // at least one merge candidate exists
98  m_pcEntropyDecoderIf->parseMergeFlag( pcSubCU, uiAbsPartIdx, uiDepth, uiPUIdx );
99}
100
101/** decode merge index
102 * \param pcCU
103 * \param uiPartIdx
104 * \param uiAbsPartIdx
105 * \param puhInterDirNeighbours pointer to list of inter direction from the casual neighbours
106 * \param pcMvFieldNeighbours pointer to list of motion vector field from the casual neighbours
107 * \param uiDepth
108 * \returns Void
109 */
110Void TDecEntropy::decodeMergeIndex( TComDataCU* pcCU, UInt uiPartIdx, UInt uiAbsPartIdx, UInt uiDepth )
111{
112  UInt uiMergeIndex = 0;
113  m_pcEntropyDecoderIf->parseMergeIndex( pcCU, uiMergeIndex );
114  pcCU->setMergeIndexSubParts( uiMergeIndex, uiAbsPartIdx, uiPartIdx, uiDepth );
115}
116
117#if H_3D_ARP
118Void TDecEntropy::decodeARPW( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth )
119{
120  if( !pcCU->getSlice()->getARPStepNum() || pcCU->isIntra( uiAbsPartIdx ) )
121  {
122    return;
123  }
124
125  if( pcCU->getPartitionSize(uiAbsPartIdx) != SIZE_2Nx2N )
126  {
127    pcCU->setARPWSubParts( 0 , uiAbsPartIdx, uiDepth );
128  }
129  else
130  {
131    m_pcEntropyDecoderIf->parseARPW( pcCU , uiAbsPartIdx , uiDepth );
132  }
133}
134#endif
135
136#if H_3D_IC
137Void TDecEntropy::decodeICFlag( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth )
138{
139  pcCU->setICFlagSubParts( false , uiAbsPartIdx, 0, uiDepth );
140
141  if ( pcCU->isIntra( uiAbsPartIdx ) || ( pcCU->getSlice()->getViewIndex() == 0 ) || pcCU->getSlice()->getIsDepth() || pcCU->getARPW( uiAbsPartIdx ) > 0 )
142  {
143    return;
144  }
145
146  if( !pcCU->getSlice()->getApplyIC() )
147    return;
148
149  if( pcCU->isICFlagRequired( uiAbsPartIdx ) )
150    m_pcEntropyDecoderIf->parseICFlag( pcCU, uiAbsPartIdx, uiDepth );
151}
152#endif
153
154Void TDecEntropy::decodeSplitFlag   ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth )
155{
156  m_pcEntropyDecoderIf->parseSplitFlag( pcCU, uiAbsPartIdx, uiDepth );
157}
158
159Void TDecEntropy::decodePredMode( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth )
160{
161  m_pcEntropyDecoderIf->parsePredMode( pcCU, uiAbsPartIdx, uiDepth );
162}
163
164Void TDecEntropy::decodePartSize( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth )
165{
166  m_pcEntropyDecoderIf->parsePartSize( pcCU, uiAbsPartIdx, uiDepth );
167 
168#if H_3D_DBBP
169#if SEC_DBBP_VIEW_REF_CHECK_J0037
170  #if HHI_TOOL_PARAMETERS_I2_J0107
171if( pcCU->getSlice()->getDepthBasedBlkPartFlag() && (pcCU->getPartitionSize(uiAbsPartIdx) == SIZE_2NxN || pcCU->getPartitionSize(uiAbsPartIdx) == SIZE_Nx2N) && pcCU->getWidth(uiAbsPartIdx) > 8 && pcCU->getSlice()->getDefaultRefViewIdxAvailableFlag() )
172#else
173if( pcCU->getSlice()->getVPS()->getUseDBBP(pcCU->getSlice()->getLayerIdInVps()) && (pcCU->getPartitionSize(uiAbsPartIdx) == SIZE_2NxN || pcCU->getPartitionSize(uiAbsPartIdx) == SIZE_Nx2N) && pcCU->getWidth(uiAbsPartIdx) > 8 && pcCU->getSlice()->getDefaultRefViewIdxAvailableFlag() )
174#endif
175#else
176  if( pcCU->getSlice()->getVPS()->getUseDBBP(pcCU->getSlice()->getLayerIdInVps()) && (pcCU->getPartitionSize(uiAbsPartIdx) == SIZE_2NxN || pcCU->getPartitionSize(uiAbsPartIdx) == SIZE_Nx2N) && pcCU->getWidth(uiAbsPartIdx) > 8 )
177#endif
178  {
179    decodeDBBPFlag(pcCU, uiAbsPartIdx, uiDepth);
180  }
181#endif
182}
183
184Void TDecEntropy::decodePredInfo    ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth, TComDataCU* pcSubCU )
185{
186  if( pcCU->isIntra( uiAbsPartIdx ) )                                 // If it is Intra mode, encode intra prediction mode.
187  {
188    decodeIntraDirModeLuma  ( pcCU, uiAbsPartIdx, uiDepth );
189#if H_3D_DIM_SDC
190    if(!pcCU->getSDCFlag(uiAbsPartIdx))
191#endif
192    decodeIntraDirModeChroma( pcCU, uiAbsPartIdx, uiDepth );
193  }
194  else                                                                // if it is Inter mode, encode motion vector and reference index
195  {
196    decodePUWise( pcCU, uiAbsPartIdx, uiDepth, pcSubCU );
197  }
198}
199
200/** Parse I_PCM information.
201 * \param pcCU  pointer to CUpointer to CU
202 * \param uiAbsPartIdx CU index
203 * \param uiDepth CU depth
204 * \returns Void
205 */
206Void TDecEntropy::decodeIPCMInfo( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth )
207{
208  if(!pcCU->getSlice()->getSPS()->getUsePCM()
209    || pcCU->getWidth(uiAbsPartIdx) > (1<<pcCU->getSlice()->getSPS()->getPCMLog2MaxSize())
210    || pcCU->getWidth(uiAbsPartIdx) < (1<<pcCU->getSlice()->getSPS()->getPCMLog2MinSize()) )
211  {
212    return;
213  }
214 
215  m_pcEntropyDecoderIf->parseIPCMInfo( pcCU, uiAbsPartIdx, uiDepth );
216}
217
218Void TDecEntropy::decodeIntraDirModeLuma  ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth )
219{
220  m_pcEntropyDecoderIf->parseIntraDirLumaAng( pcCU, uiAbsPartIdx, uiDepth );
221}
222
223Void TDecEntropy::decodeIntraDirModeChroma( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth )
224{
225  m_pcEntropyDecoderIf->parseIntraDirChroma( pcCU, uiAbsPartIdx, uiDepth );
226}
227
228/** decode motion information for every PU block.
229 * \param pcCU
230 * \param uiAbsPartIdx
231 * \param uiDepth
232 * \param pcSubCU
233 * \returns Void
234 */
235Void TDecEntropy::decodePUWise( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth, TComDataCU* pcSubCU )
236{
237  PartSize ePartSize = pcCU->getPartitionSize( uiAbsPartIdx );
238  UInt uiNumPU = ( ePartSize == SIZE_2Nx2N ? 1 : ( ePartSize == SIZE_NxN ? 4 : 2 ) );
239  UInt uiPUOffset = ( g_auiPUOffset[UInt( ePartSize )] << ( ( pcCU->getSlice()->getSPS()->getMaxCUDepth() - uiDepth ) << 1 ) ) >> 4;
240
241#if H_3D_IV_MERGE
242  TComMvField cMvFieldNeighbours[MRG_MAX_NUM_CANDS_MEM << 1]; // double length for mv of both lists
243  UChar uhInterDirNeighbours[MRG_MAX_NUM_CANDS_MEM];
244#else
245  TComMvField cMvFieldNeighbours[MRG_MAX_NUM_CANDS << 1]; // double length for mv of both lists
246  UChar uhInterDirNeighbours[MRG_MAX_NUM_CANDS];
247#endif
248#if H_3D_SPIVMP
249  Bool bSPIVMPFlag[MRG_MAX_NUM_CANDS_MEM];
250  TComMvField*  pcMvFieldSP;
251  UChar* puhInterDirSP;
252  pcMvFieldSP = new TComMvField[pcCU->getPic()->getPicSym()->getNumPartition()*2]; 
253  puhInterDirSP = new UChar[pcCU->getPic()->getPicSym()->getNumPartition()]; 
254#endif
255  for ( UInt ui = 0; ui < pcCU->getSlice()->getMaxNumMergeCand(); ui++ )
256  {
257    uhInterDirNeighbours[ui] = 0;
258  }
259  Int numValidMergeCand = 0;
260  Bool isMerged = false;
261
262  pcSubCU->copyInterPredInfoFrom( pcCU, uiAbsPartIdx, REF_PIC_LIST_0 );
263  pcSubCU->copyInterPredInfoFrom( pcCU, uiAbsPartIdx, REF_PIC_LIST_1 );
264#if H_3D_IV_MERGE
265  pcSubCU->copyDVInfoFrom( pcCU, uiAbsPartIdx);
266#endif
267  for ( UInt uiPartIdx = 0, uiSubPartIdx = uiAbsPartIdx; uiPartIdx < uiNumPU; uiPartIdx++, uiSubPartIdx += uiPUOffset )
268  {
269#if H_MV_ENC_DEC_TRAC
270    DTRACE_PU_S("=========== prediction_unit ===========\n")
271    // ToDo:
272    //DTRACE_PU("x0", uiLPelX)
273    //DTRACE_PU("x1", uiTPelY)
274#endif
275    decodeMergeFlag( pcCU, uiSubPartIdx, uiDepth, uiPartIdx );
276    if ( pcCU->getMergeFlag( uiSubPartIdx ) )
277    {
278      decodeMergeIndex( pcCU, uiPartIdx, uiSubPartIdx, uiDepth );
279      UInt uiMergeIndex = pcCU->getMergeIndex(uiSubPartIdx);
280#if H_3D_ARP
281      decodeARPW  ( pcCU, uiAbsPartIdx, uiDepth );
282#endif
283#if H_3D_IC
284      decodeICFlag( pcCU, uiAbsPartIdx, uiDepth );
285#endif
286#if H_3D_DBBP
287      if ( pcCU->getSlice()->getPPS()->getLog2ParallelMergeLevelMinus2() && ePartSize != SIZE_2Nx2N && pcSubCU->getWidth( 0 ) <= 8 && pcCU->getDBBPFlag(uiAbsPartIdx) == false )
288#else
289      if ( pcCU->getSlice()->getPPS()->getLog2ParallelMergeLevelMinus2() && ePartSize != SIZE_2Nx2N && pcSubCU->getWidth( 0 ) <= 8 ) 
290#endif
291      {
292        pcSubCU->setPartSizeSubParts( SIZE_2Nx2N, 0, uiDepth );
293        if ( !isMerged )
294        {
295#if H_3D_VSP
296          Int vspFlag[MRG_MAX_NUM_CANDS_MEM];
297          memset(vspFlag, 0, sizeof(Int)*MRG_MAX_NUM_CANDS_MEM);
298#if H_3D_SPIVMP
299          memset(bSPIVMPFlag, false, sizeof(Bool)*MRG_MAX_NUM_CANDS_MEM);
300#endif
301          pcSubCU->initAvailableFlags();
302          pcSubCU->getInterMergeCandidates( 0, 0, cMvFieldNeighbours, uhInterDirNeighbours, numValidMergeCand);
303          pcSubCU->xGetInterMergeCandidates( 0, 0, cMvFieldNeighbours, uhInterDirNeighbours
304#if H_3D_SPIVMP
305            , pcMvFieldSP, puhInterDirSP
306#endif
307            , numValidMergeCand );
308          pcSubCU->buildMCL( cMvFieldNeighbours, uhInterDirNeighbours, vspFlag
309#if H_3D_SPIVMP
310            , bSPIVMPFlag
311#endif
312            , numValidMergeCand );
313          pcCU->setVSPFlagSubParts( vspFlag[uiMergeIndex], uiSubPartIdx, uiPartIdx, uiDepth );
314
315#else
316#if H_3D
317          pcSubCU->initAvailableFlags();
318          pcSubCU->getInterMergeCandidates( 0, 0, cMvFieldNeighbours, uhInterDirNeighbours, numValidMergeCand);
319          pcSubCU->xGetInterMergeCandidates( 0, 0, cMvFieldNeighbours, uhInterDirNeighbours, numValidMergeCand );
320
321#else
322          pcSubCU->getInterMergeCandidates( 0, 0, cMvFieldNeighbours, uhInterDirNeighbours, numValidMergeCand );
323#endif
324#endif
325          isMerged = true;
326        }
327        pcSubCU->setPartSizeSubParts( ePartSize, 0, uiDepth );
328      }
329      else
330      {
331        uiMergeIndex = pcCU->getMergeIndex(uiSubPartIdx);
332#if H_3D_VSP
333        Int vspFlag[MRG_MAX_NUM_CANDS_MEM];
334        memset(vspFlag, 0, sizeof(Int)*MRG_MAX_NUM_CANDS_MEM);
335#if H_3D_SPIVMP
336        memset(bSPIVMPFlag, false, sizeof(Bool)*MRG_MAX_NUM_CANDS_MEM);
337#endif
338        pcSubCU->initAvailableFlags();
339        pcSubCU->getInterMergeCandidates( uiSubPartIdx-uiAbsPartIdx, uiPartIdx, cMvFieldNeighbours, uhInterDirNeighbours, numValidMergeCand, uiMergeIndex );
340        pcSubCU->xGetInterMergeCandidates( uiSubPartIdx-uiAbsPartIdx, uiPartIdx, cMvFieldNeighbours, uhInterDirNeighbours
341#if H_3D_SPIVMP
342          , pcMvFieldSP, puhInterDirSP
343#endif
344          ,numValidMergeCand, uiMergeIndex );
345        pcSubCU->buildMCL( cMvFieldNeighbours, uhInterDirNeighbours, vspFlag
346#if H_3D_SPIVMP
347          , bSPIVMPFlag
348#endif
349          ,numValidMergeCand );
350        pcCU->setVSPFlagSubParts( vspFlag[uiMergeIndex], uiSubPartIdx, uiPartIdx, uiDepth );
351#else
352#if H_3D
353        pcSubCU->initAvailableFlags();
354        pcSubCU->getInterMergeCandidates( uiSubPartIdx-uiAbsPartIdx, uiPartIdx, cMvFieldNeighbours, uhInterDirNeighbours, numValidMergeCand, uiMergeIndex );
355        pcSubCU->xGetInterMergeCandidates( uiSubPartIdx-uiAbsPartIdx, uiPartIdx, cMvFieldNeighbours, uhInterDirNeighbours, numValidMergeCand, uiMergeIndex );
356#else
357        pcSubCU->getInterMergeCandidates( uiSubPartIdx-uiAbsPartIdx, uiPartIdx, cMvFieldNeighbours, uhInterDirNeighbours, numValidMergeCand, uiMergeIndex );
358#endif
359#endif
360      }
361      pcCU->setInterDirSubParts( uhInterDirNeighbours[uiMergeIndex], uiSubPartIdx, uiPartIdx, uiDepth );
362#if !LGE_DDD_REMOVAL_J0042_J0030
363#if H_3D_DDD
364      if( uiMergeIndex == pcSubCU->getUseDDDCandIdx() )
365      {
366          assert( pcCU->getSlice()->getViewIndex() != 0 );
367          pcCU->setUseDDD( true, uiSubPartIdx, uiPartIdx, uiDepth );
368          pcCU->setDDDepthSubParts( pcSubCU->getDDTmpDepth(),uiSubPartIdx, uiPartIdx, uiDepth );
369      }
370      else
371      {
372          pcCU->setUseDDD( false, uiSubPartIdx, uiPartIdx, uiDepth );
373      }
374#endif
375#endif
376
377      TComMv cTmpMv( 0, 0 );
378      for ( UInt uiRefListIdx = 0; uiRefListIdx < 2; uiRefListIdx++ )
379      {       
380        if ( pcCU->getSlice()->getNumRefIdx( RefPicList( uiRefListIdx ) ) > 0 )
381        {
382          pcCU->setMVPIdxSubParts( 0, RefPicList( uiRefListIdx ), uiSubPartIdx, uiPartIdx, uiDepth);
383          pcCU->setMVPNumSubParts( 0, RefPicList( uiRefListIdx ), uiSubPartIdx, uiPartIdx, uiDepth);
384          pcCU->getCUMvField( RefPicList( uiRefListIdx ) )->setAllMvd( cTmpMv, ePartSize, uiSubPartIdx, uiDepth, uiPartIdx );
385          pcCU->getCUMvField( RefPicList( uiRefListIdx ) )->setAllMvField( cMvFieldNeighbours[ 2*uiMergeIndex + uiRefListIdx ], ePartSize, uiSubPartIdx, uiDepth, uiPartIdx );
386#if H_3D_VSP
387#if H_3D_DBBP
388          if( pcCU->getVSPFlag( uiSubPartIdx ) != 0 && !pcCU->getDBBPFlag( uiAbsPartIdx ) )
389#else
390          if( pcCU->getVSPFlag( uiSubPartIdx ) != 0 )
391#endif
392          {
393            if ( uhInterDirNeighbours[ uiMergeIndex ] & (1<<uiRefListIdx) )
394            {
395              UInt dummy;
396              Int vspSize;
397              Int width, height;
398              pcCU->getPartIndexAndSize( uiPartIdx, dummy, width, height, uiSubPartIdx, pcCU->getTotalNumPart()==256 );
399              pcCU->setMvFieldPUForVSP( pcCU, uiSubPartIdx, width, height, RefPicList( uiRefListIdx ), cMvFieldNeighbours[ 2*uiMergeIndex + uiRefListIdx ].getRefIdx(), vspSize );
400              pcCU->setVSPFlag( uiSubPartIdx, vspSize );
401            }
402          }
403#endif
404        }
405      }
406#if H_3D_SPIVMP
407      pcCU->setSPIVMPFlagSubParts(bSPIVMPFlag[uiMergeIndex], uiSubPartIdx, uiPartIdx, uiDepth ); 
408      if (bSPIVMPFlag[uiMergeIndex] != 0)
409      {
410        Int iWidth, iHeight;
411        UInt uiIdx;
412        pcCU->getPartIndexAndSize( uiPartIdx, uiIdx, iWidth, iHeight, uiSubPartIdx, true );
413
414        UInt uiSPAddr;
415
416        Int iNumSPInOneLine, iNumSP, iSPWidth, iSPHeight;
417
418        pcCU->getSPPara(iWidth, iHeight, iNumSP, iNumSPInOneLine, iSPWidth, iSPHeight);
419
420        for (Int iPartitionIdx = 0; iPartitionIdx < iNumSP; iPartitionIdx++)
421        {
422          pcCU->getSPAbsPartIdx(uiSubPartIdx, iSPWidth, iSPHeight, iPartitionIdx, iNumSPInOneLine, uiSPAddr);
423          pcCU->setInterDirSP(puhInterDirSP[iPartitionIdx], uiSPAddr, iSPWidth, iSPHeight);
424          pcCU->getCUMvField( REF_PIC_LIST_0 )->setMvFieldSP(pcCU, uiSPAddr, pcMvFieldSP[2*iPartitionIdx], iSPWidth, iSPHeight);
425          pcCU->getCUMvField( REF_PIC_LIST_1 )->setMvFieldSP(pcCU, uiSPAddr, pcMvFieldSP[2*iPartitionIdx + 1], iSPWidth, iSPHeight);
426        }
427      }
428#endif
429    }
430    else
431    {
432      decodeInterDirPU( pcCU, uiSubPartIdx, uiDepth, uiPartIdx );
433      for ( UInt uiRefListIdx = 0; uiRefListIdx < 2; uiRefListIdx++ )
434      {       
435        if ( pcCU->getSlice()->getNumRefIdx( RefPicList( uiRefListIdx ) ) > 0 )
436        {
437          decodeRefFrmIdxPU( pcCU,    uiSubPartIdx,              uiDepth, uiPartIdx, RefPicList( uiRefListIdx ) );
438          decodeMvdPU      ( pcCU,    uiSubPartIdx,              uiDepth, uiPartIdx, RefPicList( uiRefListIdx ) );
439          decodeMVPIdxPU   ( pcSubCU, uiSubPartIdx-uiAbsPartIdx, uiDepth, uiPartIdx, RefPicList( uiRefListIdx ) );
440        }
441      }
442#if H_3D_ARP
443      decodeARPW  ( pcCU, uiAbsPartIdx, uiDepth );
444#endif
445#if H_3D_IC
446      decodeICFlag( pcCU, uiAbsPartIdx, uiDepth );
447#endif
448    }
449    if ( (pcCU->getInterDir(uiSubPartIdx) == 3) && pcSubCU->isBipredRestriction(uiPartIdx) )
450    {
451      pcCU->getCUMvField( REF_PIC_LIST_1 )->setAllMv( TComMv(0,0), ePartSize, uiSubPartIdx, uiDepth, uiPartIdx);
452      pcCU->getCUMvField( REF_PIC_LIST_1 )->setAllRefIdx( -1, ePartSize, uiSubPartIdx, uiDepth, uiPartIdx);
453      pcCU->setInterDirSubParts( 1, uiSubPartIdx, uiPartIdx, uiDepth);
454    }
455  }
456#if H_3D_SPIVMP
457  delete[] pcMvFieldSP;
458  delete[] puhInterDirSP;
459#endif
460  return;
461}
462
463/** decode inter direction for a PU block
464 * \param pcCU
465 * \param uiAbsPartIdx
466 * \param uiDepth
467 * \param uiPartIdx
468 * \returns Void
469 */
470Void TDecEntropy::decodeInterDirPU( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth, UInt uiPartIdx )
471{
472  UInt uiInterDir;
473
474  if ( pcCU->getSlice()->isInterP() )
475  {
476    uiInterDir = 1;
477  }
478  else
479  {
480    m_pcEntropyDecoderIf->parseInterDir( pcCU, uiInterDir, uiAbsPartIdx );
481  }
482
483  pcCU->setInterDirSubParts( uiInterDir, uiAbsPartIdx, uiPartIdx, uiDepth );
484}
485
486Void TDecEntropy::decodeRefFrmIdxPU( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth, UInt uiPartIdx, RefPicList eRefList )
487{
488  Int iRefFrmIdx = 0;
489  Int iParseRefFrmIdx = pcCU->getInterDir( uiAbsPartIdx ) & ( 1 << eRefList );
490
491  if ( pcCU->getSlice()->getNumRefIdx( eRefList ) > 1 && iParseRefFrmIdx )
492  {
493    m_pcEntropyDecoderIf->parseRefFrmIdx( pcCU, iRefFrmIdx, eRefList );
494  }
495  else if ( !iParseRefFrmIdx )
496  {
497    iRefFrmIdx = NOT_VALID;
498  }
499  else
500  {
501    iRefFrmIdx = 0;
502  }
503
504  PartSize ePartSize = pcCU->getPartitionSize( uiAbsPartIdx );
505  pcCU->getCUMvField( eRefList )->setAllRefIdx( iRefFrmIdx, ePartSize, uiAbsPartIdx, uiDepth, uiPartIdx );
506}
507
508/** decode motion vector difference for a PU block
509 * \param pcCU
510 * \param uiAbsPartIdx
511 * \param uiDepth
512 * \param uiPartIdx
513 * \param eRefList
514 * \returns Void
515 */
516Void TDecEntropy::decodeMvdPU( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth, UInt uiPartIdx, RefPicList eRefList )
517{
518  if ( pcCU->getInterDir( uiAbsPartIdx ) & ( 1 << eRefList ) )
519  {
520    m_pcEntropyDecoderIf->parseMvd( pcCU, uiAbsPartIdx, uiPartIdx, uiDepth, eRefList );
521  }
522}
523
524Void TDecEntropy::decodeMVPIdxPU( TComDataCU* pcSubCU, UInt uiPartAddr, UInt uiDepth, UInt uiPartIdx, RefPicList eRefList )
525{
526  Int iMVPIdx = -1;
527
528  TComMv cZeroMv( 0, 0 );
529  TComMv cMv     = cZeroMv;
530  Int    iRefIdx = -1;
531
532  TComCUMvField* pcSubCUMvField = pcSubCU->getCUMvField( eRefList );
533  AMVPInfo* pAMVPInfo = pcSubCUMvField->getAMVPInfo();
534
535  iRefIdx = pcSubCUMvField->getRefIdx(uiPartAddr);
536  cMv = cZeroMv;
537
538  if ( (pcSubCU->getInterDir(uiPartAddr) & ( 1 << eRefList )) )
539  {
540    m_pcEntropyDecoderIf->parseMVPIdx( iMVPIdx );
541#if H_MV_ENC_DEC_TRAC
542#if ENC_DEC_TRACE
543    if ( eRefList == REF_PIC_LIST_0 )
544    {
545      DTRACE_PU("mvp_l0_flag", iMVPIdx)
546    }
547    else
548    {
549      DTRACE_PU("mvp_l1_flag", iMVPIdx)
550    }
551#endif
552#endif
553  }
554  pcSubCU->fillMvpCand(uiPartIdx, uiPartAddr, eRefList, iRefIdx, pAMVPInfo);
555  pcSubCU->setMVPNumSubParts(pAMVPInfo->iN, eRefList, uiPartAddr, uiPartIdx, uiDepth);
556  pcSubCU->setMVPIdxSubParts( iMVPIdx, eRefList, uiPartAddr, uiPartIdx, uiDepth );
557  if ( iRefIdx >= 0 )
558  {
559    m_pcPrediction->getMvPredAMVP( pcSubCU, uiPartIdx, uiPartAddr, eRefList, cMv);
560    cMv += pcSubCUMvField->getMvd( uiPartAddr );
561  }
562
563  PartSize ePartSize = pcSubCU->getPartitionSize( uiPartAddr );
564  pcSubCU->getCUMvField( eRefList )->setAllMv(cMv, ePartSize, uiPartAddr, 0, uiPartIdx);
565}
566
567Void TDecEntropy::xDecodeTransform( TComDataCU* pcCU, UInt offsetLuma, UInt offsetChroma, UInt uiAbsPartIdx, UInt uiDepth, UInt width, UInt height, UInt uiTrIdx, Bool& bCodeDQP, Int quadtreeTULog2MinSizeInCU)
568{
569  UInt uiSubdiv;
570  const UInt uiLog2TrafoSize = g_aucConvertToBit[pcCU->getSlice()->getSPS()->getMaxCUWidth()]+2 - uiDepth;
571
572  if(uiTrIdx==0)
573  {
574    m_bakAbsPartIdxCU = uiAbsPartIdx;
575  }
576  if( uiLog2TrafoSize == 2 )
577  {
578    UInt partNum = pcCU->getPic()->getNumPartInCU() >> ( ( uiDepth - 1 ) << 1 );
579    if( ( uiAbsPartIdx % partNum ) == 0 )
580    {
581      m_uiBakAbsPartIdx   = uiAbsPartIdx;
582      m_uiBakChromaOffset = offsetChroma;
583    }
584  }
585  if( pcCU->getPredictionMode(uiAbsPartIdx) == MODE_INTRA && pcCU->getPartitionSize(uiAbsPartIdx) == SIZE_NxN && uiDepth == pcCU->getDepth(uiAbsPartIdx) )
586  {
587    uiSubdiv = 1;
588  }
589  else if( (pcCU->getSlice()->getSPS()->getQuadtreeTUMaxDepthInter() == 1) && (pcCU->getPredictionMode(uiAbsPartIdx) == MODE_INTER) && ( pcCU->getPartitionSize(uiAbsPartIdx) != SIZE_2Nx2N ) && (uiDepth == pcCU->getDepth(uiAbsPartIdx)) )
590  {
591    uiSubdiv = (uiLog2TrafoSize > quadtreeTULog2MinSizeInCU);
592  }
593  else if( uiLog2TrafoSize > pcCU->getSlice()->getSPS()->getQuadtreeTULog2MaxSize() )
594  {
595    uiSubdiv = 1;
596  }
597  else if( uiLog2TrafoSize == pcCU->getSlice()->getSPS()->getQuadtreeTULog2MinSize() )
598  {
599    uiSubdiv = 0;
600  }
601  else if( uiLog2TrafoSize == quadtreeTULog2MinSizeInCU )
602  {
603    uiSubdiv = 0;
604  }
605  else
606  {
607    assert( uiLog2TrafoSize > quadtreeTULog2MinSizeInCU );
608    m_pcEntropyDecoderIf->parseTransformSubdivFlag( uiSubdiv, 5 - uiLog2TrafoSize );
609  }
610 
611  const UInt uiTrDepth = uiDepth - pcCU->getDepth( uiAbsPartIdx );
612  {
613    const Bool bFirstCbfOfCU = uiTrDepth == 0;
614    if( bFirstCbfOfCU )
615    {
616      pcCU->setCbfSubParts( 0, TEXT_CHROMA_U, uiAbsPartIdx, uiDepth );
617      pcCU->setCbfSubParts( 0, TEXT_CHROMA_V, uiAbsPartIdx, uiDepth );
618    }
619    if( bFirstCbfOfCU || uiLog2TrafoSize > 2 )
620    {
621      if( bFirstCbfOfCU || pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_U, uiTrDepth - 1 ) )
622      {
623        m_pcEntropyDecoderIf->parseQtCbf( pcCU, uiAbsPartIdx, TEXT_CHROMA_U, uiTrDepth, uiDepth );
624      }
625      if( bFirstCbfOfCU || pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_V, uiTrDepth - 1 ) )
626      {
627        m_pcEntropyDecoderIf->parseQtCbf( pcCU, uiAbsPartIdx, TEXT_CHROMA_V, uiTrDepth, uiDepth );
628      }
629    }
630    else
631    {
632      pcCU->setCbfSubParts( pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_U, uiTrDepth - 1 ) << uiTrDepth, TEXT_CHROMA_U, uiAbsPartIdx, uiDepth );
633      pcCU->setCbfSubParts( pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_V, uiTrDepth - 1 ) << uiTrDepth, TEXT_CHROMA_V, uiAbsPartIdx, uiDepth );
634    }
635  }
636 
637  if( uiSubdiv )
638  {
639    UInt size;
640    width  >>= 1;
641    height >>= 1;
642    size = width*height;
643    uiTrIdx++;
644    ++uiDepth;
645    const UInt uiQPartNum = pcCU->getPic()->getNumPartInCU() >> (uiDepth << 1);
646    const UInt uiStartAbsPartIdx = uiAbsPartIdx;
647    UInt uiYCbf = 0;
648    UInt uiUCbf = 0;
649    UInt uiVCbf = 0;
650   
651    for( Int i = 0; i < 4; i++ )
652    {
653      xDecodeTransform( pcCU, offsetLuma, offsetChroma, uiAbsPartIdx, uiDepth, width, height, uiTrIdx, bCodeDQP, quadtreeTULog2MinSizeInCU );
654      uiYCbf |= pcCU->getCbf( uiAbsPartIdx, TEXT_LUMA, uiTrDepth+1 );
655      uiUCbf |= pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_U, uiTrDepth+1 );
656      uiVCbf |= pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_V, uiTrDepth+1 );
657      uiAbsPartIdx += uiQPartNum;
658      offsetLuma += size;  offsetChroma += (size>>2);
659    }
660   
661    for( UInt ui = 0; ui < 4 * uiQPartNum; ++ui )
662    {
663      pcCU->getCbf( TEXT_LUMA     )[uiStartAbsPartIdx + ui] |= uiYCbf << uiTrDepth;
664      pcCU->getCbf( TEXT_CHROMA_U )[uiStartAbsPartIdx + ui] |= uiUCbf << uiTrDepth;
665      pcCU->getCbf( TEXT_CHROMA_V )[uiStartAbsPartIdx + ui] |= uiVCbf << uiTrDepth;
666    }
667  }
668  else
669  {
670    assert( uiDepth >= pcCU->getDepth( uiAbsPartIdx ) );
671    pcCU->setTrIdxSubParts( uiTrDepth, uiAbsPartIdx, uiDepth );
672   
673#if !H_MV_ENC_DEC_TRAC
674    {
675      DTRACE_CABAC_VL( g_nSymbolCounter++ );
676      DTRACE_CABAC_T( "\tTrIdx: abspart=" );
677      DTRACE_CABAC_V( uiAbsPartIdx );
678      DTRACE_CABAC_T( "\tdepth=" );
679      DTRACE_CABAC_V( uiDepth );
680      DTRACE_CABAC_T( "\ttrdepth=" );
681      DTRACE_CABAC_V( uiTrDepth );
682      DTRACE_CABAC_T( "\n" );
683    }
684#endif
685   
686    pcCU->setCbfSubParts ( 0, TEXT_LUMA, uiAbsPartIdx, uiDepth );
687    if( pcCU->getPredictionMode(uiAbsPartIdx) != MODE_INTRA && uiDepth == pcCU->getDepth( uiAbsPartIdx ) && !pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_U, 0 ) && !pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_V, 0 ) )
688    {
689      pcCU->setCbfSubParts( 1 << uiTrDepth, TEXT_LUMA, uiAbsPartIdx, uiDepth );
690    }
691    else
692    {
693      m_pcEntropyDecoderIf->parseQtCbf( pcCU, uiAbsPartIdx, TEXT_LUMA, uiTrDepth, uiDepth );
694    }
695
696
697    // transform_unit begin
698    UInt cbfY = pcCU->getCbf( uiAbsPartIdx, TEXT_LUMA    , uiTrIdx );
699    UInt cbfU = pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_U, uiTrIdx );
700    UInt cbfV = pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_V, uiTrIdx );
701    if( uiLog2TrafoSize == 2 )
702    {
703      UInt partNum = pcCU->getPic()->getNumPartInCU() >> ( ( uiDepth - 1 ) << 1 );
704      if( ( uiAbsPartIdx % partNum ) == (partNum - 1) )
705      {
706        cbfU = pcCU->getCbf( m_uiBakAbsPartIdx, TEXT_CHROMA_U, uiTrIdx );
707        cbfV = pcCU->getCbf( m_uiBakAbsPartIdx, TEXT_CHROMA_V, uiTrIdx );
708      }
709    }
710    if ( cbfY || cbfU || cbfV )
711    {
712      // dQP: only for LCU
713      if ( pcCU->getSlice()->getPPS()->getUseDQP() )
714      {
715        if ( bCodeDQP )
716        {
717          decodeQP( pcCU, m_bakAbsPartIdxCU);
718          bCodeDQP = false;
719        }
720      }
721    }
722    if( cbfY )
723    {
724      Int trWidth = width;
725      Int trHeight = height;
726      m_pcEntropyDecoderIf->parseCoeffNxN( pcCU, (pcCU->getCoeffY()+offsetLuma), uiAbsPartIdx, trWidth, trHeight, uiDepth, TEXT_LUMA );
727    }
728    if( uiLog2TrafoSize > 2 )
729    {
730      Int trWidth = width >> 1;
731      Int trHeight = height >> 1;
732      if( cbfU )
733      {
734        m_pcEntropyDecoderIf->parseCoeffNxN( pcCU, (pcCU->getCoeffCb()+offsetChroma), uiAbsPartIdx, trWidth, trHeight, uiDepth, TEXT_CHROMA_U );
735      }
736      if( cbfV )
737      {
738        m_pcEntropyDecoderIf->parseCoeffNxN( pcCU, (pcCU->getCoeffCr()+offsetChroma), uiAbsPartIdx, trWidth, trHeight, uiDepth, TEXT_CHROMA_V );
739      }
740    }
741    else
742    {
743      UInt partNum = pcCU->getPic()->getNumPartInCU() >> ( ( uiDepth - 1 ) << 1 );
744      if( ( uiAbsPartIdx % partNum ) == (partNum - 1) )
745      {
746        Int trWidth = width;
747        Int trHeight = height;
748        if( cbfU )
749        {
750          m_pcEntropyDecoderIf->parseCoeffNxN( pcCU, (pcCU->getCoeffCb()+m_uiBakChromaOffset), m_uiBakAbsPartIdx, trWidth, trHeight, uiDepth, TEXT_CHROMA_U );
751        }
752        if( cbfV )
753        {
754          m_pcEntropyDecoderIf->parseCoeffNxN( pcCU, (pcCU->getCoeffCr()+m_uiBakChromaOffset), m_uiBakAbsPartIdx, trWidth, trHeight, uiDepth, TEXT_CHROMA_V );
755        }
756      }
757    }
758    // transform_unit end
759  }
760}
761
762Void TDecEntropy::decodeQP          ( TComDataCU* pcCU, UInt uiAbsPartIdx )
763{
764  if ( pcCU->getSlice()->getPPS()->getUseDQP() )
765  {
766    m_pcEntropyDecoderIf->parseDeltaQP( pcCU, uiAbsPartIdx, pcCU->getDepth( uiAbsPartIdx ) );
767  }
768}
769
770
771/** decode coefficients
772 * \param pcCU
773 * \param uiAbsPartIdx
774 * \param uiDepth
775 * \param uiWidth
776 * \param uiHeight
777 * \returns Void
778 */
779Void TDecEntropy::decodeCoeff( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth, UInt uiWidth, UInt uiHeight, Bool& bCodeDQP )
780{
781  UInt uiMinCoeffSize = pcCU->getPic()->getMinCUWidth()*pcCU->getPic()->getMinCUHeight();
782  UInt uiLumaOffset   = uiMinCoeffSize*uiAbsPartIdx;
783  UInt uiChromaOffset = uiLumaOffset>>2;
784#if H_3D_DIM_SDC
785  if( pcCU->getSDCFlag( uiAbsPartIdx ) && pcCU->isIntra( uiAbsPartIdx) )
786  {
787    assert( pcCU->getPartitionSize(uiAbsPartIdx) == SIZE_2Nx2N );
788    assert( pcCU->getTransformIdx(uiAbsPartIdx) == 0 );
789    assert( pcCU->getCbf(uiAbsPartIdx, TEXT_LUMA) == 1 );
790    assert( pcCU->getCbf(uiAbsPartIdx, TEXT_CHROMA_U) == 1 );
791    assert( pcCU->getCbf(uiAbsPartIdx, TEXT_CHROMA_V) == 1 );
792  }
793
794#if H_3D_INTER_SDC
795  if( pcCU->getSDCFlag( uiAbsPartIdx ) && !pcCU->isIntra( uiAbsPartIdx) )
796  {
797    assert( !pcCU->isSkipped( uiAbsPartIdx ) );
798    assert( !pcCU->isIntra( uiAbsPartIdx) );
799    assert( pcCU->getSlice()->getIsDepth() );
800  }
801#endif
802  if( pcCU->getSlice()->getIsDepth() && ( pcCU->getSDCFlag( uiAbsPartIdx ) || pcCU->isIntra( uiAbsPartIdx ) ) )
803  {
804    Int iPartNum = ( pcCU->isIntra( uiAbsPartIdx ) && pcCU->getPartitionSize( uiAbsPartIdx ) == SIZE_NxN ) ? 4 : 1;
805    UInt uiPartOffset = ( pcCU->getPic()->getNumPartInCU() >> ( pcCU->getDepth( uiAbsPartIdx ) << 1 ) ) >> 2;
806 
807    if( !pcCU->getSDCFlag( uiAbsPartIdx ) )
808    {
809      for( Int iPart = 0; iPart < iPartNum; iPart++ )
810      {
811        if( getDimType( pcCU->getLumaIntraDir( uiAbsPartIdx + uiPartOffset*iPart ) ) < DIM_NUM_TYPE ) 
812        {
813          m_pcEntropyDecoderIf->parseDeltaDC( pcCU, uiAbsPartIdx + uiPartOffset*iPart, uiDepth + ( pcCU->getPartitionSize( uiAbsPartIdx ) == SIZE_NxN ) );
814        }
815      }
816    }
817    else
818    {
819      m_pcEntropyDecoderIf->parseDeltaDC( pcCU, uiAbsPartIdx, uiDepth );
820      return;
821    }
822  }
823#endif
824
825  if( pcCU->isIntra(uiAbsPartIdx) )
826  {
827  }
828  else
829  {
830    UInt uiQtRootCbf = 1;
831    if( !( pcCU->getPartitionSize( uiAbsPartIdx) == SIZE_2Nx2N && pcCU->getMergeFlag( uiAbsPartIdx ) ) )
832    {
833      m_pcEntropyDecoderIf->parseQtRootCbf( uiAbsPartIdx, uiQtRootCbf );
834    }
835    if ( !uiQtRootCbf )
836    {
837      pcCU->setCbfSubParts( 0, 0, 0, uiAbsPartIdx, uiDepth );
838      pcCU->setTrIdxSubParts( 0 , uiAbsPartIdx, uiDepth );
839      return;
840    }
841   
842  }
843
844  Int getQuadtreeTULog2MinSizeInCU = pcCU->getQuadtreeTULog2MinSizeInCU(uiAbsPartIdx);
845
846  xDecodeTransform( pcCU, uiLumaOffset, uiChromaOffset, uiAbsPartIdx, uiDepth, uiWidth, uiHeight, 0, bCodeDQP, getQuadtreeTULog2MinSizeInCU );
847}
848
849#if H_3D_INTER_SDC
850Void TDecEntropy::decodeSDCFlag( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth )
851{
852  pcCU->setSDCFlagSubParts( false, uiAbsPartIdx, uiDepth );
853
854#if HHI_TOOL_PARAMETERS_I2_J0107
855  if( ( !pcCU->isIntra( uiAbsPartIdx ) && !pcCU->getSlice()->getInterSdcFlag() ) || 
856    ( pcCU->isIntra( uiAbsPartIdx ) && !pcCU->getSlice()->getIntraSdcWedgeFlag() ) )
857#else
858  if( ( !pcCU->isIntra( uiAbsPartIdx ) && !pcCU->getSlice()->getVPS()->getInterSDCFlag( pcCU->getSlice()->getLayerIdInVps() ) ) || 
859    ( pcCU->isIntra( uiAbsPartIdx ) && !pcCU->getSlice()->getVPS()->getVpsDepthModesFlag( pcCU->getSlice()->getLayerIdInVps() ) ) )
860#endif
861  {
862    return;
863  }
864
865  if( !pcCU->getSlice()->getIsDepth() || pcCU->getPartitionSize( uiAbsPartIdx ) != SIZE_2Nx2N || pcCU->isSkipped( uiAbsPartIdx ) )
866  {
867    return;
868  }
869
870  assert( pcCU->getPartitionSize( uiAbsPartIdx ) == SIZE_2Nx2N || ( !pcCU->isIntra( uiAbsPartIdx ) && !pcCU->isSkipped( uiAbsPartIdx ) ) );
871  m_pcEntropyDecoderIf->parseSDCFlag( pcCU, uiAbsPartIdx, uiDepth );
872}
873#endif
874#if H_3D_DBBP
875Void TDecEntropy::decodeDBBPFlag( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth )
876{
877  m_pcEntropyDecoderIf->parseDBBPFlag( pcCU, uiAbsPartIdx, uiDepth );
878}
879#endif
880
881//! \}
Note: See TracBrowser for help on using the repository browser.