source: 3DVCSoftware/branches/0.3-nokia/source/Lib/TLibDecoder/TDecGop.h @ 193

Last change on this file since 193 was 5, checked in by hhi, 13 years ago

Clean version with cfg-files

  • Property svn:eol-style set to native
File size: 4.7 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-2011, 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 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
35
36/** \file     TDecGop.h
37    \brief    GOP decoder class (header)
38*/
39
40#ifndef __TDECGOP__
41#define __TDECGOP__
42
43#if _MSC_VER > 1000
44#pragma once
45#endif // _MSC_VER > 1000
46
47#include "../TLibCommon/CommonDef.h"
48#include "../TLibCommon/TComBitStream.h"
49#include "../TLibCommon/TComList.h"
50#include "../TLibCommon/TComPicYuv.h"
51#include "../TLibCommon/TComPic.h"
52#include "../TLibCommon/TComLoopFilter.h"
53#include "../TLibCommon/TComAdaptiveLoopFilter.h"
54#include "../TLibCommon/TComDepthMapGenerator.h"
55#include "../TLibCommon/TComResidualGenerator.h"
56
57#include "TDecEntropy.h"
58#include "TDecSlice.h"
59#include "TDecBinCoder.h"
60#include "TDecBinCoderCABAC.h"
61
62// ====================================================================================================================
63// Class definition
64// ====================================================================================================================
65
66/// GOP decoder class
67class TDecGop
68{
69private:
70  Int                   m_iGopSize;
71  TComList<TComPic*>    m_cListPic;         //  Dynamic buffer
72 
73  //  Access channel
74  TDecEntropy*          m_pcEntropyDecoder;
75  TDecSbac*             m_pcSbacDecoder;
76  TDecBinCABAC*         m_pcBinCABAC;
77  TDecCavlc*            m_pcCavlcDecoder;
78  TDecSlice*            m_pcSliceDecoder;
79  TComLoopFilter*       m_pcLoopFilter;
80
81#if DEPTH_MAP_GENERATION
82  TComDepthMapGenerator*  m_pcDepthMapGenerator;
83#endif
84#if HHI_INTER_VIEW_RESIDUAL_PRED
85  TComResidualGenerator*  m_pcResidualGenerator;
86#endif
87 
88  // Adaptive Loop filter
89  TComAdaptiveLoopFilter*       m_pcAdaptiveLoopFilter;
90#if MTK_SAO
91  TComSampleAdaptiveOffset*              m_pcSAO;
92  SAOParam              m_cSaoParam;
93#endif
94  ALFParam              m_cAlfParam;
95  Double                m_dDecTime;
96
97  bool m_pictureDigestEnabled; ///< if true, handle picture_digest SEI messages
98
99public:
100  TDecGop();
101  virtual ~TDecGop();
102 
103  Void  init    ( TDecEntropy*            pcEntropyDecoder, 
104                 TDecSbac*               pcSbacDecoder, 
105                 TDecBinCABAC*           pcBinCABAC,
106                 TDecCavlc*              pcCavlcDecoder, 
107                 TDecSlice*              pcSliceDecoder, 
108                 TComLoopFilter*         pcLoopFilter, 
109                 TComAdaptiveLoopFilter* pcAdaptiveLoopFilter,
110#if MTK_SAO
111                 TComSampleAdaptiveOffset*                pcSAO
112#endif
113#if DEPTH_MAP_GENERATION
114                ,TComDepthMapGenerator*  pcDepthMapGenerator
115#endif
116#if HHI_INTER_VIEW_RESIDUAL_PRED
117                ,TComResidualGenerator*  pcResidualGenerator
118#endif
119                 );
120  Void  create  ();
121  Void  destroy ();
122  Void  decompressGop ( Bool bEos, TComBitstream* pcBitstream, TComPic*& rpcPic, Bool bExecuteDeblockAndAlf );
123  Void  setGopSize( Int i) { m_iGopSize = i; }
124
125  void setPictureDigestEnabled(bool enabled) { m_pictureDigestEnabled = enabled; }
126};
127
128#endif // !defined(AFX_TDECGOP_H__29440B7A_7CC0_48C7_8DD5_1A531D3CED45__INCLUDED_)
129
Note: See TracBrowser for help on using the repository browser.