source: 3DVCSoftware/branches/HTM-14.1-update-dev2-Sharp/source/Lib/TLibDecoder/TDecCAVLC.h @ 1417

Last change on this file since 1417 was 1225, checked in by sharpjp-htm, 10 years ago

Migration of illumination compensation(NH_3D_IC) and small fix(H_MV_ENC_DEC_TRAC_FIX)

  • Property svn:eol-style set to native
File size: 7.2 KB
RevLine 
[5]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
[1200]4 * granted under this license.
[5]5 *
[1200]6 * Copyright (c) 2010-2015, ITU/ISO/IEC
[5]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.
[56]17 *  * Neither the name of the ITU/ISO/IEC nor the names of its contributors may
[5]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 */
[2]33
34/** \file     TDecCAVLC.h
35    \brief    CAVLC decoder class (header)
36*/
37
38#ifndef __TDECCAVLC__
39#define __TDECCAVLC__
40
41#if _MSC_VER > 1000
42#pragma once
43#endif // _MSC_VER > 1000
44
45#include "TDecEntropy.h"
[608]46#include "SyntaxElementParser.h"
[2]47
[56]48//! \ingroup TLibDecoder
49//! \{
50
[2]51// ====================================================================================================================
52// Class definition
53// ====================================================================================================================
[1200]54#if NH_MV
[1179]55class TDecTop;
56#endif
[2]57/// CAVLC decoder class
[608]58class TDecCavlc : public SyntaxElementParser, public TDecEntropyIf
[2]59{
60public:
61  TDecCavlc();
62  virtual ~TDecCavlc();
[1200]63
[2]64protected:
[1200]65
66  Void  parseShortTermRefPicSet            (TComSPS* pcSPS, TComReferencePictureSet* pcRPS, Int idx);
67
68#if NH_MV
[1179]69  TDecTop*  m_decTop;
70#endif
[2]71public:
[56]72
73  /// rest entropy coder by intial QP and IDC in CABAC
[608]74  Void  resetEntropy        ( TComSlice* /*pcSlice*/  )     { assert(0); };
[56]75  Void  setBitstream        ( TComInputBitstream* p )   { m_pcBitstream = p; }
[2]76  Void  parseTransformSubdivFlag( UInt& ruiSubdivFlag, UInt uiLog2TransformBlockSize );
[1200]77  Void  parseQtCbf          ( class TComTU &rTu, const ComponentID compID, const Bool lowestLevel );
[608]78  Void  parseQtRootCbf      ( UInt uiAbsPartIdx, UInt& uiQtRootCbf );
[77]79  Void  parseVPS            ( TComVPS* pcVPS );
[1200]80#if NH_MV
[622]81  Void  parseVPSExtension   ( TComVPS* pcVPS ); 
[1200]82  Void  parseRepFormat      ( Int i, TComRepFormat* curRepFormat, const TComRepFormat* prevRepFormat );
83  Void  parseVPSVUI         ( const TComVPS* pcVPS, TComVPSVUI* vpsVui );
[964]84  Void  parseVideoSignalInfo( TComVideoSignalInfo* pcVideoSignalInfo ); 
[738]85  Void  parseDpbSize        ( TComVPS* pcVPS ); 
[1200]86  Void  parseVpsVuiBspHrdParameters( const TComVPS* vps, TComVPSVUI* vpsVui ); 
[622]87
[1200]88  Void  parseSpsMultilayerExtension( TComSPS* pcSPS ); 
89  Void  parsePpsMultilayerExtension( TComPPS* pcPPS );
90  Void  setDecTop           ( TDecTop* decTop ) { m_decTop = decTop; }; 
[622]91#endif
[1200]92#if NH_3D
93  Void  parseVps3dExtension  ( TComVPS* pcVPS ); 
94  Void  parseSps3dExtension  ( TComSPS* pcSPS ); 
95  Void  parsePps3dExtension  ( TComPPS* pcPPS );
[2]96#endif
[758]97
[1200]98  Void  parseSPS            ( TComSPS* pcSPS );
99  Void  parsePPS            ( TComPPS* pcPPS );
[1066]100
[608]101  Void  parseVUI            ( TComVUI* pcVUI, TComSPS* pcSPS );
102  Void  parseSEI            ( SEIMessages& );
103  Void  parsePTL            ( TComPTL *rpcPTL, Bool profilePresentFlag, Int maxNumSubLayersMinus1 );
[1200]104  Void  parseProfileTier    (ProfileTierLevel *ptl, const Bool bIsSubLayer);
[608]105  Void  parseHrdParameters  (TComHRD *hrd, Bool cprms_present_flag, UInt tempLevelHigh);
[1200]106  Void  parseSliceHeader    ( TComSlice* pcSlice, ParameterSetManager *parameterSetManager, const Int prevTid0POC);
[2]107  Void  parseTerminatingBit ( UInt& ruiBit );
[1200]108  Void  parseRemainingBytes ( Bool noTrailingBytesExpected );
109
110  Void  parseMVPIdx          ( Int& riMVPIdx );
111       
112  Void  parseSkipFlag        ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth );
[1196]113#if H_3D
[1179]114  Void  parseDIS            ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth );
115#endif
[1200]116  Void parseCUTransquantBypassFlag( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth );
[608]117  Void parseMergeFlag       ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth, UInt uiPUIdx );
118  Void parseMergeIndex      ( TComDataCU* pcCU, UInt& ruiMergeIndex );
119#if H_3D_ARP
120  Void parseARPW            ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth );
121#endif
[1225]122#if NH_3D_IC
[189]123  Void  parseICFlag         ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth );
124#endif
[655]125#if H_3D_INTER_SDC
[833]126  Void  parseDeltaDC        ( TComDataCU* pcCU, UInt absPartIdx, UInt depth );
127  Void  parseSDCFlag        ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth );
[5]128#endif
[833]129#if H_3D_DBBP
130  Void  parseDBBPFlag       ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth );
131#endif
[2]132  Void parseSplitFlag       ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth );
133  Void parsePartSize        ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth );
134  Void parsePredMode        ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth );
[1200]135
[2]136  Void parseIntraDirLumaAng ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth );
137  Void parseIntraDirChroma  ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth );
[1200]138
[608]139  Void parseInterDir        ( TComDataCU* pcCU, UInt& ruiInterDir, UInt uiAbsPartIdx );
[1200]140  Void parseRefFrmIdx       ( TComDataCU* pcCU, Int& riRefFrmIdx, RefPicList eRefList );
[2]141  Void parseMvd             ( TComDataCU* pcCU, UInt uiAbsPartAddr,UInt uiPartIdx,    UInt uiDepth, RefPicList eRefList );
[1200]142
143  Void parseCrossComponentPrediction( class TComTU &rTu, ComponentID compID );
144
[2]145  Void parseDeltaQP         ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth );
[1200]146  Void parseChromaQpAdjustment( TComDataCU* cu, UInt absPartIdx, UInt depth);
[608]147
[1200]148  Void parseCoeffNxN        ( class TComTU &rTu, ComponentID compID );
149
150  Void parseTransformSkipFlags ( class TComTU &rTu, ComponentID component );
151
[56]152  Void parseIPCMInfo        ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth);
153
[1200]154  Void xParsePredWeightTable ( TComSlice* pcSlice, const TComSPS *sps );
155  Void  parseScalingList     ( TComScalingList* scalingList );
156  Void xDecodeScalingList    ( TComScalingList *scalingList, UInt sizeId, UInt listId);
[2]157
[1200]158  Void  parseExplicitRdpcmMode( TComTU &rTu, ComponentID compID );
159#if NH_MV
[1179]160  TDecTop*  getDecTop()      { return m_decTop; };
161#endif
162
[56]163protected:
164  Bool  xMoreRbspData();
165};
[2]166
[56]167//! \}
168
[2]169#endif // !defined(AFX_TDECCAVLC_H__9732DD64_59B0_4A41_B29E_1A5B18821EAD__INCLUDED_)
Note: See TracBrowser for help on using the repository browser.