source: 3DVCSoftware/branches/HTM-8.1-dev0-KWU/source/Lib/TLibEncoder/TEncCfg.h

Last change on this file was 638, checked in by kwu-htm, 11 years ago

Macro enclosed and cleaned-up

  • Property svn:eol-style set to native
File size: 57.3 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-2013, 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     TEncCfg.h
35    \brief    encoder configuration class (header)
36*/
37
38#ifndef __TENCCFG__
39#define __TENCCFG__
40
41#if _MSC_VER > 1000
42#pragma once
43#endif // _MSC_VER > 1000
44
45#include "TLibCommon/CommonDef.h"
46#include "TLibCommon/TComSlice.h"
47#include <assert.h>
48#if H_3D
49#include "TAppCommon/TAppComCamPara.h"
50#include "TLibRenderer/TRenModSetupStrParser.h"
51#endif
52
53struct GOPEntry
54{
55  Int m_POC;
56  Int m_QPOffset;
57  Double m_QPFactor;
58  Int m_tcOffsetDiv2;
59  Int m_betaOffsetDiv2;
60  Int m_temporalId;
61  Bool m_refPic;
62  Int m_numRefPicsActive;
63  Char m_sliceType;
64  Int m_numRefPics;
65  Int m_referencePics[MAX_NUM_REF_PICS];
66  Int m_usedByCurrPic[MAX_NUM_REF_PICS];
67#if AUTO_INTER_RPS
68  Int m_interRPSPrediction;
69#else
70  Bool m_interRPSPrediction;
71#endif
72  Int m_deltaRPS;
73  Int m_numRefIdc;
74  Int m_refIdc[MAX_NUM_REF_PICS+1];
75#if H_MV
76  Int m_numActiveRefLayerPics;
77  Int m_interLayerPredLayerIdc [MAX_NUM_REF_PICS];
78  Int m_interViewRefPosL[2][MAX_NUM_REF_PICS]; 
79#if !H_MV5
80  Int m_collocatedRefLayerIdx; 
81#endif
82#endif
83  GOPEntry()
84  : m_POC(-1)
85  , m_QPOffset(0)
86  , m_QPFactor(0)
87  , m_tcOffsetDiv2(0)
88  , m_betaOffsetDiv2(0)
89  , m_temporalId(0)
90  , m_refPic(false)
91  , m_numRefPicsActive(0)
92  , m_sliceType('P')
93  , m_numRefPics(0)
94  , m_interRPSPrediction(false)
95  , m_deltaRPS(0)
96  , m_numRefIdc(0)
97#if H_MV
98  , m_numActiveRefLayerPics(0)
99#if !H_MV5
100  , m_collocatedRefLayerIdx(-1)
101#endif
102#endif
103  {
104    ::memset( m_referencePics, 0, sizeof(m_referencePics) );
105    ::memset( m_usedByCurrPic, 0, sizeof(m_usedByCurrPic) );
106    ::memset( m_refIdc,        0, sizeof(m_refIdc) );
107#if H_MV
108    ::memset( m_interLayerPredLayerIdc,   0, sizeof(m_interLayerPredLayerIdc) );
109    ::memset( m_interViewRefPosL[0], -1, sizeof(m_interViewRefPosL[0]) );
110    ::memset( m_interViewRefPosL[1], -1, sizeof(m_interViewRefPosL[1]) );
111#endif
112  }
113};
114
115std::istringstream &operator>>(std::istringstream &in, GOPEntry &entry);     //input
116//! \ingroup TLibEncoder
117//! \{
118
119// ====================================================================================================================
120// Class definition
121// ====================================================================================================================
122
123/// encoder configuration class
124class TEncCfg
125{
126protected:
127  //==== File I/O ========
128  Int       m_iFrameRate;
129  Int       m_FrameSkip;
130  Int       m_iSourceWidth;
131  Int       m_iSourceHeight;
132  Int       m_conformanceMode;
133  Window    m_conformanceWindow;
134  Int       m_framesToBeEncoded;
135  Double    m_adLambdaModifier[ MAX_TLAYER ];
136
137  /* profile & level */
138  Profile::Name m_profile;
139  Level::Tier   m_levelTier;
140  Level::Name   m_level;
141  Bool m_progressiveSourceFlag;
142  Bool m_interlacedSourceFlag;
143  Bool m_nonPackedConstraintFlag;
144  Bool m_frameOnlyConstraintFlag;
145
146  //====== Coding Structure ========
147  UInt      m_uiIntraPeriod;
148  UInt      m_uiDecodingRefreshType;            ///< the type of decoding refresh employed for the random access.
149  Int       m_iGOPSize;
150#if H_MV
151  GOPEntry  m_GOPList[MAX_GOP+1];
152#else
153  GOPEntry  m_GOPList[MAX_GOP];
154#endif
155  Int       m_extraRPSs;
156  Int       m_maxDecPicBuffering[MAX_TLAYER];
157  Int       m_numReorderPics[MAX_TLAYER];
158 
159  Int       m_iQP;                              //  if (AdaptiveQP == OFF)
160 
161  Int       m_aiPad[2];
162 
163
164  Int       m_iMaxRefPicNum;                     ///< this is used to mimic the sliding mechanism used by the decoder
165                                                 // TODO: We need to have a common sliding mechanism used by both the encoder and decoder
166
167  Int       m_maxTempLayer;                      ///< Max temporal layer
168  Bool m_useAMP;
169  //======= Transform =============
170  UInt      m_uiQuadtreeTULog2MaxSize;
171  UInt      m_uiQuadtreeTULog2MinSize;
172  UInt      m_uiQuadtreeTUMaxDepthInter;
173  UInt      m_uiQuadtreeTUMaxDepthIntra;
174 
175  //====== Loop/Deblock Filter ========
176  Bool      m_bLoopFilterDisable;
177  Bool      m_loopFilterOffsetInPPS;
178  Int       m_loopFilterBetaOffsetDiv2;
179  Int       m_loopFilterTcOffsetDiv2;
180  Bool      m_DeblockingFilterControlPresent;
181  Bool      m_DeblockingFilterMetric;
182  Bool      m_bUseSAO;
183  Int       m_maxNumOffsetsPerPic;
184  Bool      m_saoLcuBoundary;
185  Bool      m_saoLcuBasedOptimization;
186
187  //====== Lossless ========
188  Bool      m_useLossless;
189  //====== Motion search ========
190  Int       m_iFastSearch;                      //  0:Full search  1:Diamond  2:PMVFAST
191  Int       m_iSearchRange;                     //  0:Full frame
192  Int       m_bipredSearchRange;
193
194  //====== Quality control ========
195  Int       m_iMaxDeltaQP;                      //  Max. absolute delta QP (1:default)
196  Int       m_iMaxCuDQPDepth;                   //  Max. depth for a minimum CuDQP (0:default)
197
198  Int       m_chromaCbQpOffset;                 //  Chroma Cb QP Offset (0:default)
199  Int       m_chromaCrQpOffset;                 //  Chroma Cr Qp Offset (0:default)
200
201#if ADAPTIVE_QP_SELECTION
202  Bool      m_bUseAdaptQpSelect;
203#endif
204
205  Bool      m_bUseAdaptiveQP;
206  Int       m_iQPAdaptationRange;
207 
208  //====== Tool list ========
209  Bool      m_bUseSBACRD;
210  Bool      m_bUseASR;
211  Bool      m_bUseHADME;
212  Bool      m_useRDOQ;
213  Bool      m_useRDOQTS;
214  UInt      m_rdPenalty;
215  Bool      m_bUseFastEnc;
216  Bool      m_bUseEarlyCU;
217  Bool      m_useFastDecisionForMerge;
218  Bool      m_bUseCbfFastMode;
219  Bool      m_useEarlySkipDetection;
220  Bool      m_useTransformSkip;
221  Bool      m_useTransformSkipFast;
222  Int*      m_aidQP;
223  UInt      m_uiDeltaQpRD;
224 
225  Bool      m_bUseConstrainedIntraPred;
226  Bool      m_usePCM;
227  UInt      m_pcmLog2MaxSize;
228  UInt      m_uiPCMLog2MinSize;
229  //====== Slice ========
230  Int       m_sliceMode;
231  Int       m_sliceArgument; 
232  //====== Dependent Slice ========
233  Int       m_sliceSegmentMode;
234  Int       m_sliceSegmentArgument;
235  Bool      m_bLFCrossSliceBoundaryFlag;
236
237  Bool      m_bPCMInputBitDepthFlag;
238  UInt      m_uiPCMBitDepthLuma;
239  UInt      m_uiPCMBitDepthChroma;
240  Bool      m_bPCMFilterDisableFlag;
241  Bool      m_loopFilterAcrossTilesEnabledFlag;
242  Int       m_iUniformSpacingIdr;
243  Int       m_iNumColumnsMinus1;
244  UInt*     m_puiColumnWidth;
245  Int       m_iNumRowsMinus1;
246  UInt*     m_puiRowHeight;
247
248  Int       m_iWaveFrontSynchro;
249  Int       m_iWaveFrontSubstreams;
250
251  Int       m_decodedPictureHashSEIEnabled;              ///< Checksum(3)/CRC(2)/MD5(1)/disable(0) acting on decoded picture hash SEI message
252  Int       m_bufferingPeriodSEIEnabled;
253  Int       m_pictureTimingSEIEnabled;
254  Int       m_recoveryPointSEIEnabled;
255  Bool      m_toneMappingInfoSEIEnabled;
256  Int       m_toneMapId;
257  Bool      m_toneMapCancelFlag;
258  Bool      m_toneMapPersistenceFlag;
259  Int       m_codedDataBitDepth;
260  Int       m_targetBitDepth;
261  Int       m_modelId; 
262  Int       m_minValue;
263  Int       m_maxValue;
264  Int       m_sigmoidMidpoint;
265  Int       m_sigmoidWidth;
266  Int       m_numPivots;
267  Int       m_cameraIsoSpeedIdc;
268  Int       m_cameraIsoSpeedValue;
269  Int       m_exposureCompensationValueSignFlag;
270  Int       m_exposureCompensationValueNumerator;
271  Int       m_exposureCompensationValueDenomIdc;
272  Int       m_refScreenLuminanceWhite;
273  Int       m_extendedRangeWhiteLevel;
274  Int       m_nominalBlackLevelLumaCodeValue;
275  Int       m_nominalWhiteLevelLumaCodeValue;
276  Int       m_extendedWhiteLevelLumaCodeValue;
277  Int*      m_startOfCodedInterval;
278  Int*      m_codedPivotValue;
279  Int*      m_targetPivotValue;
280  Int       m_framePackingSEIEnabled;
281  Int       m_framePackingSEIType;
282  Int       m_framePackingSEIId;
283  Int       m_framePackingSEIQuincunx;
284  Int       m_framePackingSEIInterpretation;
285  Int       m_displayOrientationSEIAngle;
286  Int       m_temporalLevel0IndexSEIEnabled;
287  Int       m_gradualDecodingRefreshInfoEnabled;
288  Int       m_decodingUnitInfoSEIEnabled;
289  Int       m_SOPDescriptionSEIEnabled;
290  Int       m_scalableNestingSEIEnabled;
291  //====== Weighted Prediction ========
292  Bool      m_useWeightedPred;       //< Use of Weighting Prediction (P_SLICE)
293  Bool      m_useWeightedBiPred;    //< Use of Bi-directional Weighting Prediction (B_SLICE)
294  UInt      m_log2ParallelMergeLevelMinus2;       ///< Parallel merge estimation region
295  UInt      m_maxNumMergeCand;                    ///< Maximum number of merge candidates
296  Int       m_useScalingListId;            ///< Using quantization matrix i.e. 0=off, 1=default, 2=file.
297  Char*     m_scalingListFile;          ///< quantization matrix file name
298  Int       m_TMVPModeId;
299  Int       m_signHideFlag;
300#if RATE_CONTROL_LAMBDA_DOMAIN
301  Bool      m_RCEnableRateControl;
302  Int       m_RCTargetBitrate;
303#if M0036_RC_IMPROVEMENT
304  Int       m_RCKeepHierarchicalBit;
305#else
306  Bool      m_RCKeepHierarchicalBit;
307#endif
308  Bool      m_RCLCULevelRC;
309  Bool      m_RCUseLCUSeparateModel;
310  Int       m_RCInitialQP;
311  Bool      m_RCForceIntraQP;
312
313#if KWU_RC_MADPRED_E0227
314  UInt       m_depthMADPred;
315#endif
316#if KWU_RC_VIEWRC_E0227
317  Bool      m_bViewWiseRateCtrl;
318#endif
319#else
320  Bool      m_enableRateCtrl;                                ///< Flag for using rate control algorithm
321  Int       m_targetBitrate;                                 ///< target bitrate
322  Int       m_numLCUInUnit;                                  ///< Total number of LCUs in a frame should be divided by the NumLCUInUnit
323
324#if KWU_RC_MADPRED_E0227
325  UInt       m_depthMADPred;
326#endif
327#if KWU_RC_VIEWRC_E0227
328  Bool      m_bViewWiseRateCtrl;
329#endif
330#endif
331  Bool      m_TransquantBypassEnableFlag;                     ///< transquant_bypass_enable_flag setting in PPS.
332  Bool      m_CUTransquantBypassFlagValue;                    ///< if transquant_bypass_enable_flag, the fixed value to use for the per-CU cu_transquant_bypass_flag.
333#if H_MV
334  TComVPS*  m_cVPS;                                           ///< pointer to VPS, same for all layers
335#else
336  TComVPS                    m_cVPS;
337#endif
338  Bool      m_recalculateQPAccordingToLambda;                 ///< recalculate QP value according to the lambda value
339  Int       m_activeParameterSetsSEIEnabled;                  ///< enable active parameter set SEI message
340  Bool      m_vuiParametersPresentFlag;                       ///< enable generation of VUI parameters
341  Bool      m_aspectRatioInfoPresentFlag;                     ///< Signals whether aspect_ratio_idc is present
342  Int       m_aspectRatioIdc;                                 ///< aspect_ratio_idc
343  Int       m_sarWidth;                                       ///< horizontal size of the sample aspect ratio
344  Int       m_sarHeight;                                      ///< vertical size of the sample aspect ratio
345  Bool      m_overscanInfoPresentFlag;                        ///< Signals whether overscan_appropriate_flag is present
346  Bool      m_overscanAppropriateFlag;                        ///< Indicates whether conformant decoded pictures are suitable for display using overscan
347  Bool      m_videoSignalTypePresentFlag;                     ///< Signals whether video_format, video_full_range_flag, and colour_description_present_flag are present
348  Int       m_videoFormat;                                    ///< Indicates representation of pictures
349  Bool      m_videoFullRangeFlag;                             ///< Indicates the black level and range of luma and chroma signals
350  Bool      m_colourDescriptionPresentFlag;                   ///< Signals whether colour_primaries, transfer_characteristics and matrix_coefficients are present
351  Int       m_colourPrimaries;                                ///< Indicates chromaticity coordinates of the source primaries
352  Int       m_transferCharacteristics;                        ///< Indicates the opto-electronic transfer characteristics of the source
353  Int       m_matrixCoefficients;                             ///< Describes the matrix coefficients used in deriving luma and chroma from RGB primaries
354  Bool      m_chromaLocInfoPresentFlag;                       ///< Signals whether chroma_sample_loc_type_top_field and chroma_sample_loc_type_bottom_field are present
355  Int       m_chromaSampleLocTypeTopField;                    ///< Specifies the location of chroma samples for top field
356  Int       m_chromaSampleLocTypeBottomField;                 ///< Specifies the location of chroma samples for bottom field
357  Bool      m_neutralChromaIndicationFlag;                    ///< Indicates that the value of all decoded chroma samples is equal to 1<<(BitDepthCr-1)
358  Window    m_defaultDisplayWindow;                           ///< Represents the default display window parameters
359  Bool      m_frameFieldInfoPresentFlag;                      ///< Indicates that pic_struct and other field coding related values are present in picture timing SEI messages
360  Bool      m_pocProportionalToTimingFlag;                    ///< Indicates that the POC value is proportional to the output time w.r.t. first picture in CVS
361  Int       m_numTicksPocDiffOneMinus1;                       ///< Number of ticks minus 1 that for a POC difference of one
362  Bool      m_bitstreamRestrictionFlag;                       ///< Signals whether bitstream restriction parameters are present
363  Bool      m_tilesFixedStructureFlag;                        ///< Indicates that each active picture parameter set has the same values of the syntax elements related to tiles
364  Bool      m_motionVectorsOverPicBoundariesFlag;             ///< Indicates that no samples outside the picture boundaries are used for inter prediction
365  Int       m_minSpatialSegmentationIdc;                      ///< Indicates the maximum size of the spatial segments in the pictures in the coded video sequence
366  Int       m_maxBytesPerPicDenom;                            ///< Indicates a number of bytes not exceeded by the sum of the sizes of the VCL NAL units associated with any coded picture
367  Int       m_maxBitsPerMinCuDenom;                           ///< Indicates an upper bound for the number of bits of coding_unit() data
368  Int       m_log2MaxMvLengthHorizontal;                      ///< Indicate the maximum absolute value of a decoded horizontal MV component in quarter-pel luma units
369  Int       m_log2MaxMvLengthVertical;                        ///< Indicate the maximum absolute value of a decoded vertical MV component in quarter-pel luma units
370
371  Bool      m_useStrongIntraSmoothing;                        ///< enable the use of strong intra smoothing (bi_linear interpolation) for 32x32 blocks when reference samples are flat.
372
373#if H_MV
374  Int       m_layerId;
375  Int       m_layerIdInVps;
376  Int       m_viewId;
377#if H_MV5
378  Int       m_viewIndex; 
379#endif
380#endif
381
382#if H_3D
383#if !H_MV5
384  Int       m_viewIndex; 
385#endif
386  Bool      m_isDepth;
387
388  //====== Camera Parameters ======
389  UInt      m_uiCamParPrecision;
390  Bool      m_bCamParInSliceHeader;
391  Int**     m_aaiCodedScale;
392  Int**     m_aaiCodedOffset;
393  TAppComCamPara* m_cameraParameters; 
394 
395#if H_3D_VSO
396  //====== View Synthesis Optimization ======
397  TRenModSetupStrParser* m_renderModelParameters; 
398  Bool      m_bUseVSO;
399  Bool      m_bForceLambdaScale;
400  Bool      m_bAllowNegDist;
401  Double    m_dLambdaScaleVSO;
402  UInt      m_uiVSOMode;
403  // LGE_WVSO_A0119
404  Bool      m_bUseWVSO;
405  Int       m_iVSOWeight;
406  Int       m_iVSDWeight;
407  Int       m_iDWeight;
408  // SAIT_VSO_EST_A0033
409  Bool      m_bUseEstimatedVSD; 
410  Double    m_dDispCoeff;
411#endif
412#if H_3D_ARP
413  UInt      m_uiUseAdvResPred;
414  UInt      m_uiARPStepNum;
415#endif
416#if H_3D_IC
417  Bool      m_bUseIC;
418#endif
419#if LGE_INTER_SDC_E0156
420  bool      m_bInterSDC;
421#endif
422  //====== Depth Intra Modes ======
423#if H_3D_DIM
424  Bool      m_useDMM;
425  Bool      m_useRBC;
426  Bool      m_useSDC;
427  Bool      m_useDLT;
428#endif
429#if H_3D_QTLPC
430  Bool      m_bUseQTL;
431  Bool      m_bUsePC;
432#endif
433#endif
434public:
435  TEncCfg()
436  : m_puiColumnWidth()
437  , m_puiRowHeight()
438#if H_MV
439  , m_layerId(-1)
440  , m_layerIdInVps(-1)
441  , m_viewId(-1)
442#if H_MV5
443  , m_viewIndex(-1)
444#endif
445#if H_3D
446#if !H_MV5
447  , m_viewIndex(-1)
448#endif
449  , m_isDepth(false)
450  , m_bUseVSO(false)
451#endif
452#endif
453  {}
454
455  virtual ~TEncCfg()
456  {
457    delete[] m_puiColumnWidth;
458    delete[] m_puiRowHeight;
459  }
460 
461  Void setProfile(Profile::Name profile) { m_profile = profile; }
462  Void setLevel(Level::Tier tier, Level::Name level) { m_levelTier = tier; m_level = level; }
463
464  Void      setFrameRate                    ( Int   i )      { m_iFrameRate = i; }
465  Void      setFrameSkip                    ( UInt i ) { m_FrameSkip = i; }
466  Void      setSourceWidth                  ( Int   i )      { m_iSourceWidth = i; }
467  Void      setSourceHeight                 ( Int   i )      { m_iSourceHeight = i; }
468
469  Window   &getConformanceWindow()                           { return m_conformanceWindow; }
470  Void      setConformanceWindow (Int confLeft, Int confRight, Int confTop, Int confBottom ) { m_conformanceWindow.setWindow (confLeft, confRight, confTop, confBottom); }
471
472  Void      setFramesToBeEncoded            ( Int   i )      { m_framesToBeEncoded = i; }
473 
474#if H_MV
475  Void      setLayerId                       ( Int layerId )      { m_layerId = layerId; }
476  Int       getLayerId                       ()                   { return m_layerId;    }
477  Int       getLayerIdInVps                  ()                   { return m_layerIdInVps; }
478  Void      setLayerIdInVps                  ( Int layerIdInVps)  { m_layerIdInVps = layerIdInVps; }
479  Void      setViewId                        ( Int viewId  )      { m_viewId  = viewId;  }
480  Int       getViewId                        ()                   { return m_viewId;    }
481#if H_MV5
482  Void      setViewIndex                     ( Int viewIndex  )   { m_viewIndex  = viewIndex;  }
483  Int       getViewIndex                     ()                   { return m_viewIndex;    }
484#endif
485#if H_3D
486#if !H_MV5
487  Void      setViewIndex                     ( Int viewIndex  )   { m_viewIndex  = viewIndex;  }
488  Int       getViewIndex                     ()                   { return m_viewIndex;    }
489#endif
490  Void      setIsDepth                       ( Bool isDepth )   { m_isDepth = isDepth; }
491  Bool      getIsDepth                       ()                 { return m_isDepth; }
492#endif
493#endif
494  //====== Coding Structure ========
495  Void      setIntraPeriod                  ( Int   i )      { m_uiIntraPeriod = (UInt)i; }
496  Void      setDecodingRefreshType          ( Int   i )      { m_uiDecodingRefreshType = (UInt)i; }
497  Void      setGOPSize                      ( Int   i )      { m_iGOPSize = i; }
498#if H_MV
499  Void      setGopList                      ( GOPEntry*  GOPList ) {  for ( Int i = 0; i < MAX_GOP+1; i++ ) m_GOPList[i] = GOPList[i]; }
500#else
501  Void      setGopList                      ( GOPEntry*  GOPList ) {  for ( Int i = 0; i < MAX_GOP; i++ ) m_GOPList[i] = GOPList[i]; }
502#endif
503  Void      setExtraRPSs                    ( Int   i )      { m_extraRPSs = i; }
504  GOPEntry  getGOPEntry                     ( Int   i )      { return m_GOPList[i]; }
505  Void      setMaxDecPicBuffering           ( UInt u, UInt tlayer ) { m_maxDecPicBuffering[tlayer] = u;    }
506  Void      setNumReorderPics               ( Int  i, UInt tlayer ) { m_numReorderPics[tlayer] = i;    }
507 
508  Void      setQP                           ( Int   i )      { m_iQP = i; }
509 
510  Void      setPad                          ( Int*  iPad                   )      { for ( Int i = 0; i < 2; i++ ) m_aiPad[i] = iPad[i]; }
511 
512  Int       getMaxRefPicNum                 ()                              { return m_iMaxRefPicNum;           }
513  Void      setMaxRefPicNum                 ( Int iMaxRefPicNum )           { m_iMaxRefPicNum = iMaxRefPicNum;  }
514
515  Bool      getMaxTempLayer                 ()                              { return m_maxTempLayer;              } 
516  Void      setMaxTempLayer                 ( Int maxTempLayer )            { m_maxTempLayer = maxTempLayer;      }
517
518#if H_3D_ARP
519  UInt       getUseAdvRP                    ( )              { return m_uiUseAdvResPred; }
520  Void       setUseAdvRP                    ( UInt  u )      { m_uiUseAdvResPred = u;    }
521
522  UInt       getARPStepNum                  ()               { return m_uiARPStepNum;    }
523  Void       setARPStepNum                  ( UInt  u )      { m_uiARPStepNum = u;       }
524#endif
525
526#if H_3D_IC
527  Void       setUseIC                       ( Bool bVal )    { m_bUseIC = bVal; }
528  Bool       getUseIC                       ()               { return m_bUseIC; }
529#endif
530#if LGE_INTER_SDC_E0156
531  Void       setInterSDCEnable              ( Bool bVal )    { m_bInterSDC = bVal; }
532  Bool       getInterSDCEnable              ()               { return m_bInterSDC; }
533#endif
534  //======== Transform =============
535  Void      setQuadtreeTULog2MaxSize        ( UInt  u )      { m_uiQuadtreeTULog2MaxSize = u; }
536  Void      setQuadtreeTULog2MinSize        ( UInt  u )      { m_uiQuadtreeTULog2MinSize = u; }
537  Void      setQuadtreeTUMaxDepthInter      ( UInt  u )      { m_uiQuadtreeTUMaxDepthInter = u; }
538  Void      setQuadtreeTUMaxDepthIntra      ( UInt  u )      { m_uiQuadtreeTUMaxDepthIntra = u; }
539 
540  Void setUseAMP( Bool b ) { m_useAMP = b; }
541 
542  //====== Loop/Deblock Filter ========
543  Void      setLoopFilterDisable            ( Bool  b )      { m_bLoopFilterDisable       = b; }
544  Void      setLoopFilterOffsetInPPS        ( Bool  b )      { m_loopFilterOffsetInPPS      = b; }
545  Void      setLoopFilterBetaOffset         ( Int   i )      { m_loopFilterBetaOffsetDiv2  = i; }
546  Void      setLoopFilterTcOffset           ( Int   i )      { m_loopFilterTcOffsetDiv2    = i; }
547  Void      setDeblockingFilterControlPresent ( Bool b ) { m_DeblockingFilterControlPresent = b; }
548  Void      setDeblockingFilterMetric       ( Bool  b )      { m_DeblockingFilterMetric = b; }
549
550  //====== Motion search ========
551  Void      setFastSearch                   ( Int   i )      { m_iFastSearch = i; }
552  Void      setSearchRange                  ( Int   i )      { m_iSearchRange = i; }
553  Void      setBipredSearchRange            ( Int   i )      { m_bipredSearchRange = i; }
554
555  //====== Quality control ========
556  Void      setMaxDeltaQP                   ( Int   i )      { m_iMaxDeltaQP = i; }
557  Void      setMaxCuDQPDepth                ( Int   i )      { m_iMaxCuDQPDepth = i; }
558
559  Void      setChromaCbQpOffset             ( Int   i )      { m_chromaCbQpOffset = i; }
560  Void      setChromaCrQpOffset             ( Int   i )      { m_chromaCrQpOffset = i; }
561
562#if ADAPTIVE_QP_SELECTION
563  Void      setUseAdaptQpSelect             ( Bool   i ) { m_bUseAdaptQpSelect    = i; }
564  Bool      getUseAdaptQpSelect             ()           { return   m_bUseAdaptQpSelect; }
565#endif
566
567  Void      setUseAdaptiveQP                ( Bool  b )      { m_bUseAdaptiveQP = b; }
568  Void      setQPAdaptationRange            ( Int   i )      { m_iQPAdaptationRange = i; }
569 
570  //====== Lossless ========
571  Void      setUseLossless                  (Bool    b  )        { m_useLossless = b;  }
572  //====== Sequence ========
573  Int       getFrameRate                    ()      { return  m_iFrameRate; }
574  UInt      getFrameSkip                    ()      { return  m_FrameSkip; }
575  Int       getSourceWidth                  ()      { return  m_iSourceWidth; }
576  Int       getSourceHeight                 ()      { return  m_iSourceHeight; }
577  Int       getFramesToBeEncoded            ()      { return  m_framesToBeEncoded; }
578  void setLambdaModifier                    ( UInt uiIndex, Double dValue ) { m_adLambdaModifier[ uiIndex ] = dValue; }
579  Double getLambdaModifier                  ( UInt uiIndex ) const { return m_adLambdaModifier[ uiIndex ]; }
580
581  //==== Coding Structure ========
582  UInt      getIntraPeriod                  ()      { return  m_uiIntraPeriod; }
583  UInt      getDecodingRefreshType          ()      { return  m_uiDecodingRefreshType; }
584  Int       getGOPSize                      ()      { return  m_iGOPSize; }
585  Int       getMaxDecPicBuffering           (UInt tlayer) { return m_maxDecPicBuffering[tlayer]; }
586  Int       getNumReorderPics               (UInt tlayer) { return m_numReorderPics[tlayer]; }
587  Int       getQP                           ()      { return  m_iQP; }
588 
589  Int       getPad                          ( Int i )      { assert (i < 2 );                      return  m_aiPad[i]; }
590 
591  //======== Transform =============
592  UInt      getQuadtreeTULog2MaxSize        ()      const { return m_uiQuadtreeTULog2MaxSize; }
593  UInt      getQuadtreeTULog2MinSize        ()      const { return m_uiQuadtreeTULog2MinSize; }
594  UInt      getQuadtreeTUMaxDepthInter      ()      const { return m_uiQuadtreeTUMaxDepthInter; }
595  UInt      getQuadtreeTUMaxDepthIntra      ()      const { return m_uiQuadtreeTUMaxDepthIntra; }
596 
597  //==== Loop/Deblock Filter ========
598  Bool      getLoopFilterDisable            ()      { return  m_bLoopFilterDisable;       }
599  Bool      getLoopFilterOffsetInPPS        ()      { return m_loopFilterOffsetInPPS; }
600  Int       getLoopFilterBetaOffset         ()      { return m_loopFilterBetaOffsetDiv2; }
601  Int       getLoopFilterTcOffset           ()      { return m_loopFilterTcOffsetDiv2; }
602  Bool      getDeblockingFilterControlPresent()  { return  m_DeblockingFilterControlPresent; }
603  Bool      getDeblockingFilterMetric       ()      { return m_DeblockingFilterMetric; }
604
605  //==== Motion search ========
606  Int       getFastSearch                   ()      { return  m_iFastSearch; }
607  Int       getSearchRange                  ()      { return  m_iSearchRange; }
608
609  //==== Quality control ========
610  Int       getMaxDeltaQP                   ()      { return  m_iMaxDeltaQP; }
611  Int       getMaxCuDQPDepth                ()      { return  m_iMaxCuDQPDepth; }
612  Bool      getUseAdaptiveQP                ()      { return  m_bUseAdaptiveQP; }
613  Int       getQPAdaptationRange            ()      { return  m_iQPAdaptationRange; }
614  //====== Lossless ========
615  Bool      getUseLossless                  ()      { return  m_useLossless;  }
616 
617  //==== Tool list ========
618  Void      setUseSBACRD                    ( Bool  b )     { m_bUseSBACRD  = b; }
619  Void      setUseASR                       ( Bool  b )     { m_bUseASR     = b; }
620  Void      setUseHADME                     ( Bool  b )     { m_bUseHADME   = b; }
621  Void      setUseRDOQ                      ( Bool  b )     { m_useRDOQ    = b; }
622  Void      setUseRDOQTS                    ( Bool  b )     { m_useRDOQTS  = b; }
623  Void      setRDpenalty                 ( UInt  b )     { m_rdPenalty  = b; }
624  Void      setUseFastEnc                   ( Bool  b )     { m_bUseFastEnc = b; }
625  Void      setUseEarlyCU                   ( Bool  b )     { m_bUseEarlyCU = b; }
626  Void      setUseFastDecisionForMerge      ( Bool  b )     { m_useFastDecisionForMerge = b; }
627  Void      setUseCbfFastMode            ( Bool  b )     { m_bUseCbfFastMode = b; }
628  Void      setUseEarlySkipDetection        ( Bool  b )     { m_useEarlySkipDetection = b; }
629  Void      setUseConstrainedIntraPred      ( Bool  b )     { m_bUseConstrainedIntraPred = b; }
630  Void      setPCMInputBitDepthFlag         ( Bool  b )     { m_bPCMInputBitDepthFlag = b; }
631  Void      setPCMFilterDisableFlag         ( Bool  b )     {  m_bPCMFilterDisableFlag = b; }
632  Void      setUsePCM                       ( Bool  b )     {  m_usePCM = b;               }
633  Void      setPCMLog2MaxSize               ( UInt u )      { m_pcmLog2MaxSize = u;      }
634  Void      setPCMLog2MinSize               ( UInt u )     { m_uiPCMLog2MinSize = u;      }
635  Void      setdQPs                         ( Int*  p )     { m_aidQP       = p; }
636  Void      setDeltaQpRD                    ( UInt  u )     {m_uiDeltaQpRD  = u; }
637  Bool      getUseSBACRD                    ()      { return m_bUseSBACRD;  }
638  Bool      getUseASR                       ()      { return m_bUseASR;     }
639  Bool      getUseHADME                     ()      { return m_bUseHADME;   }
640  Bool      getUseRDOQ                      ()      { return m_useRDOQ;    }
641  Bool      getUseRDOQTS                    ()      { return m_useRDOQTS;  }
642  Int      getRDpenalty                  ()      { return m_rdPenalty;  }
643  Bool      getUseFastEnc                   ()      { return m_bUseFastEnc; }
644  Bool      getUseEarlyCU                   ()      { return m_bUseEarlyCU; }
645  Bool      getUseFastDecisionForMerge      ()      { return m_useFastDecisionForMerge; }
646  Bool      getUseCbfFastMode           ()      { return m_bUseCbfFastMode; }
647  Bool      getUseEarlySkipDetection        ()      { return m_useEarlySkipDetection; }
648  Bool      getUseConstrainedIntraPred      ()      { return m_bUseConstrainedIntraPred; }
649  Bool      getPCMInputBitDepthFlag         ()      { return m_bPCMInputBitDepthFlag;   }
650  Bool      getPCMFilterDisableFlag         ()      { return m_bPCMFilterDisableFlag;   } 
651  Bool      getUsePCM                       ()      { return m_usePCM;                 }
652  UInt      getPCMLog2MaxSize               ()      { return m_pcmLog2MaxSize;  }
653  UInt      getPCMLog2MinSize               ()      { return  m_uiPCMLog2MinSize;  }
654
655  Bool getUseTransformSkip                             ()      { return m_useTransformSkip;        }
656  Void setUseTransformSkip                             ( Bool b ) { m_useTransformSkip  = b;       }
657  Bool getUseTransformSkipFast                         ()      { return m_useTransformSkipFast;    }
658  Void setUseTransformSkipFast                         ( Bool b ) { m_useTransformSkipFast  = b;   }
659  Int*      getdQPs                         ()      { return m_aidQP;       }
660  UInt      getDeltaQpRD                    ()      { return m_uiDeltaQpRD; }
661
662  //====== Slice ========
663  Void  setSliceMode                   ( Int  i )       { m_sliceMode = i;              }
664  Void  setSliceArgument               ( Int  i )       { m_sliceArgument = i;          }
665  Int   getSliceMode                   ()              { return m_sliceMode;           }
666  Int   getSliceArgument               ()              { return m_sliceArgument;       }
667  //====== Dependent Slice ========
668  Void  setSliceSegmentMode            ( Int  i )      { m_sliceSegmentMode = i;       }
669  Void  setSliceSegmentArgument        ( Int  i )      { m_sliceSegmentArgument = i;   }
670  Int   getSliceSegmentMode            ()              { return m_sliceSegmentMode;    }
671  Int   getSliceSegmentArgument        ()              { return m_sliceSegmentArgument;}
672  Void      setLFCrossSliceBoundaryFlag     ( Bool   bValue  )    { m_bLFCrossSliceBoundaryFlag = bValue; }
673  Bool      getLFCrossSliceBoundaryFlag     ()                    { return m_bLFCrossSliceBoundaryFlag;   }
674
675  Void      setUseSAO                  (Bool bVal)     {m_bUseSAO = bVal;}
676  Bool      getUseSAO                  ()              {return m_bUseSAO;}
677  Void  setMaxNumOffsetsPerPic                   (Int iVal)            { m_maxNumOffsetsPerPic = iVal; }
678  Int   getMaxNumOffsetsPerPic                   ()                    { return m_maxNumOffsetsPerPic; }
679  Void  setSaoLcuBoundary              (Bool val)      { m_saoLcuBoundary = val; }
680  Bool  getSaoLcuBoundary              ()              { return m_saoLcuBoundary; }
681  Void  setSaoLcuBasedOptimization               (Bool val)            { m_saoLcuBasedOptimization = val; }
682  Bool  getSaoLcuBasedOptimization               ()                    { return m_saoLcuBasedOptimization; }
683  Void  setLFCrossTileBoundaryFlag               ( Bool   val  )       { m_loopFilterAcrossTilesEnabledFlag = val; }
684  Bool  getLFCrossTileBoundaryFlag               ()                    { return m_loopFilterAcrossTilesEnabledFlag;   }
685  Void  setUniformSpacingIdr           ( Int i )           { m_iUniformSpacingIdr = i; }
686  Int   getUniformSpacingIdr           ()                  { return m_iUniformSpacingIdr; }
687  Void  setNumColumnsMinus1            ( Int i )           { m_iNumColumnsMinus1 = i; }
688  Int   getNumColumnsMinus1            ()                  { return m_iNumColumnsMinus1; }
689  Void  setColumnWidth ( UInt* columnWidth )
690  {
691    if( m_iUniformSpacingIdr == 0 && m_iNumColumnsMinus1 > 0 )
692    {
693      Int  m_iWidthInCU = ( m_iSourceWidth%g_uiMaxCUWidth ) ? m_iSourceWidth/g_uiMaxCUWidth + 1 : m_iSourceWidth/g_uiMaxCUWidth;
694      m_puiColumnWidth = new UInt[ m_iNumColumnsMinus1 ];
695
696      for(Int i=0; i<m_iNumColumnsMinus1; i++)
697      {
698        m_puiColumnWidth[i] = columnWidth[i];
699        printf("col: m_iWidthInCU= %4d i=%4d width= %4d\n",m_iWidthInCU,i,m_puiColumnWidth[i]); //AFU
700      }
701    }
702  }
703  UInt  getColumnWidth                 ( UInt columnidx )  { return *( m_puiColumnWidth + columnidx ); }
704  Void  setNumRowsMinus1               ( Int i )           { m_iNumRowsMinus1 = i; }
705  Int   getNumRowsMinus1               ()                  { return m_iNumRowsMinus1; }
706  Void  setRowHeight (UInt* rowHeight)
707  {
708    if( m_iUniformSpacingIdr == 0 && m_iNumRowsMinus1 > 0 )
709    {
710      Int  m_iHeightInCU = ( m_iSourceHeight%g_uiMaxCUHeight ) ? m_iSourceHeight/g_uiMaxCUHeight + 1 : m_iSourceHeight/g_uiMaxCUHeight;
711      m_puiRowHeight = new UInt[ m_iNumRowsMinus1 ];
712
713      for(Int i=0; i<m_iNumRowsMinus1; i++)
714      {
715        m_puiRowHeight[i] = rowHeight[i];
716        printf("row: m_iHeightInCU=%4d i=%4d height=%4d\n",m_iHeightInCU,i,m_puiRowHeight[i]); //AFU
717      }
718    }
719  }
720  UInt  getRowHeight                   ( UInt rowIdx )     { return *( m_puiRowHeight + rowIdx ); }
721  Void  xCheckGSParameters();
722  Void  setWaveFrontSynchro(Int iWaveFrontSynchro)       { m_iWaveFrontSynchro = iWaveFrontSynchro; }
723  Int   getWaveFrontsynchro()                            { return m_iWaveFrontSynchro; }
724  Void  setWaveFrontSubstreams(Int iWaveFrontSubstreams) { m_iWaveFrontSubstreams = iWaveFrontSubstreams; }
725  Int   getWaveFrontSubstreams()                         { return m_iWaveFrontSubstreams; }
726  Void  setDecodedPictureHashSEIEnabled(Int b)           { m_decodedPictureHashSEIEnabled = b; }
727  Int   getDecodedPictureHashSEIEnabled()                { return m_decodedPictureHashSEIEnabled; }
728  Void  setBufferingPeriodSEIEnabled(Int b)              { m_bufferingPeriodSEIEnabled = b; }
729  Int   getBufferingPeriodSEIEnabled()                   { return m_bufferingPeriodSEIEnabled; }
730  Void  setPictureTimingSEIEnabled(Int b)                { m_pictureTimingSEIEnabled = b; }
731  Int   getPictureTimingSEIEnabled()                     { return m_pictureTimingSEIEnabled; }
732  Void  setRecoveryPointSEIEnabled(Int b)                { m_recoveryPointSEIEnabled = b; }
733  Int   getRecoveryPointSEIEnabled()                     { return m_recoveryPointSEIEnabled; }
734  Void  setToneMappingInfoSEIEnabled(Bool b)                 {  m_toneMappingInfoSEIEnabled = b;  }
735  Bool  getToneMappingInfoSEIEnabled()                       {  return m_toneMappingInfoSEIEnabled;  }
736  Void  setTMISEIToneMapId(Int b)                            {  m_toneMapId = b;  }
737  Int   getTMISEIToneMapId()                                 {  return m_toneMapId;  }
738  Void  setTMISEIToneMapCancelFlag(Bool b)                   {  m_toneMapCancelFlag=b;  }
739  Bool  getTMISEIToneMapCancelFlag()                         {  return m_toneMapCancelFlag;  }
740  Void  setTMISEIToneMapPersistenceFlag(Bool b)              {  m_toneMapPersistenceFlag = b;  }
741  Bool   getTMISEIToneMapPersistenceFlag()                   {  return m_toneMapPersistenceFlag;  }
742  Void  setTMISEICodedDataBitDepth(Int b)                    {  m_codedDataBitDepth = b;  }
743  Int   getTMISEICodedDataBitDepth()                         {  return m_codedDataBitDepth;  }
744  Void  setTMISEITargetBitDepth(Int b)                       {  m_targetBitDepth = b;  }
745  Int   getTMISEITargetBitDepth()                            {  return m_targetBitDepth;  }
746  Void  setTMISEIModelID(Int b)                              {  m_modelId = b;  }
747  Int   getTMISEIModelID()                                   {  return m_modelId;  }
748  Void  setTMISEIMinValue(Int b)                             {  m_minValue = b;  }
749  Int   getTMISEIMinValue()                                  {  return m_minValue;  }
750  Void  setTMISEIMaxValue(Int b)                             {  m_maxValue = b;  }
751  Int   getTMISEIMaxValue()                                  {  return m_maxValue;  }
752  Void  setTMISEISigmoidMidpoint(Int b)                      {  m_sigmoidMidpoint = b;  }
753  Int   getTMISEISigmoidMidpoint()                           {  return m_sigmoidMidpoint;  }
754  Void  setTMISEISigmoidWidth(Int b)                         {  m_sigmoidWidth = b;  }
755  Int   getTMISEISigmoidWidth()                              {  return m_sigmoidWidth;  }
756  Void  setTMISEIStartOfCodedInterva( Int*  p )              {  m_startOfCodedInterval = p;  }
757  Int*  getTMISEIStartOfCodedInterva()                       {  return m_startOfCodedInterval;  }
758  Void  setTMISEINumPivots(Int b)                            {  m_numPivots = b;  }
759  Int   getTMISEINumPivots()                                 {  return m_numPivots;  }
760  Void  setTMISEICodedPivotValue( Int*  p )                  {  m_codedPivotValue = p;  }
761  Int*  getTMISEICodedPivotValue()                           {  return m_codedPivotValue;  }
762  Void  setTMISEITargetPivotValue( Int*  p )                 {  m_targetPivotValue = p;  }
763  Int*  getTMISEITargetPivotValue()                          {  return m_targetPivotValue;  }
764  Void  setTMISEICameraIsoSpeedIdc(Int b)                    {  m_cameraIsoSpeedIdc = b;  }
765  Int   getTMISEICameraIsoSpeedIdc()                         {  return m_cameraIsoSpeedIdc;  }
766  Void  setTMISEICameraIsoSpeedValue(Int b)                  {  m_cameraIsoSpeedValue = b;  }
767  Int   getTMISEICameraIsoSpeedValue()                       {  return m_cameraIsoSpeedValue;  }
768  Void  setTMISEIExposureCompensationValueSignFlag(Int b)    {  m_exposureCompensationValueSignFlag = b;  }
769  Int   getTMISEIExposureCompensationValueSignFlag()         {  return m_exposureCompensationValueSignFlag;  }
770  Void  setTMISEIExposureCompensationValueNumerator(Int b)   {  m_exposureCompensationValueNumerator = b;  }
771  Int   getTMISEIExposureCompensationValueNumerator()        {  return m_exposureCompensationValueNumerator;  }
772  Void  setTMISEIExposureCompensationValueDenomIdc(Int b)    {  m_exposureCompensationValueDenomIdc =b;  }
773  Int   getTMISEIExposureCompensationValueDenomIdc()         {  return m_exposureCompensationValueDenomIdc;  }
774  Void  setTMISEIRefScreenLuminanceWhite(Int b)              {  m_refScreenLuminanceWhite = b;  }
775  Int   getTMISEIRefScreenLuminanceWhite()                   {  return m_refScreenLuminanceWhite;  }
776  Void  setTMISEIExtendedRangeWhiteLevel(Int b)              {  m_extendedRangeWhiteLevel = b;  }
777  Int   getTMISEIExtendedRangeWhiteLevel()                   {  return m_extendedRangeWhiteLevel;  }
778  Void  setTMISEINominalBlackLevelLumaCodeValue(Int b)       {  m_nominalBlackLevelLumaCodeValue = b;  }
779  Int   getTMISEINominalBlackLevelLumaCodeValue()            {  return m_nominalBlackLevelLumaCodeValue;  }
780  Void  setTMISEINominalWhiteLevelLumaCodeValue(Int b)       {  m_nominalWhiteLevelLumaCodeValue = b;  }
781  Int   getTMISEINominalWhiteLevelLumaCodeValue()            {  return m_nominalWhiteLevelLumaCodeValue;  }
782  Void  setTMISEIExtendedWhiteLevelLumaCodeValue(Int b)      {  m_extendedWhiteLevelLumaCodeValue =b;  }
783  Int   getTMISEIExtendedWhiteLevelLumaCodeValue()           {  return m_extendedWhiteLevelLumaCodeValue;  }
784  Void  setFramePackingArrangementSEIEnabled(Int b)      { m_framePackingSEIEnabled = b; }
785  Int   getFramePackingArrangementSEIEnabled()           { return m_framePackingSEIEnabled; }
786  Void  setFramePackingArrangementSEIType(Int b)         { m_framePackingSEIType = b; }
787  Int   getFramePackingArrangementSEIType()              { return m_framePackingSEIType; }
788  Void  setFramePackingArrangementSEIId(Int b)           { m_framePackingSEIId = b; }
789  Int   getFramePackingArrangementSEIId()                { return m_framePackingSEIId; }
790  Void  setFramePackingArrangementSEIQuincunx(Int b)     { m_framePackingSEIQuincunx = b; }
791  Int   getFramePackingArrangementSEIQuincunx()          { return m_framePackingSEIQuincunx; }
792  Void  setFramePackingArrangementSEIInterpretation(Int b)  { m_framePackingSEIInterpretation = b; }
793  Int   getFramePackingArrangementSEIInterpretation()    { return m_framePackingSEIInterpretation; }
794  Void  setDisplayOrientationSEIAngle(Int b)             { m_displayOrientationSEIAngle = b; }
795  Int   getDisplayOrientationSEIAngle()                  { return m_displayOrientationSEIAngle; }
796  Void  setTemporalLevel0IndexSEIEnabled(Int b)          { m_temporalLevel0IndexSEIEnabled = b; }
797  Int   getTemporalLevel0IndexSEIEnabled()               { return m_temporalLevel0IndexSEIEnabled; }
798  Void  setGradualDecodingRefreshInfoEnabled(Int b)      { m_gradualDecodingRefreshInfoEnabled = b;    }
799  Int   getGradualDecodingRefreshInfoEnabled()           { return m_gradualDecodingRefreshInfoEnabled; }
800  Void  setDecodingUnitInfoSEIEnabled(Int b)                { m_decodingUnitInfoSEIEnabled = b;    }
801  Int   getDecodingUnitInfoSEIEnabled()                     { return m_decodingUnitInfoSEIEnabled; }
802  Void  setSOPDescriptionSEIEnabled(Int b)                { m_SOPDescriptionSEIEnabled = b; }
803  Int   getSOPDescriptionSEIEnabled()                     { return m_SOPDescriptionSEIEnabled; }
804  Void  setScalableNestingSEIEnabled(Int b)                { m_scalableNestingSEIEnabled = b; }
805  Int   getScalableNestingSEIEnabled()                     { return m_scalableNestingSEIEnabled; }
806  Void      setUseWP               ( Bool b )    { m_useWeightedPred   = b;    }
807  Void      setWPBiPred            ( Bool b )    { m_useWeightedBiPred = b;    }
808  Bool      getUseWP               ()            { return m_useWeightedPred;   }
809  Bool      getWPBiPred            ()            { return m_useWeightedBiPred; }
810  Void      setLog2ParallelMergeLevelMinus2   ( UInt u )    { m_log2ParallelMergeLevelMinus2       = u;    }
811  UInt      getLog2ParallelMergeLevelMinus2   ()            { return m_log2ParallelMergeLevelMinus2;       }
812  Void      setMaxNumMergeCand                ( UInt u )    { m_maxNumMergeCand = u;      }
813  UInt      getMaxNumMergeCand                ()            { return m_maxNumMergeCand;   }
814  Void      setUseScalingListId    ( Int  u )    { m_useScalingListId       = u;   }
815  Int       getUseScalingListId    ()            { return m_useScalingListId;      }
816  Void      setScalingListFile     ( Char*  pch ){ m_scalingListFile     = pch; }
817  Char*     getScalingListFile     ()            { return m_scalingListFile;    }
818  Void      setTMVPModeId ( Int  u ) { m_TMVPModeId = u;    }
819  Int       getTMVPModeId ()         { return m_TMVPModeId; }
820  Void      setSignHideFlag( Int signHideFlag ) { m_signHideFlag = signHideFlag; }
821  Int       getSignHideFlag()                    { return m_signHideFlag; }
822#if RATE_CONTROL_LAMBDA_DOMAIN
823  Bool      getUseRateCtrl         ()              { return m_RCEnableRateControl;   }
824  Void      setUseRateCtrl         ( Bool b )      { m_RCEnableRateControl = b;      }
825  Int       getTargetBitrate       ()              { return m_RCTargetBitrate;       }
826  Void      setTargetBitrate       ( Int bitrate ) { m_RCTargetBitrate  = bitrate;   }
827#if M0036_RC_IMPROVEMENT
828  Int       getKeepHierBit         ()              { return m_RCKeepHierarchicalBit; }
829  Void      setKeepHierBit         ( Int i )       { m_RCKeepHierarchicalBit = i;    }
830#else
831  Bool      getKeepHierBit         ()              { return m_RCKeepHierarchicalBit; }
832  Void      setKeepHierBit         ( Bool b )      { m_RCKeepHierarchicalBit = b;    }
833#endif
834  Bool      getLCULevelRC          ()              { return m_RCLCULevelRC; }
835  Void      setLCULevelRC          ( Bool b )      { m_RCLCULevelRC = b; }
836  Bool      getUseLCUSeparateModel ()              { return m_RCUseLCUSeparateModel; }
837  Void      setUseLCUSeparateModel ( Bool b )      { m_RCUseLCUSeparateModel = b;    }
838  Int       getInitialQP           ()              { return m_RCInitialQP;           }
839  Void      setInitialQP           ( Int QP )      { m_RCInitialQP = QP;             }
840  Bool      getForceIntraQP        ()              { return m_RCForceIntraQP;        }
841  Void      setForceIntraQP        ( Bool b )      { m_RCForceIntraQP = b;           }
842
843#if KWU_RC_MADPRED_E0227
844  UInt      getUseDepthMADPred    ()                { return m_depthMADPred;        }
845  Void      setUseDepthMADPred    (UInt b)          { m_depthMADPred    = b;        }
846#endif
847#if KWU_RC_VIEWRC_E0227
848  Bool      getUseViewWiseRateCtrl    ()                { return m_bViewWiseRateCtrl;        }
849  Void      setUseViewWiseRateCtrl    (Bool b)          { m_bViewWiseRateCtrl    = b;        }
850#endif
851#else
852  Bool      getUseRateCtrl    ()                { return m_enableRateCtrl;    }
853  Void      setUseRateCtrl    (Bool flag)       { m_enableRateCtrl = flag;    }
854  Int       getTargetBitrate  ()                { return m_targetBitrate;     }
855  Void      setTargetBitrate  (Int target)      { m_targetBitrate  = target;  }
856  Int       getNumLCUInUnit   ()                { return m_numLCUInUnit;      }
857  Void      setNumLCUInUnit   (Int numLCUs)     { m_numLCUInUnit   = numLCUs; }
858
859#if KWU_RC_MADPRED_E0227
860  UInt      getUseDepthMADPred    ()                { return m_depthMADPred;        }
861  Void      setUseDepthMADPred    (UInt b)          { m_depthMADPred    = b;        }
862#endif
863#if KWU_RC_VIEWRC_E0227
864  Bool      getUseViewWiseRateCtrl    ()                { return m_bViewWiseRateCtrl;        }
865  Void      setUseViewWiseRateCtrl    (Bool b)          { m_bViewWiseRateCtrl    = b;        }
866#endif
867#endif
868  Bool      getTransquantBypassEnableFlag()           { return m_TransquantBypassEnableFlag; }
869  Void      setTransquantBypassEnableFlag(Bool flag)  { m_TransquantBypassEnableFlag = flag; }
870  Bool      getCUTransquantBypassFlagValue()          { return m_CUTransquantBypassFlagValue; }
871  Void      setCUTransquantBypassFlagValue(Bool flag) { m_CUTransquantBypassFlagValue = flag; }
872#if H_MV
873  Void      setVPS           ( TComVPS *p ) { m_cVPS = p;    }
874  TComVPS*  getVPS           ()             { return m_cVPS; }
875#else
876  Void setVPS(TComVPS *p) { m_cVPS = *p; }
877  TComVPS *getVPS() { return &m_cVPS; }
878#endif
879  Void      setUseRecalculateQPAccordingToLambda ( Bool b ) { m_recalculateQPAccordingToLambda = b;    }
880  Bool      getUseRecalculateQPAccordingToLambda ()         { return m_recalculateQPAccordingToLambda; }
881
882  Void      setUseStrongIntraSmoothing ( Bool b ) { m_useStrongIntraSmoothing = b;    }
883  Bool      getUseStrongIntraSmoothing ()         { return m_useStrongIntraSmoothing; }
884
885  Void      setActiveParameterSetsSEIEnabled ( Int b )  { m_activeParameterSetsSEIEnabled = b; } 
886  Int       getActiveParameterSetsSEIEnabled ()         { return m_activeParameterSetsSEIEnabled; }
887  Bool      getVuiParametersPresentFlag()                 { return m_vuiParametersPresentFlag; }
888  Void      setVuiParametersPresentFlag(Bool i)           { m_vuiParametersPresentFlag = i; }
889  Bool      getAspectRatioInfoPresentFlag()               { return m_aspectRatioInfoPresentFlag; }
890  Void      setAspectRatioInfoPresentFlag(Bool i)         { m_aspectRatioInfoPresentFlag = i; }
891  Int       getAspectRatioIdc()                           { return m_aspectRatioIdc; }
892  Void      setAspectRatioIdc(Int i)                      { m_aspectRatioIdc = i; }
893  Int       getSarWidth()                                 { return m_sarWidth; }
894  Void      setSarWidth(Int i)                            { m_sarWidth = i; }
895  Int       getSarHeight()                                { return m_sarHeight; }
896  Void      setSarHeight(Int i)                           { m_sarHeight = i; }
897  Bool      getOverscanInfoPresentFlag()                  { return m_overscanInfoPresentFlag; }
898  Void      setOverscanInfoPresentFlag(Bool i)            { m_overscanInfoPresentFlag = i; }
899  Bool      getOverscanAppropriateFlag()                  { return m_overscanAppropriateFlag; }
900  Void      setOverscanAppropriateFlag(Bool i)            { m_overscanAppropriateFlag = i; }
901  Bool      getVideoSignalTypePresentFlag()               { return m_videoSignalTypePresentFlag; }
902  Void      setVideoSignalTypePresentFlag(Bool i)         { m_videoSignalTypePresentFlag = i; }
903  Int       getVideoFormat()                              { return m_videoFormat; }
904  Void      setVideoFormat(Int i)                         { m_videoFormat = i; }
905  Bool      getVideoFullRangeFlag()                       { return m_videoFullRangeFlag; }
906  Void      setVideoFullRangeFlag(Bool i)                 { m_videoFullRangeFlag = i; }
907  Bool      getColourDescriptionPresentFlag()             { return m_colourDescriptionPresentFlag; }
908  Void      setColourDescriptionPresentFlag(Bool i)       { m_colourDescriptionPresentFlag = i; }
909  Int       getColourPrimaries()                          { return m_colourPrimaries; }
910  Void      setColourPrimaries(Int i)                     { m_colourPrimaries = i; }
911  Int       getTransferCharacteristics()                  { return m_transferCharacteristics; }
912  Void      setTransferCharacteristics(Int i)             { m_transferCharacteristics = i; }
913  Int       getMatrixCoefficients()                       { return m_matrixCoefficients; }
914  Void      setMatrixCoefficients(Int i)                  { m_matrixCoefficients = i; }
915  Bool      getChromaLocInfoPresentFlag()                 { return m_chromaLocInfoPresentFlag; }
916  Void      setChromaLocInfoPresentFlag(Bool i)           { m_chromaLocInfoPresentFlag = i; }
917  Int       getChromaSampleLocTypeTopField()              { return m_chromaSampleLocTypeTopField; }
918  Void      setChromaSampleLocTypeTopField(Int i)         { m_chromaSampleLocTypeTopField = i; }
919  Int       getChromaSampleLocTypeBottomField()           { return m_chromaSampleLocTypeBottomField; }
920  Void      setChromaSampleLocTypeBottomField(Int i)      { m_chromaSampleLocTypeBottomField = i; }
921  Bool      getNeutralChromaIndicationFlag()              { return m_neutralChromaIndicationFlag; }
922  Void      setNeutralChromaIndicationFlag(Bool i)        { m_neutralChromaIndicationFlag = i; }
923  Window   &getDefaultDisplayWindow()                     { return m_defaultDisplayWindow; }
924  Void      setDefaultDisplayWindow (Int offsetLeft, Int offsetRight, Int offsetTop, Int offsetBottom ) { m_defaultDisplayWindow.setWindow (offsetLeft, offsetRight, offsetTop, offsetBottom); }
925  Bool      getFrameFieldInfoPresentFlag()                { return m_frameFieldInfoPresentFlag; }
926  Void      setFrameFieldInfoPresentFlag(Bool i)          { m_frameFieldInfoPresentFlag = i; } 
927  Bool      getPocProportionalToTimingFlag()              { return m_pocProportionalToTimingFlag; }
928  Void      setPocProportionalToTimingFlag(Bool x)        { m_pocProportionalToTimingFlag = x;    }
929  Int       getNumTicksPocDiffOneMinus1()                 { return m_numTicksPocDiffOneMinus1;    }
930  Void      setNumTicksPocDiffOneMinus1(Int x)            { m_numTicksPocDiffOneMinus1 = x;       }
931  Bool      getBitstreamRestrictionFlag()                 { return m_bitstreamRestrictionFlag; }
932  Void      setBitstreamRestrictionFlag(Bool i)           { m_bitstreamRestrictionFlag = i; }
933  Bool      getTilesFixedStructureFlag()                  { return m_tilesFixedStructureFlag; }
934  Void      setTilesFixedStructureFlag(Bool i)            { m_tilesFixedStructureFlag = i; }
935  Bool      getMotionVectorsOverPicBoundariesFlag()       { return m_motionVectorsOverPicBoundariesFlag; }
936  Void      setMotionVectorsOverPicBoundariesFlag(Bool i) { m_motionVectorsOverPicBoundariesFlag = i; }
937  Int       getMinSpatialSegmentationIdc()                { return m_minSpatialSegmentationIdc; }
938  Void      setMinSpatialSegmentationIdc(Int i)           { m_minSpatialSegmentationIdc = i; }
939  Int       getMaxBytesPerPicDenom()                      { return m_maxBytesPerPicDenom; }
940  Void      setMaxBytesPerPicDenom(Int i)                 { m_maxBytesPerPicDenom = i; }
941  Int       getMaxBitsPerMinCuDenom()                     { return m_maxBitsPerMinCuDenom; }
942  Void      setMaxBitsPerMinCuDenom(Int i)                { m_maxBitsPerMinCuDenom = i; }
943  Int       getLog2MaxMvLengthHorizontal()                { return m_log2MaxMvLengthHorizontal; }
944  Void      setLog2MaxMvLengthHorizontal(Int i)           { m_log2MaxMvLengthHorizontal = i; }
945  Int       getLog2MaxMvLengthVertical()                  { return m_log2MaxMvLengthVertical; }
946  Void      setLog2MaxMvLengthVertical(Int i)             { m_log2MaxMvLengthVertical = i; }
947 
948  Bool getProgressiveSourceFlag() const { return m_progressiveSourceFlag; }
949  Void setProgressiveSourceFlag(Bool b) { m_progressiveSourceFlag = b; }
950 
951  Bool getInterlacedSourceFlag() const { return m_interlacedSourceFlag; }
952  Void setInterlacedSourceFlag(Bool b) { m_interlacedSourceFlag = b; }
953 
954  Bool getNonPackedConstraintFlag() const { return m_nonPackedConstraintFlag; }
955  Void setNonPackedConstraintFlag(Bool b) { m_nonPackedConstraintFlag = b; }
956 
957  Bool getFrameOnlyConstraintFlag() const { return m_frameOnlyConstraintFlag; }
958  Void setFrameOnlyConstraintFlag(Bool b) { m_frameOnlyConstraintFlag = b; }
959#if H_3D
960  /// 3D Tools
961
962 //==== CAMERA PARAMETERS  ==========
963  Void      setCamParPrecision              ( UInt  u )      { m_uiCamParPrecision      = u; }
964  Void      setCamParInSliceHeader          ( Bool  b )      { m_bCamParInSliceHeader   = b; }
965  Void      setCodedScale                   ( Int** p )      { m_aaiCodedScale          = p; }
966  Void      setCodedOffset                  ( Int** p )      { m_aaiCodedOffset         = p; }
967  Void      setCameraParameters             ( TAppComCamPara* c) { m_cameraParameters   = c; }
968
969#if H_3D_VSO
970 //==== VSO  ==========
971  Void      setRenderModelParameters ( TRenModSetupStrParser* c ) { m_renderModelParameters = c; }
972  Bool      getUseVSO                       ()              { return m_bUseVSO;     }
973  Void      setUseVSO                       ( Bool  b  )    { m_bUseVSO     = b; }
974  UInt      getVSOMode                      ()              { return m_uiVSOMode; }
975  Void      setVSOMode                      ( UInt  ui )    { m_uiVSOMode   = ui; }
976  Bool      getForceLambdaScaleVSO          ()              { return m_bForceLambdaScale; }
977  Void      setForceLambdaScaleVSO          ( Bool   b )    { m_bForceLambdaScale = b; };
978  Double    getLambdaScaleVSO               ()              { return m_dLambdaScaleVSO;   }
979  Void      setLambdaScaleVSO               ( Double d )    { m_dLambdaScaleVSO   = d; };
980  Bool      getAllowNegDist                 ()              { return m_bAllowNegDist;     }
981  Void      setAllowNegDist                 ( Bool   b )    { m_bAllowNegDist     = b; };
982
983  // LGE_WVSO_A0119
984  Bool      getUseWVSO                      ()              { return m_bUseWVSO;     }
985  Void      setUseWVSO                      ( Bool  b )     { m_bUseWVSO   = b; }
986  Int       getVSOWeight                    ()              { return m_iVSOWeight;    }
987  Void      setVSOWeight                    ( Int   i )     { m_iVSOWeight = i; }
988  Int       getVSDWeight                    ()              { return m_iVSDWeight;    }
989  Void      setVSDWeight                    ( Int   i )     { m_iVSDWeight = i; }
990  Int       getDWeight                      ()              { return m_iDWeight;    }
991  Void      setDWeight                      ( Int   i )     { m_iDWeight   = i; }
992
993  // SAIT_VSO_EST_A0033
994  Bool      getUseEstimatedVSD              ()              { return m_bUseEstimatedVSD; }
995  Void      setUseEstimatedVSD              ( Bool  b )     { m_bUseEstimatedVSD = b; }
996  Double    getDispCoeff                    ()              { return m_dDispCoeff;    }
997  Void      setDispCoeff                    ( Double  d )   { m_dDispCoeff  = d; }
998#endif // H_3D_VSO
999
1000 //==== DIM  ==========
1001#if H_3D_DIM
1002  Bool      getUseDMM                       ()        { return m_useDMM; }
1003  Void      setUseDMM                       ( Bool b) { m_useDMM = b;    }
1004  Bool      getUseRBC                       ()        { return m_useRBC; }
1005  Void      setUseRBC                       ( Bool b) { m_useRBC = b;    }
1006  Bool      getUseSDC                       ()        { return m_useSDC; }
1007  Void      setUseSDC                       ( Bool b) { m_useSDC = b;    }
1008  Bool      getUseDLT                       ()        { return m_useDLT; }
1009  Void      setUseDLT                       ( Bool b) { m_useDLT = b;    }
1010#endif
1011#if H_3D_QTLPC
1012  Void      setUseQTL                       ( Bool b ) { m_bUseQTL = b;    }
1013  Bool      getUseQTL                       ()         { return m_bUseQTL; }
1014  Void      setUsePC                        ( Bool b ) { m_bUsePC  = b;    }
1015  Bool      getUsePC                        ()         { return m_bUsePC;  }
1016#endif
1017#endif // H_3D
1018};
1019
1020//! \}
1021
1022#endif // !defined(AFX_TENCCFG_H__6B99B797_F4DA_4E46_8E78_7656339A6C41__INCLUDED_)
Note: See TracBrowser for help on using the repository browser.