source: 3DVCSoftware/branches/HTM-11.2-dev1-Samsung/source/Lib/TLibDecoder/TDecEntropy.cpp @ 990

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

Integration of JCT3V-I0077: Removal of Partition Derivation for DBBP

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