source: 3DVCSoftware/branches/HTM-10.2-dev2-MediaTek/source/Lib/TLibDecoder/TDecEntropy.cpp @ 921

Last change on this file since 921 was 921, checked in by mediatek-htm, 10 years ago

Integration of H0094

  • Property svn:eol-style set to native
File size: 31.4 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, vspFlag, inheritedVSPDisInfo
309#if H_3D_SPIVMP
310            , bSPIVMPFlag, pcMvFieldSP, puhInterDirSP
311#endif
312            , numValidMergeCand );
313          pcCU->setVSPFlagSubParts( vspFlag[uiMergeIndex], uiSubPartIdx, uiPartIdx, uiDepth );
314
315          if(vspFlag[uiMergeIndex])
316          {
317            pcCU->setDvInfoSubParts(inheritedVSPDisInfo[uiMergeIndex].m_acDvInfo, uiSubPartIdx, uiPartIdx, uiDepth);
318          }
319#else
320#if H_3D
321          pcSubCU->initAvailableFlags();
322          pcSubCU->getInterMergeCandidates( 0, 0, cMvFieldNeighbours, uhInterDirNeighbours, numValidMergeCand);
323          pcSubCU->xGetInterMergeCandidates( 0, 0, cMvFieldNeighbours, uhInterDirNeighbours, numValidMergeCand );
324
325#else
326          pcSubCU->getInterMergeCandidates( 0, 0, cMvFieldNeighbours, uhInterDirNeighbours, numValidMergeCand );
327#endif
328#endif
329          isMerged = true;
330        }
331        pcSubCU->setPartSizeSubParts( ePartSize, 0, uiDepth );
332      }
333      else
334      {
335        uiMergeIndex = pcCU->getMergeIndex(uiSubPartIdx);
336#if H_3D_VSP
337        Int vspFlag[MRG_MAX_NUM_CANDS_MEM];
338        memset(vspFlag, 0, sizeof(Int)*MRG_MAX_NUM_CANDS_MEM);
339        InheritedVSPDisInfo inheritedVSPDisInfo[MRG_MAX_NUM_CANDS_MEM];
340#if H_3D_SPIVMP
341        memset(bSPIVMPFlag, false, sizeof(Bool)*MRG_MAX_NUM_CANDS_MEM);
342#endif
343        pcSubCU->initAvailableFlags();
344        pcSubCU->getInterMergeCandidates( uiSubPartIdx-uiAbsPartIdx, uiPartIdx, cMvFieldNeighbours, uhInterDirNeighbours, numValidMergeCand, uiMergeIndex );
345        pcSubCU->xGetInterMergeCandidates( uiSubPartIdx-uiAbsPartIdx, uiPartIdx, cMvFieldNeighbours, uhInterDirNeighbours, vspFlag, inheritedVSPDisInfo
346#if H_3D_SPIVMP
347          , bSPIVMPFlag, pcMvFieldSP, puhInterDirSP
348#endif
349          ,numValidMergeCand, uiMergeIndex );
350        pcCU->setVSPFlagSubParts( vspFlag[uiMergeIndex], uiSubPartIdx, uiPartIdx, uiDepth );
351        if(vspFlag[uiMergeIndex])
352        {
353          pcCU->setDvInfoSubParts(inheritedVSPDisInfo[uiMergeIndex].m_acDvInfo, uiSubPartIdx, uiPartIdx, uiDepth);
354        }
355#else
356#if H_3D
357        pcSubCU->initAvailableFlags();
358        pcSubCU->getInterMergeCandidates( uiSubPartIdx-uiAbsPartIdx, uiPartIdx, cMvFieldNeighbours, uhInterDirNeighbours, numValidMergeCand, uiMergeIndex );
359        pcSubCU->xGetInterMergeCandidates( uiSubPartIdx-uiAbsPartIdx, uiPartIdx, cMvFieldNeighbours, uhInterDirNeighbours, numValidMergeCand, uiMergeIndex );
360#else
361        pcSubCU->getInterMergeCandidates( uiSubPartIdx-uiAbsPartIdx, uiPartIdx, cMvFieldNeighbours, uhInterDirNeighbours, numValidMergeCand, uiMergeIndex );
362#endif
363#endif
364      }
365      pcCU->setInterDirSubParts( uhInterDirNeighbours[uiMergeIndex], uiSubPartIdx, uiPartIdx, uiDepth );
366
367#if H_3D_DDD
368      if( uiMergeIndex == pcSubCU->getUseDDDCandIdx() )
369      {
370          assert( pcCU->getSlice()->getViewIndex() != 0 );
371          pcCU->setUseDDD( true, uiSubPartIdx, uiPartIdx, uiDepth );
372          pcCU->setDDDepthSubParts( pcSubCU->getDDTmpDepth(),uiSubPartIdx, uiPartIdx, uiDepth );
373      }
374      else
375      {
376          pcCU->setUseDDD( false, uiSubPartIdx, uiPartIdx, uiDepth );
377      }
378#endif
379
380      TComMv cTmpMv( 0, 0 );
381      for ( UInt uiRefListIdx = 0; uiRefListIdx < 2; uiRefListIdx++ )
382      {       
383        if ( pcCU->getSlice()->getNumRefIdx( RefPicList( uiRefListIdx ) ) > 0 )
384        {
385          pcCU->setMVPIdxSubParts( 0, RefPicList( uiRefListIdx ), uiSubPartIdx, uiPartIdx, uiDepth);
386          pcCU->setMVPNumSubParts( 0, RefPicList( uiRefListIdx ), uiSubPartIdx, uiPartIdx, uiDepth);
387          pcCU->getCUMvField( RefPicList( uiRefListIdx ) )->setAllMvd( cTmpMv, ePartSize, uiSubPartIdx, uiDepth, uiPartIdx );
388          pcCU->getCUMvField( RefPicList( uiRefListIdx ) )->setAllMvField( cMvFieldNeighbours[ 2*uiMergeIndex + uiRefListIdx ], ePartSize, uiSubPartIdx, uiDepth, uiPartIdx );
389#if H_3D_VSP
390#if H_3D_DBBP
391          if( pcCU->getVSPFlag( uiSubPartIdx ) != 0 && !pcCU->getDBBPFlag( uiAbsPartIdx ) )
392#else
393          if( pcCU->getVSPFlag( uiSubPartIdx ) != 0 )
394#endif
395          {
396            if ( uhInterDirNeighbours[ uiMergeIndex ] & (1<<uiRefListIdx) )
397            {
398              UInt dummy;
399              Int vspSize;
400              Int width, height;
401              pcCU->getPartIndexAndSize( uiPartIdx, dummy, width, height, uiSubPartIdx, pcCU->getTotalNumPart()==256 );
402              pcCU->setMvFieldPUForVSP( pcCU, uiSubPartIdx, width, height, RefPicList( uiRefListIdx ), cMvFieldNeighbours[ 2*uiMergeIndex + uiRefListIdx ].getRefIdx(), vspSize );
403              pcCU->setVSPFlag( uiSubPartIdx, vspSize );
404            }
405          }
406#endif
407        }
408      }
409#if H_3D_SPIVMP
410      pcCU->setSPIVMPFlagSubParts(bSPIVMPFlag[uiMergeIndex], uiSubPartIdx, uiPartIdx, uiDepth ); 
411      if (bSPIVMPFlag[uiMergeIndex] != 0)
412      {
413        Int iWidth, iHeight;
414        UInt uiIdx;
415        pcCU->getPartIndexAndSize( uiPartIdx, uiIdx, iWidth, iHeight, uiSubPartIdx, true );
416
417        UInt uiSPAddr;
418
419        Int iNumSPInOneLine, iNumSP, iSPWidth, iSPHeight;
420
421        pcCU->getSPPara(iWidth, iHeight, iNumSP, iNumSPInOneLine, iSPWidth, iSPHeight);
422
423        for (Int iPartitionIdx = 0; iPartitionIdx < iNumSP; iPartitionIdx++)
424        {
425          pcCU->getSPAbsPartIdx(uiSubPartIdx, iSPWidth, iSPHeight, iPartitionIdx, iNumSPInOneLine, uiSPAddr);
426          pcCU->setInterDirSP(puhInterDirSP[iPartitionIdx], uiSPAddr, iSPWidth, iSPHeight);
427          pcCU->getCUMvField( REF_PIC_LIST_0 )->setMvFieldSP(pcCU, uiSPAddr, pcMvFieldSP[2*iPartitionIdx], iSPWidth, iSPHeight);
428          pcCU->getCUMvField( REF_PIC_LIST_1 )->setMvFieldSP(pcCU, uiSPAddr, pcMvFieldSP[2*iPartitionIdx + 1], iSPWidth, iSPHeight);
429        }
430      }
431#endif
432    }
433    else
434    {
435      decodeInterDirPU( pcCU, uiSubPartIdx, uiDepth, uiPartIdx );
436      for ( UInt uiRefListIdx = 0; uiRefListIdx < 2; uiRefListIdx++ )
437      {       
438        if ( pcCU->getSlice()->getNumRefIdx( RefPicList( uiRefListIdx ) ) > 0 )
439        {
440          decodeRefFrmIdxPU( pcCU,    uiSubPartIdx,              uiDepth, uiPartIdx, RefPicList( uiRefListIdx ) );
441          decodeMvdPU      ( pcCU,    uiSubPartIdx,              uiDepth, uiPartIdx, RefPicList( uiRefListIdx ) );
442          decodeMVPIdxPU   ( pcSubCU, uiSubPartIdx-uiAbsPartIdx, uiDepth, uiPartIdx, RefPicList( uiRefListIdx ) );
443        }
444      }
445#if H_3D_ARP
446      decodeARPW  ( pcCU, uiAbsPartIdx, uiDepth );
447#endif
448#if H_3D_IC
449      decodeICFlag( pcCU, uiAbsPartIdx, uiDepth );
450#endif
451    }
452#if H_3D_VSP
453    if ( (pcCU->getInterDir(uiSubPartIdx) == 3) && pcSubCU->isBipredRestriction(uiPartIdx) && (pcCU->getVSPFlag(uiSubPartIdx) == 0))
454#else
455    if ( (pcCU->getInterDir(uiSubPartIdx) == 3) && pcSubCU->isBipredRestriction(uiPartIdx) )
456#endif
457    {
458      pcCU->getCUMvField( REF_PIC_LIST_1 )->setAllMv( TComMv(0,0), ePartSize, uiSubPartIdx, uiDepth, uiPartIdx);
459      pcCU->getCUMvField( REF_PIC_LIST_1 )->setAllRefIdx( -1, ePartSize, uiSubPartIdx, uiDepth, uiPartIdx);
460      pcCU->setInterDirSubParts( 1, uiSubPartIdx, uiPartIdx, uiDepth);
461    }
462  }
463#if H_3D_SPIVMP
464  delete[] pcMvFieldSP;
465  delete[] puhInterDirSP;
466#endif
467  return;
468}
469
470/** decode inter direction for a PU block
471 * \param pcCU
472 * \param uiAbsPartIdx
473 * \param uiDepth
474 * \param uiPartIdx
475 * \returns Void
476 */
477Void TDecEntropy::decodeInterDirPU( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth, UInt uiPartIdx )
478{
479  UInt uiInterDir;
480
481  if ( pcCU->getSlice()->isInterP() )
482  {
483    uiInterDir = 1;
484  }
485  else
486  {
487    m_pcEntropyDecoderIf->parseInterDir( pcCU, uiInterDir, uiAbsPartIdx );
488  }
489
490  pcCU->setInterDirSubParts( uiInterDir, uiAbsPartIdx, uiPartIdx, uiDepth );
491}
492
493Void TDecEntropy::decodeRefFrmIdxPU( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth, UInt uiPartIdx, RefPicList eRefList )
494{
495  Int iRefFrmIdx = 0;
496  Int iParseRefFrmIdx = pcCU->getInterDir( uiAbsPartIdx ) & ( 1 << eRefList );
497
498  if ( pcCU->getSlice()->getNumRefIdx( eRefList ) > 1 && iParseRefFrmIdx )
499  {
500    m_pcEntropyDecoderIf->parseRefFrmIdx( pcCU, iRefFrmIdx, eRefList );
501  }
502  else if ( !iParseRefFrmIdx )
503  {
504    iRefFrmIdx = NOT_VALID;
505  }
506  else
507  {
508    iRefFrmIdx = 0;
509  }
510
511  PartSize ePartSize = pcCU->getPartitionSize( uiAbsPartIdx );
512  pcCU->getCUMvField( eRefList )->setAllRefIdx( iRefFrmIdx, ePartSize, uiAbsPartIdx, uiDepth, uiPartIdx );
513}
514
515/** decode motion vector difference for a PU block
516 * \param pcCU
517 * \param uiAbsPartIdx
518 * \param uiDepth
519 * \param uiPartIdx
520 * \param eRefList
521 * \returns Void
522 */
523Void TDecEntropy::decodeMvdPU( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth, UInt uiPartIdx, RefPicList eRefList )
524{
525  if ( pcCU->getInterDir( uiAbsPartIdx ) & ( 1 << eRefList ) )
526  {
527    m_pcEntropyDecoderIf->parseMvd( pcCU, uiAbsPartIdx, uiPartIdx, uiDepth, eRefList );
528  }
529}
530
531Void TDecEntropy::decodeMVPIdxPU( TComDataCU* pcSubCU, UInt uiPartAddr, UInt uiDepth, UInt uiPartIdx, RefPicList eRefList )
532{
533  Int iMVPIdx = -1;
534
535  TComMv cZeroMv( 0, 0 );
536  TComMv cMv     = cZeroMv;
537  Int    iRefIdx = -1;
538
539  TComCUMvField* pcSubCUMvField = pcSubCU->getCUMvField( eRefList );
540  AMVPInfo* pAMVPInfo = pcSubCUMvField->getAMVPInfo();
541
542  iRefIdx = pcSubCUMvField->getRefIdx(uiPartAddr);
543  cMv = cZeroMv;
544
545  if ( (pcSubCU->getInterDir(uiPartAddr) & ( 1 << eRefList )) )
546  {
547    m_pcEntropyDecoderIf->parseMVPIdx( iMVPIdx );
548#if H_MV_ENC_DEC_TRAC
549#if ENC_DEC_TRACE
550    if ( eRefList == REF_PIC_LIST_0 )
551    {
552      DTRACE_PU("mvp_l0_flag", iMVPIdx)
553    }
554    else
555    {
556      DTRACE_PU("mvp_l1_flag", iMVPIdx)
557    }
558#endif
559#endif
560  }
561  pcSubCU->fillMvpCand(uiPartIdx, uiPartAddr, eRefList, iRefIdx, pAMVPInfo);
562  pcSubCU->setMVPNumSubParts(pAMVPInfo->iN, eRefList, uiPartAddr, uiPartIdx, uiDepth);
563  pcSubCU->setMVPIdxSubParts( iMVPIdx, eRefList, uiPartAddr, uiPartIdx, uiDepth );
564  if ( iRefIdx >= 0 )
565  {
566    m_pcPrediction->getMvPredAMVP( pcSubCU, uiPartIdx, uiPartAddr, eRefList, cMv);
567    cMv += pcSubCUMvField->getMvd( uiPartAddr );
568  }
569
570  PartSize ePartSize = pcSubCU->getPartitionSize( uiPartAddr );
571  pcSubCU->getCUMvField( eRefList )->setAllMv(cMv, ePartSize, uiPartAddr, 0, uiPartIdx);
572}
573
574Void TDecEntropy::xDecodeTransform( TComDataCU* pcCU, UInt offsetLuma, UInt offsetChroma, UInt uiAbsPartIdx, UInt uiDepth, UInt width, UInt height, UInt uiTrIdx, Bool& bCodeDQP, Int quadtreeTULog2MinSizeInCU)
575{
576  UInt uiSubdiv;
577  const UInt uiLog2TrafoSize = g_aucConvertToBit[pcCU->getSlice()->getSPS()->getMaxCUWidth()]+2 - uiDepth;
578
579  if(uiTrIdx==0)
580  {
581    m_bakAbsPartIdxCU = uiAbsPartIdx;
582  }
583  if( uiLog2TrafoSize == 2 )
584  {
585    UInt partNum = pcCU->getPic()->getNumPartInCU() >> ( ( uiDepth - 1 ) << 1 );
586    if( ( uiAbsPartIdx % partNum ) == 0 )
587    {
588      m_uiBakAbsPartIdx   = uiAbsPartIdx;
589      m_uiBakChromaOffset = offsetChroma;
590    }
591  }
592  if( pcCU->getPredictionMode(uiAbsPartIdx) == MODE_INTRA && pcCU->getPartitionSize(uiAbsPartIdx) == SIZE_NxN && uiDepth == pcCU->getDepth(uiAbsPartIdx) )
593  {
594    uiSubdiv = 1;
595  }
596  else if( (pcCU->getSlice()->getSPS()->getQuadtreeTUMaxDepthInter() == 1) && (pcCU->getPredictionMode(uiAbsPartIdx) == MODE_INTER) && ( pcCU->getPartitionSize(uiAbsPartIdx) != SIZE_2Nx2N ) && (uiDepth == pcCU->getDepth(uiAbsPartIdx)) )
597  {
598    uiSubdiv = (uiLog2TrafoSize > quadtreeTULog2MinSizeInCU);
599  }
600  else if( uiLog2TrafoSize > pcCU->getSlice()->getSPS()->getQuadtreeTULog2MaxSize() )
601  {
602    uiSubdiv = 1;
603  }
604  else if( uiLog2TrafoSize == pcCU->getSlice()->getSPS()->getQuadtreeTULog2MinSize() )
605  {
606    uiSubdiv = 0;
607  }
608  else if( uiLog2TrafoSize == quadtreeTULog2MinSizeInCU )
609  {
610    uiSubdiv = 0;
611  }
612  else
613  {
614    assert( uiLog2TrafoSize > quadtreeTULog2MinSizeInCU );
615    m_pcEntropyDecoderIf->parseTransformSubdivFlag( uiSubdiv, 5 - uiLog2TrafoSize );
616  }
617 
618  const UInt uiTrDepth = uiDepth - pcCU->getDepth( uiAbsPartIdx );
619  {
620    const Bool bFirstCbfOfCU = uiTrDepth == 0;
621    if( bFirstCbfOfCU )
622    {
623      pcCU->setCbfSubParts( 0, TEXT_CHROMA_U, uiAbsPartIdx, uiDepth );
624      pcCU->setCbfSubParts( 0, TEXT_CHROMA_V, uiAbsPartIdx, uiDepth );
625    }
626    if( bFirstCbfOfCU || uiLog2TrafoSize > 2 )
627    {
628      if( bFirstCbfOfCU || pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_U, uiTrDepth - 1 ) )
629      {
630        m_pcEntropyDecoderIf->parseQtCbf( pcCU, uiAbsPartIdx, TEXT_CHROMA_U, uiTrDepth, uiDepth );
631      }
632      if( bFirstCbfOfCU || pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_V, uiTrDepth - 1 ) )
633      {
634        m_pcEntropyDecoderIf->parseQtCbf( pcCU, uiAbsPartIdx, TEXT_CHROMA_V, uiTrDepth, uiDepth );
635      }
636    }
637    else
638    {
639      pcCU->setCbfSubParts( pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_U, uiTrDepth - 1 ) << uiTrDepth, TEXT_CHROMA_U, uiAbsPartIdx, uiDepth );
640      pcCU->setCbfSubParts( pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_V, uiTrDepth - 1 ) << uiTrDepth, TEXT_CHROMA_V, uiAbsPartIdx, uiDepth );
641    }
642  }
643 
644  if( uiSubdiv )
645  {
646    UInt size;
647    width  >>= 1;
648    height >>= 1;
649    size = width*height;
650    uiTrIdx++;
651    ++uiDepth;
652    const UInt uiQPartNum = pcCU->getPic()->getNumPartInCU() >> (uiDepth << 1);
653    const UInt uiStartAbsPartIdx = uiAbsPartIdx;
654    UInt uiYCbf = 0;
655    UInt uiUCbf = 0;
656    UInt uiVCbf = 0;
657   
658    for( Int i = 0; i < 4; i++ )
659    {
660      xDecodeTransform( pcCU, offsetLuma, offsetChroma, uiAbsPartIdx, uiDepth, width, height, uiTrIdx, bCodeDQP, quadtreeTULog2MinSizeInCU );
661      uiYCbf |= pcCU->getCbf( uiAbsPartIdx, TEXT_LUMA, uiTrDepth+1 );
662      uiUCbf |= pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_U, uiTrDepth+1 );
663      uiVCbf |= pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_V, uiTrDepth+1 );
664      uiAbsPartIdx += uiQPartNum;
665      offsetLuma += size;  offsetChroma += (size>>2);
666    }
667   
668    for( UInt ui = 0; ui < 4 * uiQPartNum; ++ui )
669    {
670      pcCU->getCbf( TEXT_LUMA     )[uiStartAbsPartIdx + ui] |= uiYCbf << uiTrDepth;
671      pcCU->getCbf( TEXT_CHROMA_U )[uiStartAbsPartIdx + ui] |= uiUCbf << uiTrDepth;
672      pcCU->getCbf( TEXT_CHROMA_V )[uiStartAbsPartIdx + ui] |= uiVCbf << uiTrDepth;
673    }
674  }
675  else
676  {
677    assert( uiDepth >= pcCU->getDepth( uiAbsPartIdx ) );
678    pcCU->setTrIdxSubParts( uiTrDepth, uiAbsPartIdx, uiDepth );
679   
680#if !H_MV_ENC_DEC_TRAC
681    {
682      DTRACE_CABAC_VL( g_nSymbolCounter++ );
683      DTRACE_CABAC_T( "\tTrIdx: abspart=" );
684      DTRACE_CABAC_V( uiAbsPartIdx );
685      DTRACE_CABAC_T( "\tdepth=" );
686      DTRACE_CABAC_V( uiDepth );
687      DTRACE_CABAC_T( "\ttrdepth=" );
688      DTRACE_CABAC_V( uiTrDepth );
689      DTRACE_CABAC_T( "\n" );
690    }
691#endif
692   
693    pcCU->setCbfSubParts ( 0, TEXT_LUMA, uiAbsPartIdx, uiDepth );
694    if( pcCU->getPredictionMode(uiAbsPartIdx) != MODE_INTRA && uiDepth == pcCU->getDepth( uiAbsPartIdx ) && !pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_U, 0 ) && !pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_V, 0 ) )
695    {
696      pcCU->setCbfSubParts( 1 << uiTrDepth, TEXT_LUMA, uiAbsPartIdx, uiDepth );
697    }
698    else
699    {
700      m_pcEntropyDecoderIf->parseQtCbf( pcCU, uiAbsPartIdx, TEXT_LUMA, uiTrDepth, uiDepth );
701    }
702
703
704    // transform_unit begin
705    UInt cbfY = pcCU->getCbf( uiAbsPartIdx, TEXT_LUMA    , uiTrIdx );
706    UInt cbfU = pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_U, uiTrIdx );
707    UInt cbfV = pcCU->getCbf( uiAbsPartIdx, TEXT_CHROMA_V, uiTrIdx );
708    if( uiLog2TrafoSize == 2 )
709    {
710      UInt partNum = pcCU->getPic()->getNumPartInCU() >> ( ( uiDepth - 1 ) << 1 );
711      if( ( uiAbsPartIdx % partNum ) == (partNum - 1) )
712      {
713        cbfU = pcCU->getCbf( m_uiBakAbsPartIdx, TEXT_CHROMA_U, uiTrIdx );
714        cbfV = pcCU->getCbf( m_uiBakAbsPartIdx, TEXT_CHROMA_V, uiTrIdx );
715      }
716    }
717    if ( cbfY || cbfU || cbfV )
718    {
719      // dQP: only for LCU
720      if ( pcCU->getSlice()->getPPS()->getUseDQP() )
721      {
722        if ( bCodeDQP )
723        {
724          decodeQP( pcCU, m_bakAbsPartIdxCU);
725          bCodeDQP = false;
726        }
727      }
728    }
729    if( cbfY )
730    {
731      Int trWidth = width;
732      Int trHeight = height;
733      m_pcEntropyDecoderIf->parseCoeffNxN( pcCU, (pcCU->getCoeffY()+offsetLuma), uiAbsPartIdx, trWidth, trHeight, uiDepth, TEXT_LUMA );
734    }
735    if( uiLog2TrafoSize > 2 )
736    {
737      Int trWidth = width >> 1;
738      Int trHeight = height >> 1;
739      if( cbfU )
740      {
741        m_pcEntropyDecoderIf->parseCoeffNxN( pcCU, (pcCU->getCoeffCb()+offsetChroma), uiAbsPartIdx, trWidth, trHeight, uiDepth, TEXT_CHROMA_U );
742      }
743      if( cbfV )
744      {
745        m_pcEntropyDecoderIf->parseCoeffNxN( pcCU, (pcCU->getCoeffCr()+offsetChroma), uiAbsPartIdx, trWidth, trHeight, uiDepth, TEXT_CHROMA_V );
746      }
747    }
748    else
749    {
750      UInt partNum = pcCU->getPic()->getNumPartInCU() >> ( ( uiDepth - 1 ) << 1 );
751      if( ( uiAbsPartIdx % partNum ) == (partNum - 1) )
752      {
753        Int trWidth = width;
754        Int trHeight = height;
755        if( cbfU )
756        {
757          m_pcEntropyDecoderIf->parseCoeffNxN( pcCU, (pcCU->getCoeffCb()+m_uiBakChromaOffset), m_uiBakAbsPartIdx, trWidth, trHeight, uiDepth, TEXT_CHROMA_U );
758        }
759        if( cbfV )
760        {
761          m_pcEntropyDecoderIf->parseCoeffNxN( pcCU, (pcCU->getCoeffCr()+m_uiBakChromaOffset), m_uiBakAbsPartIdx, trWidth, trHeight, uiDepth, TEXT_CHROMA_V );
762        }
763      }
764    }
765    // transform_unit end
766  }
767}
768
769Void TDecEntropy::decodeQP          ( TComDataCU* pcCU, UInt uiAbsPartIdx )
770{
771  if ( pcCU->getSlice()->getPPS()->getUseDQP() )
772  {
773    m_pcEntropyDecoderIf->parseDeltaQP( pcCU, uiAbsPartIdx, pcCU->getDepth( uiAbsPartIdx ) );
774  }
775}
776
777
778/** decode coefficients
779 * \param pcCU
780 * \param uiAbsPartIdx
781 * \param uiDepth
782 * \param uiWidth
783 * \param uiHeight
784 * \returns Void
785 */
786Void TDecEntropy::decodeCoeff( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth, UInt uiWidth, UInt uiHeight, Bool& bCodeDQP )
787{
788  UInt uiMinCoeffSize = pcCU->getPic()->getMinCUWidth()*pcCU->getPic()->getMinCUHeight();
789  UInt uiLumaOffset   = uiMinCoeffSize*uiAbsPartIdx;
790  UInt uiChromaOffset = uiLumaOffset>>2;
791#if H_3D_DIM_SDC
792  if( pcCU->getSDCFlag( uiAbsPartIdx ) && pcCU->isIntra( uiAbsPartIdx) )
793  {
794    assert( pcCU->getPartitionSize(uiAbsPartIdx) == SIZE_2Nx2N );
795    assert( pcCU->getTransformIdx(uiAbsPartIdx) == 0 );
796    assert( pcCU->getCbf(uiAbsPartIdx, TEXT_LUMA) == 1 );
797    assert( pcCU->getCbf(uiAbsPartIdx, TEXT_CHROMA_U) == 1 );
798    assert( pcCU->getCbf(uiAbsPartIdx, TEXT_CHROMA_V) == 1 );
799  }
800
801#if H_3D_INTER_SDC
802  if( pcCU->getSDCFlag( uiAbsPartIdx ) && !pcCU->isIntra( uiAbsPartIdx) )
803  {
804    assert( !pcCU->isSkipped( uiAbsPartIdx ) );
805    assert( !pcCU->isIntra( uiAbsPartIdx) );
806    assert( pcCU->getSlice()->getIsDepth() );
807  }
808#endif
809  if( pcCU->getSlice()->getIsDepth() && ( pcCU->getSDCFlag( uiAbsPartIdx ) || pcCU->isIntra( uiAbsPartIdx ) ) )
810  {
811    Int iPartNum = ( pcCU->isIntra( uiAbsPartIdx ) && pcCU->getPartitionSize( uiAbsPartIdx ) == SIZE_NxN ) ? 4 : 1;
812    UInt uiPartOffset = ( pcCU->getPic()->getNumPartInCU() >> ( pcCU->getDepth( uiAbsPartIdx ) << 1 ) ) >> 2;
813 
814    if( !pcCU->getSDCFlag( uiAbsPartIdx ) )
815    {
816      for( Int iPart = 0; iPart < iPartNum; iPart++ )
817      {
818        if( getDimType( pcCU->getLumaIntraDir( uiAbsPartIdx + uiPartOffset*iPart ) ) < DIM_NUM_TYPE ) 
819        {
820          m_pcEntropyDecoderIf->parseDeltaDC( pcCU, uiAbsPartIdx + uiPartOffset*iPart, uiDepth + ( pcCU->getPartitionSize( uiAbsPartIdx ) == SIZE_NxN ) );
821        }
822      }
823    }
824    else
825    {
826      m_pcEntropyDecoderIf->parseDeltaDC( pcCU, uiAbsPartIdx, uiDepth );
827      return;
828    }
829  }
830#endif
831
832  if( pcCU->isIntra(uiAbsPartIdx) )
833  {
834  }
835  else
836  {
837    UInt uiQtRootCbf = 1;
838    if( !( pcCU->getPartitionSize( uiAbsPartIdx) == SIZE_2Nx2N && pcCU->getMergeFlag( uiAbsPartIdx ) ) )
839    {
840      m_pcEntropyDecoderIf->parseQtRootCbf( uiAbsPartIdx, uiQtRootCbf );
841    }
842    if ( !uiQtRootCbf )
843    {
844      pcCU->setCbfSubParts( 0, 0, 0, uiAbsPartIdx, uiDepth );
845      pcCU->setTrIdxSubParts( 0 , uiAbsPartIdx, uiDepth );
846      return;
847    }
848   
849  }
850
851  Int getQuadtreeTULog2MinSizeInCU = pcCU->getQuadtreeTULog2MinSizeInCU(uiAbsPartIdx);
852
853  xDecodeTransform( pcCU, uiLumaOffset, uiChromaOffset, uiAbsPartIdx, uiDepth, uiWidth, uiHeight, 0, bCodeDQP, getQuadtreeTULog2MinSizeInCU );
854}
855
856#if H_3D_INTER_SDC
857Void TDecEntropy::decodeSDCFlag( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth )
858{
859  pcCU->setSDCFlagSubParts( false, uiAbsPartIdx, uiDepth );
860
861  if( ( !pcCU->isIntra( uiAbsPartIdx ) && !pcCU->getSlice()->getVPS()->getInterSDCFlag( pcCU->getSlice()->getLayerIdInVps() ) ) || 
862    ( pcCU->isIntra( uiAbsPartIdx ) && !pcCU->getSlice()->getVPS()->getVpsDepthModesFlag( pcCU->getSlice()->getLayerIdInVps() ) ) )
863  {
864    return;
865  }
866
867  if( !pcCU->getSlice()->getIsDepth() || pcCU->getPartitionSize( uiAbsPartIdx ) != SIZE_2Nx2N || pcCU->isSkipped( uiAbsPartIdx ) )
868  {
869    return;
870  }
871
872  assert( pcCU->getPartitionSize( uiAbsPartIdx ) == SIZE_2Nx2N || ( !pcCU->isIntra( uiAbsPartIdx ) && !pcCU->isSkipped( uiAbsPartIdx ) ) );
873  m_pcEntropyDecoderIf->parseSDCFlag( pcCU, uiAbsPartIdx, uiDepth );
874}
875#endif
876#if H_3D_DBBP
877Void TDecEntropy::decodeDBBPFlag( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth )
878{
879  m_pcEntropyDecoderIf->parseDBBPFlag( pcCU, uiAbsPartIdx, uiDepth );
880}
881#endif
882
883//! \}
Note: See TracBrowser for help on using the repository browser.