source: 3DVCSoftware/trunk/source/Lib/TLibEncoder/TEncCfg.h @ 1356

Last change on this file since 1356 was 1356, checked in by tech, 9 years ago

Merged 15.1-dev0-NICT@1355.

  • Property svn:eol-style set to native
File size: 76.9 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-2015, 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 NH_3D
49#include "TAppCommon/TAppComCamPara.h"
50#include "TLibRenderer/TRenModSetupStrParser.h"
51#endif
52
53#if NH_MV
54#include "TLibCommon/SEI.h"
55#endif
56
57struct GOPEntry
58{
59  Int m_POC;
60  Int m_QPOffset;
61  Double m_QPFactor;
62  Int m_tcOffsetDiv2;
63  Int m_betaOffsetDiv2;
64  Int m_temporalId;
65  Bool m_refPic;
66  Int m_numRefPicsActive;
67  Char m_sliceType;
68  Int m_numRefPics;
69  Int m_referencePics[MAX_NUM_REF_PICS];
70  Int m_usedByCurrPic[MAX_NUM_REF_PICS];
71  Int m_interRPSPrediction;
72  Int m_deltaRPS;
73  Int m_numRefIdc;
74  Int m_refIdc[MAX_NUM_REF_PICS+1];
75  Bool m_isEncoded;
76  #if NH_MV
77  Int m_numActiveRefLayerPics;
78  Int m_interLayerPredLayerIdc [MAX_NUM_REF_PICS];
79  Int m_interViewRefPosL[2][MAX_NUM_REF_PICS]; 
80#endif
81#if NH_3D
82  Bool m_interCompPredFlag;
83#endif
84
85GOPEntry()
86  : m_POC(-1)
87  , m_QPOffset(0)
88  , m_QPFactor(0)
89  , m_tcOffsetDiv2(0)
90  , m_betaOffsetDiv2(0)
91  , m_temporalId(0)
92  , m_refPic(false)
93  , m_numRefPicsActive(0)
94  , m_sliceType('P')
95  , m_numRefPics(0)
96  , m_interRPSPrediction(false)
97  , m_deltaRPS(0)
98  , m_numRefIdc(0)
99  , m_isEncoded(false)
100#if NH_MV
101  , m_numActiveRefLayerPics(0)
102#endif
103#if NH_3D
104  , m_interCompPredFlag(false)
105#endif
106
107  {
108    ::memset( m_referencePics, 0, sizeof(m_referencePics) );
109    ::memset( m_usedByCurrPic, 0, sizeof(m_usedByCurrPic) );
110    ::memset( m_refIdc,        0, sizeof(m_refIdc) );
111#if NH_MV
112    ::memset( m_interLayerPredLayerIdc,   0, sizeof(m_interLayerPredLayerIdc) );
113    ::memset( m_interViewRefPosL[0], -1, sizeof(m_interViewRefPosL[0]) );
114    ::memset( m_interViewRefPosL[1], -1, sizeof(m_interViewRefPosL[1]) );
115#endif
116  }
117};
118
119std::istringstream &operator>>(std::istringstream &in, GOPEntry &entry);     //input
120//! \ingroup TLibEncoder
121//! \{
122
123// ====================================================================================================================
124// Class definition
125// ====================================================================================================================
126
127/// encoder configuration class
128class TEncCfg
129{
130protected:
131  //==== File I/O ========
132  Int       m_iFrameRate;
133  Int       m_FrameSkip;
134  Int       m_iSourceWidth;
135  Int       m_iSourceHeight;
136  Window    m_conformanceWindow;
137  Int       m_framesToBeEncoded;
138  Double    m_adLambdaModifier[ MAX_TLAYER ];
139
140  Bool      m_printMSEBasedSequencePSNR;
141  Bool      m_printFrameMSE;
142  Bool      m_printSequenceMSE;
143  Bool      m_cabacZeroWordPaddingEnabled;
144
145  /* profile & level */
146  Profile::Name m_profile;
147  Level::Tier   m_levelTier;
148  Level::Name   m_level;
149  Bool m_progressiveSourceFlag;
150  Bool m_interlacedSourceFlag;
151  Bool m_nonPackedConstraintFlag;
152  Bool m_frameOnlyConstraintFlag;
153  UInt              m_bitDepthConstraintValue;
154  ChromaFormat      m_chromaFormatConstraintValue;
155  Bool              m_intraConstraintFlag;
156  Bool              m_onePictureOnlyConstraintFlag;
157  Bool              m_lowerBitRateConstraintFlag;
158
159  //====== Coding Structure ========
160  UInt      m_uiIntraPeriod;
161  UInt      m_uiDecodingRefreshType;            ///< the type of decoding refresh employed for the random access.
162  Int       m_iGOPSize;
163#if NH_MV
164  GOPEntry  m_GOPList[MAX_GOP+1];
165#else
166  GOPEntry  m_GOPList[MAX_GOP];
167#endif
168  Int       m_extraRPSs;
169  Int       m_maxDecPicBuffering[MAX_TLAYER];
170  Int       m_numReorderPics[MAX_TLAYER];
171
172  Int       m_iQP;                              //  if (AdaptiveQP == OFF)
173
174  Int       m_aiPad[2];
175
176
177  Int       m_iMaxRefPicNum;                     ///< this is used to mimic the sliding mechanism used by the decoder
178                                                 // TODO: We need to have a common sliding mechanism used by both the encoder and decoder
179
180  Int       m_maxTempLayer;                      ///< Max temporal layer
181  Bool      m_useAMP;
182  UInt      m_maxCUWidth;
183  UInt      m_maxCUHeight;
184  UInt      m_maxTotalCUDepth;
185  UInt      m_log2DiffMaxMinCodingBlockSize;
186
187  //======= Transform =============
188  UInt      m_uiQuadtreeTULog2MaxSize;
189  UInt      m_uiQuadtreeTULog2MinSize;
190  UInt      m_uiQuadtreeTUMaxDepthInter;
191  UInt      m_uiQuadtreeTUMaxDepthIntra;
192
193  //====== Loop/Deblock Filter ========
194  Bool      m_bLoopFilterDisable;
195  Bool      m_loopFilterOffsetInPPS;
196  Int       m_loopFilterBetaOffsetDiv2;
197  Int       m_loopFilterTcOffsetDiv2;
198  Bool      m_DeblockingFilterMetric;
199  Bool      m_bUseSAO;
200  Bool      m_bTestSAODisableAtPictureLevel;
201  Double    m_saoEncodingRate;       // When non-0 SAO early picture termination is enabled for luma and chroma
202  Double    m_saoEncodingRateChroma; // The SAO early picture termination rate to use for chroma (when m_SaoEncodingRate is >0). If <=0, use results for luma.
203  Int       m_maxNumOffsetsPerPic;
204  Bool      m_saoCtuBoundary;
205
206  //====== Motion search ========
207  Bool      m_bDisableIntraPUsInInterSlices;
208  Int       m_iFastSearch;                      //  0:Full search  1:Diamond  2:PMVFAST
209  Int       m_iSearchRange;                     //  0:Full frame
210  Int       m_bipredSearchRange;
211  Bool      m_bClipForBiPredMeEnabled;
212  Bool      m_bFastMEAssumingSmootherMVEnabled;
213
214#if NH_MV
215  Bool      m_bUseDisparitySearchRangeRestriction;
216  Int       m_iVerticalDisparitySearchRange;
217#endif
218  //====== Quality control ========
219  Int       m_iMaxDeltaQP;                      //  Max. absolute delta QP (1:default)
220  Int       m_iMaxCuDQPDepth;                   //  Max. depth for a minimum CuDQP (0:default)
221  Int       m_diffCuChromaQpOffsetDepth;        ///< If negative, then do not apply chroma qp offsets.
222
223  Int       m_chromaCbQpOffset;                 //  Chroma Cb QP Offset (0:default)
224  Int       m_chromaCrQpOffset;                 //  Chroma Cr Qp Offset (0:default)
225  ChromaFormat m_chromaFormatIDC;
226
227#if ADAPTIVE_QP_SELECTION
228  Bool      m_bUseAdaptQpSelect;
229#endif
230  Bool      m_extendedPrecisionProcessingFlag;
231  Bool      m_highPrecisionOffsetsEnabledFlag;
232  Bool      m_bUseAdaptiveQP;
233  Int       m_iQPAdaptationRange;
234
235  //====== Tool list ========
236  Int       m_bitDepth[MAX_NUM_CHANNEL_TYPE];
237  Bool      m_bUseASR;
238  Bool      m_bUseHADME;
239  Bool      m_useRDOQ;
240  Bool      m_useRDOQTS;
241#if T0196_SELECTIVE_RDOQ
242  Bool      m_useSelectiveRDOQ;
243#endif
244  UInt      m_rdPenalty;
245  Bool      m_bUseFastEnc;
246  Bool      m_bUseEarlyCU;
247  Bool      m_useFastDecisionForMerge;
248  Bool      m_bUseCbfFastMode;
249  Bool      m_useEarlySkipDetection;
250  Bool      m_crossComponentPredictionEnabledFlag;
251  Bool      m_reconBasedCrossCPredictionEstimate;
252  UInt      m_log2SaoOffsetScale[MAX_NUM_CHANNEL_TYPE];
253  Bool      m_useTransformSkip;
254  Bool      m_useTransformSkipFast;
255  UInt      m_log2MaxTransformSkipBlockSize;
256  Bool      m_transformSkipRotationEnabledFlag;
257  Bool      m_transformSkipContextEnabledFlag;
258  Bool      m_persistentRiceAdaptationEnabledFlag;
259  Bool      m_cabacBypassAlignmentEnabledFlag;
260  Bool      m_rdpcmEnabledFlag[NUMBER_OF_RDPCM_SIGNALLING_MODES];
261  Int*      m_aidQP;
262  UInt      m_uiDeltaQpRD;
263  Bool      m_bFastDeltaQP;
264
265  Bool      m_bUseConstrainedIntraPred;
266  Bool      m_bFastUDIUseMPMEnabled;
267  Bool      m_bFastMEForGenBLowDelayEnabled;
268  Bool      m_bUseBLambdaForNonKeyLowDelayPictures;
269  Bool      m_usePCM;
270  Int       m_PCMBitDepth[MAX_NUM_CHANNEL_TYPE];
271  UInt      m_pcmLog2MaxSize;
272  UInt      m_uiPCMLog2MinSize;
273  //====== Slice ========
274  SliceConstraint m_sliceMode;
275  Int       m_sliceArgument;
276  //====== Dependent Slice ========
277  SliceConstraint m_sliceSegmentMode;
278  Int       m_sliceSegmentArgument;
279  Bool      m_bLFCrossSliceBoundaryFlag;
280
281  Bool      m_bPCMInputBitDepthFlag;
282  Bool      m_bPCMFilterDisableFlag;
283  Bool      m_intraSmoothingDisabledFlag;
284  Bool      m_loopFilterAcrossTilesEnabledFlag;
285  Bool      m_tileUniformSpacingFlag;
286  Int       m_iNumColumnsMinus1;
287  Int       m_iNumRowsMinus1;
288  std::vector<Int> m_tileColumnWidth;
289  std::vector<Int> m_tileRowHeight;
290
291  Int       m_iWaveFrontSynchro;
292
293  Int       m_decodedPictureHashSEIEnabled;              ///< Checksum(3)/CRC(2)/MD5(1)/disable(0) acting on decoded picture hash SEI message
294  Int       m_bufferingPeriodSEIEnabled;
295  Int       m_pictureTimingSEIEnabled;
296  Int       m_recoveryPointSEIEnabled;
297  Bool      m_toneMappingInfoSEIEnabled;
298  Int       m_toneMapId;
299  Bool      m_toneMapCancelFlag;
300  Bool      m_toneMapPersistenceFlag;
301  Int       m_codedDataBitDepth;
302  Int       m_targetBitDepth;
303  Int       m_modelId;
304  Int       m_minValue;
305  Int       m_maxValue;
306  Int       m_sigmoidMidpoint;
307  Int       m_sigmoidWidth;
308  Int       m_numPivots;
309  Int       m_cameraIsoSpeedIdc;
310  Int       m_cameraIsoSpeedValue;
311  Int       m_exposureIndexIdc;
312  Int       m_exposureIndexValue;
313  Bool      m_exposureCompensationValueSignFlag;
314  Int       m_exposureCompensationValueNumerator;
315  Int       m_exposureCompensationValueDenomIdc;
316  Int       m_refScreenLuminanceWhite;
317  Int       m_extendedRangeWhiteLevel;
318  Int       m_nominalBlackLevelLumaCodeValue;
319  Int       m_nominalWhiteLevelLumaCodeValue;
320  Int       m_extendedWhiteLevelLumaCodeValue;
321  Int*      m_startOfCodedInterval;
322  Int*      m_codedPivotValue;
323  Int*      m_targetPivotValue;
324  Int       m_framePackingSEIEnabled;
325  Int       m_framePackingSEIType;
326  Int       m_framePackingSEIId;
327  Int       m_framePackingSEIQuincunx;
328  Int       m_framePackingSEIInterpretation;
329  Int       m_segmentedRectFramePackingSEIEnabled;
330  Bool      m_segmentedRectFramePackingSEICancel;
331  Int       m_segmentedRectFramePackingSEIType;
332  Bool      m_segmentedRectFramePackingSEIPersistence;
333  Int       m_displayOrientationSEIAngle;
334  Int       m_temporalLevel0IndexSEIEnabled;
335  Int       m_gradualDecodingRefreshInfoEnabled;
336  Int       m_noDisplaySEITLayer;
337  Int       m_decodingUnitInfoSEIEnabled;
338  Int       m_SOPDescriptionSEIEnabled;
339  Int       m_scalableNestingSEIEnabled;
340  Bool      m_tmctsSEIEnabled;
341  Bool      m_timeCodeSEIEnabled;
342  Int       m_timeCodeSEINumTs;
343  TComSEITimeSet   m_timeSetArray[MAX_TIMECODE_SEI_SETS];
344  Bool      m_kneeSEIEnabled;
345  Int       m_kneeSEIId;
346  Bool      m_kneeSEICancelFlag;
347  Bool      m_kneeSEIPersistenceFlag;
348  Int       m_kneeSEIInputDrange;
349  Int       m_kneeSEIInputDispLuminance;
350  Int       m_kneeSEIOutputDrange;
351  Int       m_kneeSEIOutputDispLuminance;
352  Int       m_kneeSEINumKneePointsMinus1;
353  Int*      m_kneeSEIInputKneePoint;
354  Int*      m_kneeSEIOutputKneePoint;
355  TComSEIMasteringDisplay m_masteringDisplay;
356#if NH_MV_SEI
357  SEIMessages* m_seiMessages; 
358#endif
359  //====== Weighted Prediction ========
360  Bool      m_useWeightedPred;       //< Use of Weighting Prediction (P_SLICE)
361  Bool      m_useWeightedBiPred;    //< Use of Bi-directional Weighting Prediction (B_SLICE)
362  UInt      m_log2ParallelMergeLevelMinus2;       ///< Parallel merge estimation region
363  UInt      m_maxNumMergeCand;                    ///< Maximum number of merge candidates
364  ScalingListMode m_useScalingListId;            ///< Using quantization matrix i.e. 0=off, 1=default, 2=file.
365  Char*     m_scalingListFile;          ///< quantization matrix file name
366  Int       m_TMVPModeId;
367  Bool      m_signHideFlag;
368  Bool      m_RCEnableRateControl;
369  Int       m_RCTargetBitrate;
370  Int       m_RCKeepHierarchicalBit;
371  Bool      m_RCLCULevelRC;
372  Bool      m_RCUseLCUSeparateModel;
373  Int       m_RCInitialQP;
374  Bool      m_RCForceIntraQP;
375
376#if KWU_RC_MADPRED_E0227
377  UInt       m_depthMADPred;
378#endif
379#if KWU_RC_VIEWRC_E0227
380  Bool      m_bViewWiseRateCtrl;
381#endif
382  Bool      m_TransquantBypassEnableFlag;                     ///< transquant_bypass_enable_flag setting in PPS.
383  Bool      m_CUTransquantBypassFlagForce;                    ///< if transquant_bypass_enable_flag, then, if true, all CU transquant bypass flags will be set to true.
384
385  CostMode  m_costMode;                                       ///< The cost function to use, primarily when considering lossless coding.
386#if NH_MV
387  TComVPS*  m_cVPS;                                           ///< pointer to VPS, same for all layers
388#else
389
390  TComVPS   m_cVPS;
391#endif
392
393#if NH_3D_DLT
394  TComDLT   m_cDLT;
395#endif
396  Bool      m_recalculateQPAccordingToLambda;                 ///< recalculate QP value according to the lambda value
397  Int       m_activeParameterSetsSEIEnabled;                  ///< enable active parameter set SEI message
398  Bool      m_vuiParametersPresentFlag;                       ///< enable generation of VUI parameters
399  Bool      m_aspectRatioInfoPresentFlag;                     ///< Signals whether aspect_ratio_idc is present
400  Bool      m_chromaSamplingFilterHintEnabled;                ///< Signals whether chroma sampling filter hint data is present
401  Int       m_chromaSamplingHorFilterIdc;                     ///< Specifies the Index of filter to use
402  Int       m_chromaSamplingVerFilterIdc;                     ///< Specifies the Index of filter to use
403  Int       m_aspectRatioIdc;                                 ///< aspect_ratio_idc
404  Int       m_sarWidth;                                       ///< horizontal size of the sample aspect ratio
405  Int       m_sarHeight;                                      ///< vertical size of the sample aspect ratio
406  Bool      m_overscanInfoPresentFlag;                        ///< Signals whether overscan_appropriate_flag is present
407  Bool      m_overscanAppropriateFlag;                        ///< Indicates whether conformant decoded pictures are suitable for display using overscan
408  Bool      m_videoSignalTypePresentFlag;                     ///< Signals whether video_format, video_full_range_flag, and colour_description_present_flag are present
409  Int       m_videoFormat;                                    ///< Indicates representation of pictures
410  Bool      m_videoFullRangeFlag;                             ///< Indicates the black level and range of luma and chroma signals
411  Bool      m_colourDescriptionPresentFlag;                   ///< Signals whether colour_primaries, transfer_characteristics and matrix_coefficients are present
412  Int       m_colourPrimaries;                                ///< Indicates chromaticity coordinates of the source primaries
413  Int       m_transferCharacteristics;                        ///< Indicates the opto-electronic transfer characteristics of the source
414  Int       m_matrixCoefficients;                             ///< Describes the matrix coefficients used in deriving luma and chroma from RGB primaries
415  Bool      m_chromaLocInfoPresentFlag;                       ///< Signals whether chroma_sample_loc_type_top_field and chroma_sample_loc_type_bottom_field are present
416  Int       m_chromaSampleLocTypeTopField;                    ///< Specifies the location of chroma samples for top field
417  Int       m_chromaSampleLocTypeBottomField;                 ///< Specifies the location of chroma samples for bottom field
418  Bool      m_neutralChromaIndicationFlag;                    ///< Indicates that the value of all decoded chroma samples is equal to 1<<(BitDepthCr-1)
419  Window    m_defaultDisplayWindow;                           ///< Represents the default display window parameters
420  Bool      m_frameFieldInfoPresentFlag;                      ///< Indicates that pic_struct and other field coding related values are present in picture timing SEI messages
421  Bool      m_pocProportionalToTimingFlag;                    ///< Indicates that the POC value is proportional to the output time w.r.t. first picture in CVS
422  Int       m_numTicksPocDiffOneMinus1;                       ///< Number of ticks minus 1 that for a POC difference of one
423  Bool      m_bitstreamRestrictionFlag;                       ///< Signals whether bitstream restriction parameters are present
424  Bool      m_tilesFixedStructureFlag;                        ///< Indicates that each active picture parameter set has the same values of the syntax elements related to tiles
425  Bool      m_motionVectorsOverPicBoundariesFlag;             ///< Indicates that no samples outside the picture boundaries are used for inter prediction
426  Int       m_minSpatialSegmentationIdc;                      ///< Indicates the maximum size of the spatial segments in the pictures in the coded video sequence
427  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
428  Int       m_maxBitsPerMinCuDenom;                           ///< Indicates an upper bound for the number of bits of coding_unit() data
429  Int       m_log2MaxMvLengthHorizontal;                      ///< Indicate the maximum absolute value of a decoded horizontal MV component in quarter-pel luma units
430  Int       m_log2MaxMvLengthVertical;                        ///< Indicate the maximum absolute value of a decoded vertical MV component in quarter-pel luma units
431
432  Bool      m_useStrongIntraSmoothing;                        ///< enable the use of strong intra smoothing (bi_linear interpolation) for 32x32 blocks when reference samples are flat.
433  Bool      m_bEfficientFieldIRAPEnabled;                     ///< enable to code fields in a specific, potentially more efficient, order.
434  Bool      m_bHarmonizeGopFirstFieldCoupleEnabled;
435
436  std::string m_summaryOutFilename;                           ///< filename to use for producing summary output file.
437  std::string m_summaryPicFilenameBase;                       ///< Base filename to use for producing summary picture output files. The actual filenames used will have I.txt, P.txt and B.txt appended.
438  UInt        m_summaryVerboseness;                           ///< Specifies the level of the verboseness of the text output.
439
440#if NH_MV
441#if !NH_MV_SEI
442  Bool              m_subBistreamPropSEIEnabled;
443  Int               m_numAdditionalSubStreams;
444  std::vector<Int>  m_subBitstreamMode;
445  std::vector<Int>  m_outputLayerSetIdxToVps;
446  std::vector<Int>  m_highestSublayerId;
447  std::vector<Int>  m_avgBitRate;
448  std::vector<Int>  m_maxBitRate;
449#endif
450#endif
451
452#if NH_MV
453  Int       m_layerId;
454  Int       m_layerIdInVps;
455  Int       m_viewId;
456  Int       m_viewIndex; 
457#endif
458
459#if NH_3D
460  Bool      m_isDepth;
461
462  //====== Camera Parameters ======
463  TAppComCamPara* m_cameraParameters; 
464 
465#if NH_3D_VSO
466  //====== View Synthesis Optimization ======
467  TRenModSetupStrParser* m_renderModelParameters; 
468  Bool      m_bUseVSO;
469  Bool      m_bForceLambdaScale;
470  Bool      m_bAllowNegDist;
471  Double    m_dLambdaScaleVSO;
472  UInt      m_uiVSOMode;
473  // LGE_WVSO_A0119
474  Bool      m_bUseWVSO;
475  Int       m_iVSOWeight;
476  Int       m_iVSDWeight;
477  Int       m_iDWeight;
478  // SAIT_VSO_EST_A0033
479  Bool      m_bUseEstimatedVSD; 
480  Double    m_dDispCoeff;
481#endif
482
483  Bool      m_bUseIC;
484  Bool      m_bUseICLowLatencyEnc; 
485  Bool      m_useDMM;
486  Bool      m_useSDC;
487  Bool      m_useDLT;
488  Bool      m_bUseQTL;
489  Int       m_profileIdc;
490
491#endif
492public:
493  TEncCfg()
494  : m_tileColumnWidth()
495  , m_tileRowHeight()
496#if NH_MV
497  , m_layerId(-1)
498  , m_layerIdInVps(-1)
499  , m_viewId(-1)
500  , m_viewIndex(-1)
501#if NH_3D
502  , m_isDepth(false)
503#if NH_3D_VSO
504  , m_bUseVSO(false)
505#endif
506  , m_profileIdc( -1 )
507#endif
508#endif
509
510  {
511    m_PCMBitDepth[CHANNEL_TYPE_LUMA]=8;
512    m_PCMBitDepth[CHANNEL_TYPE_CHROMA]=8;
513  }
514
515  virtual ~TEncCfg()
516  {}
517
518  Void setProfile(Profile::Name profile) { m_profile = profile; }
519  Void setLevel(Level::Tier tier, Level::Name level) { m_levelTier = tier; m_level = level; }
520
521  Void      setFrameRate                    ( Int   i )      { m_iFrameRate = i; }
522  Void      setFrameSkip                    ( UInt i ) { m_FrameSkip = i; }
523  Void      setSourceWidth                  ( Int   i )      { m_iSourceWidth = i; }
524  Void      setSourceHeight                 ( Int   i )      { m_iSourceHeight = i; }
525
526  Window   &getConformanceWindow()                           { return m_conformanceWindow; }
527  Void      setConformanceWindow (Int confLeft, Int confRight, Int confTop, Int confBottom ) { m_conformanceWindow.setWindow (confLeft, confRight, confTop, confBottom); }
528
529  Void      setFramesToBeEncoded            ( Int   i )      { m_framesToBeEncoded = i; }
530
531  Bool      getPrintMSEBasedSequencePSNR    ()         const { return m_printMSEBasedSequencePSNR;  }
532  Void      setPrintMSEBasedSequencePSNR    (Bool value)     { m_printMSEBasedSequencePSNR = value; }
533
534  Bool      getPrintFrameMSE                ()         const { return m_printFrameMSE;              }
535  Void      setPrintFrameMSE                (Bool value)     { m_printFrameMSE = value;             }
536
537  Bool      getPrintSequenceMSE             ()         const { return m_printSequenceMSE;           }
538  Void      setPrintSequenceMSE             (Bool value)     { m_printSequenceMSE = value;          }
539
540  Bool      getCabacZeroWordPaddingEnabled()           const { return m_cabacZeroWordPaddingEnabled;  }
541  Void      setCabacZeroWordPaddingEnabled(Bool value)       { m_cabacZeroWordPaddingEnabled = value; }
542#if NH_MV
543  Void      setLayerId                       ( Int layerId )      { m_layerId = layerId; }
544  Int       getLayerId                       ()                   { return m_layerId;    }
545  Int       getLayerIdInVps                  ()                   { return m_layerIdInVps; }
546  Void      setLayerIdInVps                  ( Int layerIdInVps)  { m_layerIdInVps = layerIdInVps; }
547  Void      setViewId                        ( Int viewId  )      { m_viewId  = viewId;  }
548  Int       getViewId                        ()                   { return m_viewId;    }
549  Void      setViewIndex                     ( Int viewIndex  )   { m_viewIndex  = viewIndex;  }
550  Int       getViewIndex                     ()                   { return m_viewIndex;    }
551#if NH_3D
552  Void      setIsDepth                       ( Bool isDepth )   { m_isDepth = isDepth; }
553  Bool      getIsDepth                       ()                 { return m_isDepth; }
554#endif
555#endif
556  //====== Coding Structure ========
557  Void      setIntraPeriod                  ( Int   i )      { m_uiIntraPeriod = (UInt)i; }
558  Void      setDecodingRefreshType          ( Int   i )      { m_uiDecodingRefreshType = (UInt)i; }
559  Void      setGOPSize                      ( Int   i )      { m_iGOPSize = i; }
560#if NH_MV
561  Void      setGopList                      ( GOPEntry*  GOPList ) {  for ( Int i = 0; i < MAX_GOP+1; i++ ) m_GOPList[i] = GOPList[i]; }
562#else
563  Void      setGopList                      ( GOPEntry*  GOPList ) {  for ( Int i = 0; i < MAX_GOP; i++ ) m_GOPList[i] = GOPList[i]; }
564#endif
565  Void      setExtraRPSs                    ( Int   i )      { m_extraRPSs = i; }
566  GOPEntry  getGOPEntry                     ( Int   i )      { return m_GOPList[i]; }
567  Void      setEncodedFlag                  ( Int  i, Bool value )  { m_GOPList[i].m_isEncoded = value; }
568  Void      setMaxDecPicBuffering           ( UInt u, UInt tlayer ) { m_maxDecPicBuffering[tlayer] = u;    }
569  Void      setNumReorderPics               ( Int  i, UInt tlayer ) { m_numReorderPics[tlayer] = i;    }
570
571  Void      setQP                           ( Int   i )      { m_iQP = i; }
572
573  Void      setPad                          ( Int*  iPad                   )      { for ( Int i = 0; i < 2; i++ ) m_aiPad[i] = iPad[i]; }
574
575  Int       getMaxRefPicNum                 ()                              { return m_iMaxRefPicNum;           }
576  Void      setMaxRefPicNum                 ( Int iMaxRefPicNum )           { m_iMaxRefPicNum = iMaxRefPicNum;  }
577
578  Int       getMaxTempLayer                 ()                              { return m_maxTempLayer;              } 
579  Void      setMaxTempLayer                 ( Int maxTempLayer )            { m_maxTempLayer = maxTempLayer;      }
580  Void      setMaxCUWidth                   ( UInt  u )      { m_maxCUWidth  = u; }
581  Void      setMaxCUHeight                  ( UInt  u )      { m_maxCUHeight = u; }
582  Void      setMaxTotalCUDepth              ( UInt  u )      { m_maxTotalCUDepth = u; }
583  Void      setLog2DiffMaxMinCodingBlockSize( UInt  u )      { m_log2DiffMaxMinCodingBlockSize = u; }
584#if NH_3D_IC
585  Void       setUseIC                       ( Bool bVal )    { m_bUseIC = bVal; }
586  Bool       getUseIC                       ()               { return m_bUseIC; }
587  Void       setUseICLowLatencyEnc          ( Bool bVal )    { m_bUseICLowLatencyEnc = bVal; }
588  Bool       getUseICLowLatencyEnc          ()               { return m_bUseICLowLatencyEnc; }
589#endif
590
591  //======== Transform =============
592  Void      setQuadtreeTULog2MaxSize        ( UInt  u )      { m_uiQuadtreeTULog2MaxSize = u; }
593  Void      setQuadtreeTULog2MinSize        ( UInt  u )      { m_uiQuadtreeTULog2MinSize = u; }
594  Void      setQuadtreeTUMaxDepthInter      ( UInt  u )      { m_uiQuadtreeTUMaxDepthInter = u; }
595  Void      setQuadtreeTUMaxDepthIntra      ( UInt  u )      { m_uiQuadtreeTUMaxDepthIntra = u; }
596
597  Void setUseAMP( Bool b ) { m_useAMP = b; }
598
599  //====== Loop/Deblock Filter ========
600  Void      setLoopFilterDisable            ( Bool  b )      { m_bLoopFilterDisable       = b; }
601  Void      setLoopFilterOffsetInPPS        ( Bool  b )      { m_loopFilterOffsetInPPS      = b; }
602  Void      setLoopFilterBetaOffset         ( Int   i )      { m_loopFilterBetaOffsetDiv2  = i; }
603  Void      setLoopFilterTcOffset           ( Int   i )      { m_loopFilterTcOffsetDiv2    = i; }
604  Void      setDeblockingFilterMetric       ( Bool  b )      { m_DeblockingFilterMetric = b; }
605
606  //====== Motion search ========
607  Void      setDisableIntraPUsInInterSlices ( Bool  b )      { m_bDisableIntraPUsInInterSlices = b; }
608  Void      setFastSearch                   ( Int   i )      { m_iFastSearch = i; }
609  Void      setSearchRange                  ( Int   i )      { m_iSearchRange = i; }
610  Void      setBipredSearchRange            ( Int   i )      { m_bipredSearchRange = i; }
611  Void      setClipForBiPredMeEnabled       ( Bool  b )      { m_bClipForBiPredMeEnabled = b; }
612  Void      setFastMEAssumingSmootherMVEnabled ( Bool b )    { m_bFastMEAssumingSmootherMVEnabled = b; }
613#if NH_MV
614  Void      setUseDisparitySearchRangeRestriction ( Bool   b )      { m_bUseDisparitySearchRangeRestriction = b; }
615  Void      setVerticalDisparitySearchRange ( Int   i )      { m_iVerticalDisparitySearchRange = i; }
616#endif
617
618  //====== Quality control ========
619  Void      setMaxDeltaQP                   ( Int   i )      { m_iMaxDeltaQP = i; }
620  Void      setMaxCuDQPDepth                ( Int   i )      { m_iMaxCuDQPDepth = i; }
621
622  Int       getDiffCuChromaQpOffsetDepth    ()         const { return m_diffCuChromaQpOffsetDepth;  }
623  Void      setDiffCuChromaQpOffsetDepth    (Int value)      { m_diffCuChromaQpOffsetDepth = value; }
624
625  Void      setChromaCbQpOffset             ( Int   i )      { m_chromaCbQpOffset = i; }
626  Void      setChromaCrQpOffset             ( Int   i )      { m_chromaCrQpOffset = i; }
627
628  Void      setChromaFormatIdc              ( ChromaFormat cf ) { m_chromaFormatIDC = cf; }
629  ChromaFormat  getChromaFormatIdc          ( )              { return m_chromaFormatIDC; }
630
631#if ADAPTIVE_QP_SELECTION
632  Void      setUseAdaptQpSelect             ( Bool   i ) { m_bUseAdaptQpSelect    = i; }
633  Bool      getUseAdaptQpSelect             ()           { return   m_bUseAdaptQpSelect; }
634#endif
635
636  Bool      getExtendedPrecisionProcessingFlag         ()         const { return m_extendedPrecisionProcessingFlag;  }
637  Void      setExtendedPrecisionProcessingFlag         (Bool value)     { m_extendedPrecisionProcessingFlag = value; }
638
639  Bool      getHighPrecisionOffsetsEnabledFlag() const { return m_highPrecisionOffsetsEnabledFlag; }
640  Void      setHighPrecisionOffsetsEnabledFlag(Bool value) { m_highPrecisionOffsetsEnabledFlag = value; }
641
642  Void      setUseAdaptiveQP                ( Bool  b )      { m_bUseAdaptiveQP = b; }
643  Void      setQPAdaptationRange            ( Int   i )      { m_iQPAdaptationRange = i; }
644
645  //====== Sequence ========
646  Int       getFrameRate                    ()      { return  m_iFrameRate; }
647  UInt      getFrameSkip                    ()      { return  m_FrameSkip; }
648  Int       getSourceWidth                  ()      { return  m_iSourceWidth; }
649  Int       getSourceHeight                 ()      { return  m_iSourceHeight; }
650  Int       getFramesToBeEncoded            ()      { return  m_framesToBeEncoded; }
651  Void setLambdaModifier                    ( UInt uiIndex, Double dValue ) { m_adLambdaModifier[ uiIndex ] = dValue; }
652  Double getLambdaModifier                  ( UInt uiIndex ) const { return m_adLambdaModifier[ uiIndex ]; }
653
654  //==== Coding Structure ========
655  UInt      getIntraPeriod                  ()      { return  m_uiIntraPeriod; }
656  UInt      getDecodingRefreshType          ()      { return  m_uiDecodingRefreshType; }
657  Int       getGOPSize                      ()      { return  m_iGOPSize; }
658  Int       getMaxDecPicBuffering           (UInt tlayer) { return m_maxDecPicBuffering[tlayer]; }
659  Int       getNumReorderPics               (UInt tlayer) { return m_numReorderPics[tlayer]; }
660  Int       getQP                           ()      { return  m_iQP; }
661
662  Int       getPad                          ( Int i )      { assert (i < 2 );                      return  m_aiPad[i]; }
663
664  //======== Transform =============
665  UInt      getQuadtreeTULog2MaxSize        ()      const { return m_uiQuadtreeTULog2MaxSize; }
666  UInt      getQuadtreeTULog2MinSize        ()      const { return m_uiQuadtreeTULog2MinSize; }
667  UInt      getQuadtreeTUMaxDepthInter      ()      const { return m_uiQuadtreeTUMaxDepthInter; }
668  UInt      getQuadtreeTUMaxDepthIntra      ()      const { return m_uiQuadtreeTUMaxDepthIntra; }
669
670  //==== Loop/Deblock Filter ========
671  Bool      getLoopFilterDisable            ()      { return  m_bLoopFilterDisable;       }
672  Bool      getLoopFilterOffsetInPPS        ()      { return m_loopFilterOffsetInPPS; }
673  Int       getLoopFilterBetaOffset         ()      { return m_loopFilterBetaOffsetDiv2; }
674  Int       getLoopFilterTcOffset           ()      { return m_loopFilterTcOffsetDiv2; }
675  Bool      getDeblockingFilterMetric       ()      { return m_DeblockingFilterMetric; }
676
677  //==== Motion search ========
678  Bool      getDisableIntraPUsInInterSlices () const { return m_bDisableIntraPUsInInterSlices; }
679  Int       getFastSearch                   () const { return m_iFastSearch; }
680  Int       getSearchRange                  () const { return m_iSearchRange; }
681  Bool      getClipForBiPredMeEnabled       () const { return m_bClipForBiPredMeEnabled; }
682  Bool      getFastMEAssumingSmootherMVEnabled ( ) const { return m_bFastMEAssumingSmootherMVEnabled; }
683#if NH_MV
684  Bool      getUseDisparitySearchRangeRestriction ()      { return  m_bUseDisparitySearchRangeRestriction; }
685  Int       getVerticalDisparitySearchRange ()            { return  m_iVerticalDisparitySearchRange; }
686#endif
687
688  //==== Quality control ========
689  Int       getMaxDeltaQP                   ()      { return  m_iMaxDeltaQP; }
690  Int       getMaxCuDQPDepth                ()      { return  m_iMaxCuDQPDepth; }
691  Bool      getUseAdaptiveQP                ()      { return  m_bUseAdaptiveQP; }
692  Int       getQPAdaptationRange            ()      { return  m_iQPAdaptationRange; }
693
694  //==== Tool list ========
695  Void      setBitDepth( const ChannelType chType, Int internalBitDepthForChannel ) { m_bitDepth[chType] = internalBitDepthForChannel; }
696  Void      setUseASR                       ( Bool  b )     { m_bUseASR     = b; }
697  Void      setUseHADME                     ( Bool  b )     { m_bUseHADME   = b; }
698  Void      setUseRDOQ                      ( Bool  b )     { m_useRDOQ    = b; }
699  Void      setUseRDOQTS                    ( Bool  b )     { m_useRDOQTS  = b; }
700#if T0196_SELECTIVE_RDOQ
701  Void      setUseSelectiveRDOQ             ( Bool b )      { m_useSelectiveRDOQ = b; }
702#endif
703  Void      setRDpenalty                 ( UInt  b )     { m_rdPenalty  = b; }
704  Void      setUseFastEnc                   ( Bool  b )     { m_bUseFastEnc = b; }
705  Void      setUseEarlyCU                   ( Bool  b )     { m_bUseEarlyCU = b; }
706  Void      setUseFastDecisionForMerge      ( Bool  b )     { m_useFastDecisionForMerge = b; }
707  Void      setUseCbfFastMode            ( Bool  b )     { m_bUseCbfFastMode = b; }
708  Void      setUseEarlySkipDetection        ( Bool  b )     { m_useEarlySkipDetection = b; }
709  Void      setUseConstrainedIntraPred      ( Bool  b )     { m_bUseConstrainedIntraPred = b; }
710  Void      setFastUDIUseMPMEnabled         ( Bool  b )     { m_bFastUDIUseMPMEnabled = b; }
711  Void      setFastMEForGenBLowDelayEnabled ( Bool  b )     { m_bFastMEForGenBLowDelayEnabled = b; }
712  Void      setUseBLambdaForNonKeyLowDelayPictures ( Bool b ) { m_bUseBLambdaForNonKeyLowDelayPictures = b; }
713
714  Void      setPCMInputBitDepthFlag         ( Bool  b )     { m_bPCMInputBitDepthFlag = b; }
715  Void      setPCMFilterDisableFlag         ( Bool  b )     {  m_bPCMFilterDisableFlag = b; }
716  Void      setUsePCM                       ( Bool  b )     {  m_usePCM = b;               }
717  Void      setPCMBitDepth( const ChannelType chType, Int pcmBitDepthForChannel ) { m_PCMBitDepth[chType] = pcmBitDepthForChannel; }
718  Void      setPCMLog2MaxSize               ( UInt u )      { m_pcmLog2MaxSize = u;      }
719  Void      setPCMLog2MinSize               ( UInt u )     { m_uiPCMLog2MinSize = u;      }
720  Void      setdQPs                         ( Int*  p )     { m_aidQP       = p; }
721  Void      setDeltaQpRD                    ( UInt  u )     {m_uiDeltaQpRD  = u; }
722  Void      setFastDeltaQp                  ( Bool  b )     {m_bFastDeltaQP = b; }
723  Bool      getUseASR                       ()      { return m_bUseASR;     }
724  Bool      getUseHADME                     ()      { return m_bUseHADME;   }
725  Bool      getUseRDOQ                      ()      { return m_useRDOQ;    }
726  Bool      getUseRDOQTS                    ()      { return m_useRDOQTS;  }
727#if T0196_SELECTIVE_RDOQ
728  Bool      getUseSelectiveRDOQ             ()      { return m_useSelectiveRDOQ; }
729#endif
730  Int       getRDpenalty                    ()      { return m_rdPenalty;  }
731  Bool      getUseFastEnc                   ()      { return m_bUseFastEnc; }
732  Bool      getUseEarlyCU                   ()      { return m_bUseEarlyCU; }
733  Bool      getUseFastDecisionForMerge      ()      { return m_useFastDecisionForMerge; }
734  Bool      getUseCbfFastMode               ()      { return m_bUseCbfFastMode; }
735  Bool      getUseEarlySkipDetection        ()      { return m_useEarlySkipDetection; }
736  Bool      getUseConstrainedIntraPred      ()      { return m_bUseConstrainedIntraPred; }
737  Bool      getFastUDIUseMPMEnabled         ()      { return m_bFastUDIUseMPMEnabled; }
738  Bool      getFastMEForGenBLowDelayEnabled ()      { return m_bFastMEForGenBLowDelayEnabled; }
739  Bool      getUseBLambdaForNonKeyLowDelayPictures () { return m_bUseBLambdaForNonKeyLowDelayPictures; }
740  Bool      getPCMInputBitDepthFlag         ()      { return m_bPCMInputBitDepthFlag;   }
741  Bool      getPCMFilterDisableFlag         ()      { return m_bPCMFilterDisableFlag;   }
742  Bool      getUsePCM                       ()      { return m_usePCM;                 }
743  UInt      getPCMLog2MaxSize               ()      { return m_pcmLog2MaxSize;  }
744  UInt      getPCMLog2MinSize               ()      { return  m_uiPCMLog2MinSize;  }
745
746  Bool      getCrossComponentPredictionEnabledFlag     ()                const { return m_crossComponentPredictionEnabledFlag;   }
747  Void      setCrossComponentPredictionEnabledFlag     (const Bool value)      { m_crossComponentPredictionEnabledFlag = value;  }
748  Bool      getUseReconBasedCrossCPredictionEstimate ()                const { return m_reconBasedCrossCPredictionEstimate;  }
749  Void      setUseReconBasedCrossCPredictionEstimate (const Bool value)      { m_reconBasedCrossCPredictionEstimate = value; }
750  Void      setLog2SaoOffsetScale(ChannelType type, UInt uiBitShift)         { m_log2SaoOffsetScale[type] = uiBitShift; }
751
752  Bool getUseTransformSkip                             ()      { return m_useTransformSkip;        }
753  Void setUseTransformSkip                             ( Bool b ) { m_useTransformSkip  = b;       }
754  Bool getTransformSkipRotationEnabledFlag             ()            const { return m_transformSkipRotationEnabledFlag;  }
755  Void setTransformSkipRotationEnabledFlag             (const Bool value)  { m_transformSkipRotationEnabledFlag = value; }
756  Bool getTransformSkipContextEnabledFlag              ()            const { return m_transformSkipContextEnabledFlag;  }
757  Void setTransformSkipContextEnabledFlag              (const Bool value)  { m_transformSkipContextEnabledFlag = value; }
758  Bool getPersistentRiceAdaptationEnabledFlag          ()                 const { return m_persistentRiceAdaptationEnabledFlag;  }
759  Void setPersistentRiceAdaptationEnabledFlag          (const Bool value)       { m_persistentRiceAdaptationEnabledFlag = value; }
760  Bool getCabacBypassAlignmentEnabledFlag              ()       const      { return m_cabacBypassAlignmentEnabledFlag;  }
761  Void setCabacBypassAlignmentEnabledFlag              (const Bool value)  { m_cabacBypassAlignmentEnabledFlag = value; }
762  Bool getRdpcmEnabledFlag                             (const RDPCMSignallingMode signallingMode)        const      { return m_rdpcmEnabledFlag[signallingMode];  }
763  Void setRdpcmEnabledFlag                             (const RDPCMSignallingMode signallingMode, const Bool value) { m_rdpcmEnabledFlag[signallingMode] = value; }
764  Bool getUseTransformSkipFast                         ()      { return m_useTransformSkipFast;    }
765  Void setUseTransformSkipFast                         ( Bool b ) { m_useTransformSkipFast  = b;   }
766  UInt getLog2MaxTransformSkipBlockSize                () const      { return m_log2MaxTransformSkipBlockSize;     }
767  Void setLog2MaxTransformSkipBlockSize                ( UInt u )    { m_log2MaxTransformSkipBlockSize  = u;       }
768  Bool getIntraSmoothingDisabledFlag               ()      const { return m_intraSmoothingDisabledFlag; }
769  Void setIntraSmoothingDisabledFlag               (Bool bValue) { m_intraSmoothingDisabledFlag=bValue; }
770
771  Int*      getdQPs                         ()       { return m_aidQP;       }
772  UInt      getDeltaQpRD                    () const { return m_uiDeltaQpRD; }
773  Bool      getFastDeltaQp                  () const { return m_bFastDeltaQP; }
774
775  //====== Slice ========
776  Void  setSliceMode                   ( SliceConstraint  i )        { m_sliceMode = i;              }
777  Void  setSliceArgument               ( Int  i )                    { m_sliceArgument = i;          }
778  SliceConstraint getSliceMode         () const                      { return m_sliceMode;           }
779  Int   getSliceArgument               ()                            { return m_sliceArgument;       }
780  //====== Dependent Slice ========
781  Void  setSliceSegmentMode            ( SliceConstraint  i )        { m_sliceSegmentMode = i;       }
782  Void  setSliceSegmentArgument        ( Int  i )                    { m_sliceSegmentArgument = i;   }
783  SliceConstraint getSliceSegmentMode  () const                      { return m_sliceSegmentMode;    }
784  Int   getSliceSegmentArgument        ()                            { return m_sliceSegmentArgument;}
785  Void      setLFCrossSliceBoundaryFlag     ( Bool   bValue  )       { m_bLFCrossSliceBoundaryFlag = bValue; }
786  Bool      getLFCrossSliceBoundaryFlag     ()                       { return m_bLFCrossSliceBoundaryFlag;   }
787
788  Void      setUseSAO                  (Bool bVal)                   { m_bUseSAO = bVal; }
789  Bool      getUseSAO                  ()                            { return m_bUseSAO; }
790  Void  setTestSAODisableAtPictureLevel (Bool bVal)                  { m_bTestSAODisableAtPictureLevel = bVal; }
791  Bool  getTestSAODisableAtPictureLevel ( ) const                    { return m_bTestSAODisableAtPictureLevel; }
792
793  Void   setSaoEncodingRate(Double v)                                { m_saoEncodingRate = v; }
794  Double getSaoEncodingRate() const                                  { return m_saoEncodingRate; }
795  Void   setSaoEncodingRateChroma(Double v)                          { m_saoEncodingRateChroma = v; }
796  Double getSaoEncodingRateChroma() const                            { return m_saoEncodingRateChroma; }
797  Void  setMaxNumOffsetsPerPic                   (Int iVal)          { m_maxNumOffsetsPerPic = iVal; }
798  Int   getMaxNumOffsetsPerPic                   ()                  { return m_maxNumOffsetsPerPic; }
799  Void  setSaoCtuBoundary              (Bool val)                    { m_saoCtuBoundary = val; }
800  Bool  getSaoCtuBoundary              ()                            { return m_saoCtuBoundary; }
801  Void  setLFCrossTileBoundaryFlag               ( Bool   val  )     { m_loopFilterAcrossTilesEnabledFlag = val; }
802  Bool  getLFCrossTileBoundaryFlag               ()                  { return m_loopFilterAcrossTilesEnabledFlag;   }
803  Void  setTileUniformSpacingFlag      ( Bool b )                    { m_tileUniformSpacingFlag = b; }
804  Bool  getTileUniformSpacingFlag      ()                            { return m_tileUniformSpacingFlag; }
805  Void  setNumColumnsMinus1            ( Int i )                     { m_iNumColumnsMinus1 = i; }
806  Int   getNumColumnsMinus1            ()                            { return m_iNumColumnsMinus1; }
807  Void  setColumnWidth ( const std::vector<Int>& columnWidth )       { m_tileColumnWidth = columnWidth; }
808  UInt  getColumnWidth                 ( UInt columnIdx )            { return m_tileColumnWidth[columnIdx]; }
809  Void  setNumRowsMinus1               ( Int i )                     { m_iNumRowsMinus1 = i; }
810  Int   getNumRowsMinus1               ()                            { return m_iNumRowsMinus1; }
811  Void  setRowHeight ( const std::vector<Int>& rowHeight)            { m_tileRowHeight = rowHeight; }
812  UInt  getRowHeight                   ( UInt rowIdx )               { return m_tileRowHeight[rowIdx]; }
813  Void  xCheckGSParameters();
814  Void  setWaveFrontSynchro(Int iWaveFrontSynchro)                   { m_iWaveFrontSynchro = iWaveFrontSynchro; }
815  Int   getWaveFrontsynchro()                                        { return m_iWaveFrontSynchro; }
816  Void  setDecodedPictureHashSEIEnabled(Int b)                       { m_decodedPictureHashSEIEnabled = b; }
817  Int   getDecodedPictureHashSEIEnabled()                            { return m_decodedPictureHashSEIEnabled; }
818  Void  setBufferingPeriodSEIEnabled(Int b)                          { m_bufferingPeriodSEIEnabled = b; }
819  Int   getBufferingPeriodSEIEnabled()                               { return m_bufferingPeriodSEIEnabled; }
820  Void  setPictureTimingSEIEnabled(Int b)                            { m_pictureTimingSEIEnabled = b; }
821  Int   getPictureTimingSEIEnabled()                                 { return m_pictureTimingSEIEnabled; }
822  Void  setRecoveryPointSEIEnabled(Int b)                            { m_recoveryPointSEIEnabled = b; }
823  Int   getRecoveryPointSEIEnabled()                                 { return m_recoveryPointSEIEnabled; }
824  Void  setToneMappingInfoSEIEnabled(Bool b)                         { m_toneMappingInfoSEIEnabled = b;  }
825  Bool  getToneMappingInfoSEIEnabled()                               { return m_toneMappingInfoSEIEnabled;  }
826  Void  setTMISEIToneMapId(Int b)                                    { m_toneMapId = b;  }
827  Int   getTMISEIToneMapId()                                         { return m_toneMapId;  }
828  Void  setTMISEIToneMapCancelFlag(Bool b)                           { m_toneMapCancelFlag=b;  }
829  Bool  getTMISEIToneMapCancelFlag()                                 { return m_toneMapCancelFlag;  }
830  Void  setTMISEIToneMapPersistenceFlag(Bool b)                      { m_toneMapPersistenceFlag = b;  }
831  Bool   getTMISEIToneMapPersistenceFlag()                           { return m_toneMapPersistenceFlag;  }
832  Void  setTMISEICodedDataBitDepth(Int b)                            { m_codedDataBitDepth = b;  }
833  Int   getTMISEICodedDataBitDepth()                                 { return m_codedDataBitDepth;  }
834  Void  setTMISEITargetBitDepth(Int b)                               { m_targetBitDepth = b;  }
835  Int   getTMISEITargetBitDepth()                                    { return m_targetBitDepth;  }
836  Void  setTMISEIModelID(Int b)                                      { m_modelId = b;  }
837  Int   getTMISEIModelID()                                           { return m_modelId;  }
838  Void  setTMISEIMinValue(Int b)                                     { m_minValue = b;  }
839  Int   getTMISEIMinValue()                                          { return m_minValue;  }
840  Void  setTMISEIMaxValue(Int b)                                     { m_maxValue = b;  }
841  Int   getTMISEIMaxValue()                                          { return m_maxValue;  }
842  Void  setTMISEISigmoidMidpoint(Int b)                              { m_sigmoidMidpoint = b;  }
843  Int   getTMISEISigmoidMidpoint()                                   { return m_sigmoidMidpoint;  }
844  Void  setTMISEISigmoidWidth(Int b)                                 { m_sigmoidWidth = b;  }
845  Int   getTMISEISigmoidWidth()                                      { return m_sigmoidWidth;  }
846  Void  setTMISEIStartOfCodedInterva( Int*  p )                      { m_startOfCodedInterval = p;  }
847  Int*  getTMISEIStartOfCodedInterva()                               { return m_startOfCodedInterval;  }
848  Void  setTMISEINumPivots(Int b)                                    { m_numPivots = b;  }
849  Int   getTMISEINumPivots()                                         { return m_numPivots;  }
850  Void  setTMISEICodedPivotValue( Int*  p )                          { m_codedPivotValue = p;  }
851  Int*  getTMISEICodedPivotValue()                                   { return m_codedPivotValue;  }
852  Void  setTMISEITargetPivotValue( Int*  p )                         { m_targetPivotValue = p;  }
853  Int*  getTMISEITargetPivotValue()                                  { return m_targetPivotValue;  }
854  Void  setTMISEICameraIsoSpeedIdc(Int b)                            { m_cameraIsoSpeedIdc = b;  }
855  Int   getTMISEICameraIsoSpeedIdc()                                 { return m_cameraIsoSpeedIdc;  }
856  Void  setTMISEICameraIsoSpeedValue(Int b)                          { m_cameraIsoSpeedValue = b;  }
857  Int   getTMISEICameraIsoSpeedValue()                               { return m_cameraIsoSpeedValue;  }
858  Void  setTMISEIExposureIndexIdc(Int b)                             { m_exposureIndexIdc = b;  }
859  Int   getTMISEIExposurIndexIdc()                                   { return m_exposureIndexIdc;  }
860  Void  setTMISEIExposureIndexValue(Int b)                           { m_exposureIndexValue = b;  }
861  Int   getTMISEIExposurIndexValue()                                 { return m_exposureIndexValue;  }
862  Void  setTMISEIExposureCompensationValueSignFlag(Bool b)           { m_exposureCompensationValueSignFlag = b;  }
863  Bool  getTMISEIExposureCompensationValueSignFlag()                 { return m_exposureCompensationValueSignFlag;  }
864  Void  setTMISEIExposureCompensationValueNumerator(Int b)           { m_exposureCompensationValueNumerator = b;  }
865  Int   getTMISEIExposureCompensationValueNumerator()                { return m_exposureCompensationValueNumerator;  }
866  Void  setTMISEIExposureCompensationValueDenomIdc(Int b)            { m_exposureCompensationValueDenomIdc =b;  }
867  Int   getTMISEIExposureCompensationValueDenomIdc()                 { return m_exposureCompensationValueDenomIdc;  }
868  Void  setTMISEIRefScreenLuminanceWhite(Int b)                      { m_refScreenLuminanceWhite = b;  }
869  Int   getTMISEIRefScreenLuminanceWhite()                           { return m_refScreenLuminanceWhite;  }
870  Void  setTMISEIExtendedRangeWhiteLevel(Int b)                      { m_extendedRangeWhiteLevel = b;  }
871  Int   getTMISEIExtendedRangeWhiteLevel()                           { return m_extendedRangeWhiteLevel;  }
872  Void  setTMISEINominalBlackLevelLumaCodeValue(Int b)               { m_nominalBlackLevelLumaCodeValue = b;  }
873  Int   getTMISEINominalBlackLevelLumaCodeValue()                    { return m_nominalBlackLevelLumaCodeValue;  }
874  Void  setTMISEINominalWhiteLevelLumaCodeValue(Int b)               { m_nominalWhiteLevelLumaCodeValue = b;  }
875  Int   getTMISEINominalWhiteLevelLumaCodeValue()                    { return m_nominalWhiteLevelLumaCodeValue;  }
876  Void  setTMISEIExtendedWhiteLevelLumaCodeValue(Int b)              { m_extendedWhiteLevelLumaCodeValue =b;  }
877  Int   getTMISEIExtendedWhiteLevelLumaCodeValue()                   { return m_extendedWhiteLevelLumaCodeValue;  }
878  Void  setFramePackingArrangementSEIEnabled(Int b)                  { m_framePackingSEIEnabled = b; }
879  Int   getFramePackingArrangementSEIEnabled()                       { return m_framePackingSEIEnabled; }
880  Void  setFramePackingArrangementSEIType(Int b)                     { m_framePackingSEIType = b; }
881  Int   getFramePackingArrangementSEIType()                          { return m_framePackingSEIType; }
882  Void  setFramePackingArrangementSEIId(Int b)                       { m_framePackingSEIId = b; }
883  Int   getFramePackingArrangementSEIId()                            { return m_framePackingSEIId; }
884  Void  setFramePackingArrangementSEIQuincunx(Int b)                 { m_framePackingSEIQuincunx = b; }
885  Int   getFramePackingArrangementSEIQuincunx()                      { return m_framePackingSEIQuincunx; }
886  Void  setFramePackingArrangementSEIInterpretation(Int b)           { m_framePackingSEIInterpretation = b; }
887  Int   getFramePackingArrangementSEIInterpretation()                { return m_framePackingSEIInterpretation; }
888  Void  setSegmentedRectFramePackingArrangementSEIEnabled(Int b)     { m_segmentedRectFramePackingSEIEnabled = b; }
889  Int   getSegmentedRectFramePackingArrangementSEIEnabled()          { return m_segmentedRectFramePackingSEIEnabled; }
890  Void  setSegmentedRectFramePackingArrangementSEICancel(Int b)      { m_segmentedRectFramePackingSEICancel = b; }
891  Int   getSegmentedRectFramePackingArrangementSEICancel()           { return m_segmentedRectFramePackingSEICancel; }
892  Void  setSegmentedRectFramePackingArrangementSEIType(Int b)        { m_segmentedRectFramePackingSEIType = b; }
893  Int   getSegmentedRectFramePackingArrangementSEIType()             { return m_segmentedRectFramePackingSEIType; }
894  Void  setSegmentedRectFramePackingArrangementSEIPersistence(Int b) { m_segmentedRectFramePackingSEIPersistence = b; }
895  Int   getSegmentedRectFramePackingArrangementSEIPersistence()      { return m_segmentedRectFramePackingSEIPersistence; }
896  Void  setDisplayOrientationSEIAngle(Int b)                         { m_displayOrientationSEIAngle = b; }
897  Int   getDisplayOrientationSEIAngle()                              { return m_displayOrientationSEIAngle; }
898  Void  setTemporalLevel0IndexSEIEnabled(Int b)                      { m_temporalLevel0IndexSEIEnabled = b; }
899  Int   getTemporalLevel0IndexSEIEnabled()                           { return m_temporalLevel0IndexSEIEnabled; }
900  Void  setGradualDecodingRefreshInfoEnabled(Int b)                  { m_gradualDecodingRefreshInfoEnabled = b;    }
901  Int   getGradualDecodingRefreshInfoEnabled()                       { return m_gradualDecodingRefreshInfoEnabled; }
902  Void  setNoDisplaySEITLayer(Int b)                                 { m_noDisplaySEITLayer = b;    }
903  Int   getNoDisplaySEITLayer()                                      { return m_noDisplaySEITLayer; }
904  Void  setDecodingUnitInfoSEIEnabled(Int b)                         { m_decodingUnitInfoSEIEnabled = b;    }
905  Int   getDecodingUnitInfoSEIEnabled()                              { return m_decodingUnitInfoSEIEnabled; }
906  Void  setSOPDescriptionSEIEnabled(Int b)                           { m_SOPDescriptionSEIEnabled = b; }
907  Int   getSOPDescriptionSEIEnabled()                                { return m_SOPDescriptionSEIEnabled; }
908  Void  setScalableNestingSEIEnabled(Int b)                          { m_scalableNestingSEIEnabled = b; }
909  Int   getScalableNestingSEIEnabled()                               { return m_scalableNestingSEIEnabled; }
910  Void  setTMCTSSEIEnabled(Bool b)                                   { m_tmctsSEIEnabled = b; }
911  Bool  getTMCTSSEIEnabled()                                         { return m_tmctsSEIEnabled; }
912  Void  setTimeCodeSEIEnabled(Bool b)                                { m_timeCodeSEIEnabled = b; }
913  Bool  getTimeCodeSEIEnabled()                                      { return m_timeCodeSEIEnabled; }
914  Void  setNumberOfTimeSets(Int value)                               { m_timeCodeSEINumTs = value; }
915  Int   getNumberOfTimesets()                                        { return m_timeCodeSEINumTs; }
916  Void  setTimeSet(TComSEITimeSet element, Int index)                { m_timeSetArray[index] = element; }
917  TComSEITimeSet &getTimeSet(Int index)                              { return m_timeSetArray[index]; }
918  const TComSEITimeSet &getTimeSet(Int index) const                  { return m_timeSetArray[index]; }
919  Void  setKneeSEIEnabled(Int b)                                     { m_kneeSEIEnabled = b; }
920  Bool  getKneeSEIEnabled()                                          { return m_kneeSEIEnabled; }
921  Void  setKneeSEIId(Int b)                                          { m_kneeSEIId = b; }
922  Int   getKneeSEIId()                                               { return m_kneeSEIId; }
923  Void  setKneeSEICancelFlag(Bool b)                                 { m_kneeSEICancelFlag=b; }
924  Bool  getKneeSEICancelFlag()                                       { return m_kneeSEICancelFlag; }
925  Void  setKneeSEIPersistenceFlag(Bool b)                            { m_kneeSEIPersistenceFlag = b; }
926  Bool  getKneeSEIPersistenceFlag()                                  { return m_kneeSEIPersistenceFlag; }
927  Void  setKneeSEIInputDrange(Int b)                                 { m_kneeSEIInputDrange = b; }
928  Int   getKneeSEIInputDrange()                                      { return m_kneeSEIInputDrange; }
929  Void  setKneeSEIInputDispLuminance(Int b)                          { m_kneeSEIInputDispLuminance = b; }
930  Int   getKneeSEIInputDispLuminance()                               { return m_kneeSEIInputDispLuminance; }
931  Void  setKneeSEIOutputDrange(Int b)                                { m_kneeSEIOutputDrange = b; }
932  Int   getKneeSEIOutputDrange()                                     { return m_kneeSEIOutputDrange; }
933  Void  setKneeSEIOutputDispLuminance(Int b)                         { m_kneeSEIOutputDispLuminance = b; }
934  Int   getKneeSEIOutputDispLuminance()                              { return m_kneeSEIOutputDispLuminance; }
935  Void  setKneeSEINumKneePointsMinus1(Int b)                         { m_kneeSEINumKneePointsMinus1 = b; }
936  Int   getKneeSEINumKneePointsMinus1()                              { return m_kneeSEINumKneePointsMinus1; }
937  Void  setKneeSEIInputKneePoint(Int *p)                             { m_kneeSEIInputKneePoint = p; }
938  Int*  getKneeSEIInputKneePoint()                                   { return m_kneeSEIInputKneePoint; }
939  Void  setKneeSEIOutputKneePoint(Int *p)                            { m_kneeSEIOutputKneePoint = p; }
940  Int*  getKneeSEIOutputKneePoint()                                  { return m_kneeSEIOutputKneePoint; }
941  Void  setMasteringDisplaySEI(const TComSEIMasteringDisplay &src)   { m_masteringDisplay = src; }
942  const TComSEIMasteringDisplay &getMasteringDisplaySEI() const      { return m_masteringDisplay; }
943#if NH_MV
944#if NH_MV_SEI
945  Void setSeiMessages(SEIMessages *p)                                { m_seiMessages = p;    }
946  const SEIMessages*  getSeiMessages()                               { return m_seiMessages; }
947#else
948  Bool   getSubBitstreamPropSEIEnabled()                             { return m_subBistreamPropSEIEnabled;}
949  Void   setSubBitstreamPropSEIEnabled(Bool x)                       { m_subBistreamPropSEIEnabled = x;}
950                                                                     
951  Int    getNumAdditionalSubStreams()                                { return m_numAdditionalSubStreams;}
952  Void   setNumAdditionalSubStreams(Int x)                           { m_numAdditionalSubStreams = x;}
953
954  std::vector<Int> const &getSubBitstreamMode()                      { return m_subBitstreamMode;}
955  Int   getSubBitstreamMode(Int idx)                                 { return m_subBitstreamMode[idx];}
956  Void  setSubBitstreamMode(std::vector<Int> &x)                     { m_subBitstreamMode = x;}
957
958  std::vector<Int> const &getOutputLayerSetIdxToVps()                { return m_outputLayerSetIdxToVps;}
959  Int   getOutputLayerSetIdxToVps(Int idx)                           { return m_outputLayerSetIdxToVps[idx];}
960  Void  setOutputLayerSetIdxToVps(std::vector<Int> &x)               { m_outputLayerSetIdxToVps = x;}
961                                                                     
962  std::vector<Int> const &getHighestSublayerId()                     { return m_highestSublayerId;}
963  Int   getHighestSublayerId(Int idx)                                { return m_highestSublayerId[idx];}
964  Void  setHighestSublayerId(std::vector<Int> &x)                    { m_highestSublayerId = x;}
965                                                                     
966  std::vector<Int> const &getAvgBitRate()                            { return m_avgBitRate;}
967  Int   getAvgBitRate(Int idx)                                       { return m_avgBitRate[idx];}
968  Void  setAvgBitRate(std::vector<Int> &x)                           { m_avgBitRate = x;}
969                                                                     
970  std::vector<Int> const &getMaxBitRate()                            { return m_maxBitRate;}
971  Int   getMaxBitRate(Int idx)                                       { return m_maxBitRate[idx];}
972  Void  setMaxBitRate(std::vector<Int> &x)                           { m_maxBitRate = x;}
973#endif
974#endif
975
976  Void         setUseWP               ( Bool b )                     { m_useWeightedPred   = b;    }
977  Void         setWPBiPred            ( Bool b )                     { m_useWeightedBiPred = b;    }
978  Bool         getUseWP               ()                             { return m_useWeightedPred;   }
979  Bool         getWPBiPred            ()                             { return m_useWeightedBiPred; }
980  Void         setLog2ParallelMergeLevelMinus2   ( UInt u )          { m_log2ParallelMergeLevelMinus2       = u;    }
981  UInt         getLog2ParallelMergeLevelMinus2   ()                  { return m_log2ParallelMergeLevelMinus2;       }
982  Void         setMaxNumMergeCand                ( UInt u )          { m_maxNumMergeCand = u;      }
983  UInt         getMaxNumMergeCand                ()                  { return m_maxNumMergeCand;   }
984  Void         setUseScalingListId    ( ScalingListMode u )          { m_useScalingListId       = u;   }
985  ScalingListMode getUseScalingListId    ()                          { return m_useScalingListId;      }
986  Void         setScalingListFile     ( Char*  pch )                 { m_scalingListFile     = pch; }
987  Char*        getScalingListFile     ()                             { return m_scalingListFile;    }
988  Void         setTMVPModeId ( Int  u )                              { m_TMVPModeId = u;    }
989  Int          getTMVPModeId ()                                      { return m_TMVPModeId; }
990  Void         setSignHideFlag( Bool signHideFlag )                  { m_signHideFlag = signHideFlag; }
991  Bool         getSignHideFlag()                                     { return m_signHideFlag; }
992  Bool         getUseRateCtrl         ()                             { return m_RCEnableRateControl;   }
993  Void         setUseRateCtrl         ( Bool b )                     { m_RCEnableRateControl = b;      }
994  Int          getTargetBitrate       ()                             { return m_RCTargetBitrate;       }
995  Void         setTargetBitrate       ( Int bitrate )                { m_RCTargetBitrate  = bitrate;   }
996  Int          getKeepHierBit         ()                             { return m_RCKeepHierarchicalBit; }
997  Void         setKeepHierBit         ( Int i )                      { m_RCKeepHierarchicalBit = i;    }
998  Bool         getLCULevelRC          ()                             { return m_RCLCULevelRC; }
999  Void         setLCULevelRC          ( Bool b )                     { m_RCLCULevelRC = b; }
1000  Bool         getUseLCUSeparateModel ()                             { return m_RCUseLCUSeparateModel; }
1001  Void         setUseLCUSeparateModel ( Bool b )                     { m_RCUseLCUSeparateModel = b;    }
1002  Int          getInitialQP           ()                             { return m_RCInitialQP;           }
1003  Void         setInitialQP           ( Int QP )                     { m_RCInitialQP = QP;             }
1004  Bool         getForceIntraQP        ()                             { return m_RCForceIntraQP;        }
1005  Void         setForceIntraQP        ( Bool b )                     { m_RCForceIntraQP = b;           }
1006
1007#if KWU_RC_MADPRED_E0227
1008  UInt         getUseDepthMADPred     ()                             { return m_depthMADPred;        }
1009  Void         setUseDepthMADPred     (UInt b)                       { m_depthMADPred    = b;        }
1010#endif                                                             
1011#if KWU_RC_VIEWRC_E0227                                           
1012  Bool         getUseViewWiseRateCtrl ()                             { return m_bViewWiseRateCtrl;        }
1013  Void         setUseViewWiseRateCtrl (Bool b)                       { m_bViewWiseRateCtrl    = b;        }
1014#endif
1015  Bool         getTransquantBypassEnableFlag()                       { return m_TransquantBypassEnableFlag; }
1016  Void         setTransquantBypassEnableFlag(Bool flag)              { m_TransquantBypassEnableFlag = flag; }
1017  Bool         getCUTransquantBypassFlagForceValue()                 { return m_CUTransquantBypassFlagForce; }
1018  Void         setCUTransquantBypassFlagForceValue(Bool flag)        { m_CUTransquantBypassFlagForce = flag; }
1019  CostMode     getCostMode( )                                        { return m_costMode; }
1020  Void         setCostMode(CostMode m )                              { m_costMode = m; }
1021#if NH_MV
1022  Void         setVPS( TComVPS *p )                                  { m_cVPS = p;    }
1023  TComVPS*     getVPS()                                              { return m_cVPS; }
1024#else
1025  Void         setVPS(TComVPS *p)                                    { m_cVPS = *p; }
1026  TComVPS *    getVPS()                                              { return &m_cVPS; }
1027#endif
1028
1029#if NH_3D_DLT
1030  Void         setDLT( TComDLT p )                                   { m_cDLT = p; }
1031  TComDLT*     getDLT()                                              { return &m_cDLT; }
1032#endif
1033  Void         setUseRecalculateQPAccordingToLambda (Bool b)         { m_recalculateQPAccordingToLambda = b;    }
1034  Bool         getUseRecalculateQPAccordingToLambda ()               { return m_recalculateQPAccordingToLambda; }
1035
1036  Void         setUseStrongIntraSmoothing ( Bool b )                 { m_useStrongIntraSmoothing = b;    }
1037  Bool         getUseStrongIntraSmoothing ()                         { return m_useStrongIntraSmoothing; }
1038
1039  Void         setEfficientFieldIRAPEnabled( Bool b )                { m_bEfficientFieldIRAPEnabled = b; }
1040  Bool         getEfficientFieldIRAPEnabled( ) const                 { return m_bEfficientFieldIRAPEnabled; }
1041
1042  Void         setHarmonizeGopFirstFieldCoupleEnabled( Bool b )      { m_bHarmonizeGopFirstFieldCoupleEnabled = b; }
1043  Bool         getHarmonizeGopFirstFieldCoupleEnabled( ) const       { return m_bHarmonizeGopFirstFieldCoupleEnabled; }
1044
1045  Void         setActiveParameterSetsSEIEnabled ( Int b )            { m_activeParameterSetsSEIEnabled = b; }
1046  Int          getActiveParameterSetsSEIEnabled ()                   { return m_activeParameterSetsSEIEnabled; }
1047  Bool         getVuiParametersPresentFlag()                         { return m_vuiParametersPresentFlag; }
1048  Void         setVuiParametersPresentFlag(Bool i)                   { m_vuiParametersPresentFlag = i; }
1049  Bool         getAspectRatioInfoPresentFlag()                       { return m_aspectRatioInfoPresentFlag; }
1050  Void         setAspectRatioInfoPresentFlag(Bool i)                 { m_aspectRatioInfoPresentFlag = i; }
1051  Int          getAspectRatioIdc()                                   { return m_aspectRatioIdc; }
1052  Void         setAspectRatioIdc(Int i)                              { m_aspectRatioIdc = i; }
1053  Int          getSarWidth()                                         { return m_sarWidth; }
1054  Void         setSarWidth(Int i)                                    { m_sarWidth = i; }
1055  Int          getSarHeight()                                        { return m_sarHeight; }
1056  Void         setSarHeight(Int i)                                   { m_sarHeight = i; }
1057  Bool         getOverscanInfoPresentFlag()                          { return m_overscanInfoPresentFlag; }
1058  Void         setOverscanInfoPresentFlag(Bool i)                    { m_overscanInfoPresentFlag = i; }
1059  Bool         getOverscanAppropriateFlag()                          { return m_overscanAppropriateFlag; }
1060  Void         setOverscanAppropriateFlag(Bool i)                    { m_overscanAppropriateFlag = i; }
1061  Bool         getVideoSignalTypePresentFlag()                       { return m_videoSignalTypePresentFlag; }
1062  Void         setVideoSignalTypePresentFlag(Bool i)                 { m_videoSignalTypePresentFlag = i; }
1063  Int          getVideoFormat()                                      { return m_videoFormat; }
1064  Void         setVideoFormat(Int i)                                 { m_videoFormat = i; }
1065  Bool         getVideoFullRangeFlag()                               { return m_videoFullRangeFlag; }
1066  Void         setVideoFullRangeFlag(Bool i)                         { m_videoFullRangeFlag = i; }
1067  Bool         getColourDescriptionPresentFlag()                     { return m_colourDescriptionPresentFlag; }
1068  Void         setColourDescriptionPresentFlag(Bool i)               { m_colourDescriptionPresentFlag = i; }
1069  Int          getColourPrimaries()                                  { return m_colourPrimaries; }
1070  Void         setColourPrimaries(Int i)                             { m_colourPrimaries = i; }
1071  Int          getTransferCharacteristics()                          { return m_transferCharacteristics; }
1072  Void         setTransferCharacteristics(Int i)                     { m_transferCharacteristics = i; }
1073  Int          getMatrixCoefficients()                               { return m_matrixCoefficients; }
1074  Void         setMatrixCoefficients(Int i)                          { m_matrixCoefficients = i; }
1075  Bool         getChromaLocInfoPresentFlag()                         { return m_chromaLocInfoPresentFlag; }
1076  Void         setChromaLocInfoPresentFlag(Bool i)                   { m_chromaLocInfoPresentFlag = i; }
1077  Int          getChromaSampleLocTypeTopField()                      { return m_chromaSampleLocTypeTopField; }
1078  Void         setChromaSampleLocTypeTopField(Int i)                 { m_chromaSampleLocTypeTopField = i; }
1079  Int          getChromaSampleLocTypeBottomField()                   { return m_chromaSampleLocTypeBottomField; }
1080  Void         setChromaSampleLocTypeBottomField(Int i)              { m_chromaSampleLocTypeBottomField = i; }
1081  Bool         getNeutralChromaIndicationFlag()                      { return m_neutralChromaIndicationFlag; }
1082  Void         setNeutralChromaIndicationFlag(Bool i)                { m_neutralChromaIndicationFlag = i; }
1083  Window      &getDefaultDisplayWindow()                             { return m_defaultDisplayWindow; }
1084  Void         setDefaultDisplayWindow (Int offsetLeft, Int offsetRight, Int offsetTop, Int offsetBottom ) { m_defaultDisplayWindow.setWindow (offsetLeft, offsetRight, offsetTop, offsetBottom); }
1085  Bool         getFrameFieldInfoPresentFlag()                        { return m_frameFieldInfoPresentFlag; }
1086  Void         setFrameFieldInfoPresentFlag(Bool i)                  { m_frameFieldInfoPresentFlag = i; }
1087  Bool         getPocProportionalToTimingFlag()                      { return m_pocProportionalToTimingFlag; }
1088  Void         setPocProportionalToTimingFlag(Bool x)                { m_pocProportionalToTimingFlag = x;    }
1089  Int          getNumTicksPocDiffOneMinus1()                         { return m_numTicksPocDiffOneMinus1;    }
1090  Void         setNumTicksPocDiffOneMinus1(Int x)                    { m_numTicksPocDiffOneMinus1 = x;       }
1091  Bool         getBitstreamRestrictionFlag()                         { return m_bitstreamRestrictionFlag; }
1092  Void         setBitstreamRestrictionFlag(Bool i)                   { m_bitstreamRestrictionFlag = i; }
1093  Bool         getTilesFixedStructureFlag()                          { return m_tilesFixedStructureFlag; }
1094  Void         setTilesFixedStructureFlag(Bool i)                    { m_tilesFixedStructureFlag = i; }
1095  Bool         getMotionVectorsOverPicBoundariesFlag()               { return m_motionVectorsOverPicBoundariesFlag; }
1096  Void         setMotionVectorsOverPicBoundariesFlag(Bool i)         { m_motionVectorsOverPicBoundariesFlag = i; }
1097  Int          getMinSpatialSegmentationIdc()                        { return m_minSpatialSegmentationIdc; }
1098  Void         setMinSpatialSegmentationIdc(Int i)                   { m_minSpatialSegmentationIdc = i; }
1099  Int          getMaxBytesPerPicDenom()                              { return m_maxBytesPerPicDenom; }
1100  Void         setMaxBytesPerPicDenom(Int i)                         { m_maxBytesPerPicDenom = i; }
1101  Int          getMaxBitsPerMinCuDenom()                             { return m_maxBitsPerMinCuDenom; }
1102  Void         setMaxBitsPerMinCuDenom(Int i)                        { m_maxBitsPerMinCuDenom = i; }
1103  Int          getLog2MaxMvLengthHorizontal()                        { return m_log2MaxMvLengthHorizontal; }
1104  Void         setLog2MaxMvLengthHorizontal(Int i)                   { m_log2MaxMvLengthHorizontal = i; }
1105  Int          getLog2MaxMvLengthVertical()                          { return m_log2MaxMvLengthVertical; }
1106  Void         setLog2MaxMvLengthVertical(Int i)                     { m_log2MaxMvLengthVertical = i; }
1107
1108  Bool         getProgressiveSourceFlag() const                      { return m_progressiveSourceFlag; }
1109  Void         setProgressiveSourceFlag(Bool b)                      { m_progressiveSourceFlag = b; }
1110
1111  Bool         getInterlacedSourceFlag() const                       { return m_interlacedSourceFlag; }
1112  Void         setInterlacedSourceFlag(Bool b)                       { m_interlacedSourceFlag = b; }
1113
1114  Bool         getNonPackedConstraintFlag() const                    { return m_nonPackedConstraintFlag; }
1115  Void         setNonPackedConstraintFlag(Bool b)                    { m_nonPackedConstraintFlag = b; }
1116
1117  Bool         getFrameOnlyConstraintFlag() const                    { return m_frameOnlyConstraintFlag; }
1118  Void         setFrameOnlyConstraintFlag(Bool b)                    { m_frameOnlyConstraintFlag = b; }
1119
1120  UInt         getBitDepthConstraintValue() const                    { return m_bitDepthConstraintValue; }
1121  Void         setBitDepthConstraintValue(UInt v)                    { m_bitDepthConstraintValue=v; }
1122
1123  ChromaFormat getChromaFormatConstraintValue() const                { return m_chromaFormatConstraintValue; }
1124  Void         setChromaFormatConstraintValue(ChromaFormat v)        { m_chromaFormatConstraintValue=v; }
1125
1126  Bool         getIntraConstraintFlag() const                        { return m_intraConstraintFlag; }
1127  Void         setIntraConstraintFlag(Bool b)                        { m_intraConstraintFlag=b; }
1128
1129  Bool         getOnePictureOnlyConstraintFlag() const               { return m_onePictureOnlyConstraintFlag; }
1130  Void         setOnePictureOnlyConstraintFlag(Bool b)               { m_onePictureOnlyConstraintFlag=b; }
1131
1132  Bool         getLowerBitRateConstraintFlag() const                 { return m_lowerBitRateConstraintFlag; }
1133  Void         setLowerBitRateConstraintFlag(Bool b)                 { m_lowerBitRateConstraintFlag=b; }
1134  Bool      getChromaSamplingFilterHintEnabled()                     { return m_chromaSamplingFilterHintEnabled;}
1135  Void      setChromaSamplingFilterHintEnabled(Bool i)               { m_chromaSamplingFilterHintEnabled = i;}
1136  Int       getChromaSamplingHorFilterIdc()                          { return m_chromaSamplingHorFilterIdc;}
1137  Void      setChromaSamplingHorFilterIdc(Int i)                     { m_chromaSamplingHorFilterIdc = i;}
1138  Int       getChromaSamplingVerFilterIdc()                          { return m_chromaSamplingVerFilterIdc;}
1139  Void      setChromaSamplingVerFilterIdc(Int i)                     { m_chromaSamplingVerFilterIdc = i;}
1140
1141  Void      setSummaryOutFilename(const std::string &s)              { m_summaryOutFilename = s; }
1142  const std::string& getSummaryOutFilename() const                   { return m_summaryOutFilename; }
1143  Void      setSummaryPicFilenameBase(const std::string &s)          { m_summaryPicFilenameBase = s; }
1144  const std::string& getSummaryPicFilenameBase() const               { return m_summaryPicFilenameBase; }
1145
1146  Void      setSummaryVerboseness(UInt v)                            { m_summaryVerboseness = v; }
1147  UInt      getSummaryVerboseness( ) const                           { return m_summaryVerboseness; }
1148
1149#if NH_3D
1150  // Only flags that are not in the SPS3dExtension should go here.
1151  /// 3D Tools
1152
1153 //==== CAMERA PARAMETERS  ==========
1154  Void      setCameraParameters             ( TAppComCamPara* c) { m_cameraParameters   = c; }
1155
1156#if NH_3D_VSO
1157 //==== VSO  ==========
1158  Void      setRenderModelParameters ( TRenModSetupStrParser* c ) { m_renderModelParameters = c; }
1159  Bool      getUseVSO                       ()              { return m_bUseVSO;     }
1160  Void      setUseVSO                       ( Bool  b  )    { m_bUseVSO     = b; }
1161  UInt      getVSOMode                      ()              { return m_uiVSOMode; }
1162  Void      setVSOMode                      ( UInt  ui )    { m_uiVSOMode   = ui; }
1163  Bool      getForceLambdaScaleVSO          ()              { return m_bForceLambdaScale; }
1164  Void      setForceLambdaScaleVSO          ( Bool   b )    { m_bForceLambdaScale = b; };
1165  Double    getLambdaScaleVSO               ()              { return m_dLambdaScaleVSO;   }
1166  Void      setLambdaScaleVSO               ( Double d )    { m_dLambdaScaleVSO   = d; };
1167  Bool      getAllowNegDist                 ()              { return m_bAllowNegDist;     }
1168  Void      setAllowNegDist                 ( Bool   b )    { m_bAllowNegDist     = b; };
1169
1170  // LGE_WVSO_A0119
1171  Bool      getUseWVSO                      ()              { return m_bUseWVSO;     }
1172  Void      setUseWVSO                      ( Bool  b )     { m_bUseWVSO   = b; }
1173  Int       getVSOWeight                    ()              { return m_iVSOWeight;    }
1174  Void      setVSOWeight                    ( Int   i )     { m_iVSOWeight = i; }
1175  Int       getVSDWeight                    ()              { return m_iVSDWeight;    }
1176  Void      setVSDWeight                    ( Int   i )     { m_iVSDWeight = i; }
1177  Int       getDWeight                      ()              { return m_iDWeight;    }
1178  Void      setDWeight                      ( Int   i )     { m_iDWeight   = i; }
1179
1180  // SAIT_VSO_EST_A0033
1181  Bool      getUseEstimatedVSD              ()              { return m_bUseEstimatedVSD; }
1182  Void      setUseEstimatedVSD              ( Bool  b )     { m_bUseEstimatedVSD = b; }
1183  Double    getDispCoeff                    ()              { return m_dDispCoeff;    }
1184  Void      setDispCoeff                    ( Double  d )   { m_dDispCoeff  = d; }
1185#endif // NH_3D_VSO
1186
1187  Bool      getUseDMM                       ()        { return m_useDMM; }
1188  Void      setUseDMM                       ( Bool b) { m_useDMM = b;    }
1189  Bool      getUseSDC                       ()        { return m_useSDC; }
1190  Void      setUseSDC                       ( Bool b) { m_useSDC = b;    }
1191
1192  Bool      getUseDLT                       ()        { return m_useDLT; }
1193  Void      setUseDLT                       ( Bool b) { m_useDLT = b;    }
1194
1195  Void      setUseQTL                       ( Bool b ) { m_bUseQTL = b;    }
1196  Bool      getUseQTL                       ()         { return m_bUseQTL; }
1197
1198  Void      setProfileIdc( Int a )    { assert( a == 1 || a == 6 || a == 8 ); m_profileIdc = a;  }
1199  Bool      decProcAnnexI()           { assert( m_profileIdc != -1 ); return ( m_profileIdc == Profile::MAIN3D ); }   
1200#endif // NH_3D
1201};
1202
1203//! \}
1204
1205#endif // !defined(AFX_TENCCFG_H__6B99B797_F4DA_4E46_8E78_7656339A6C41__INCLUDED_)
Note: See TracBrowser for help on using the repository browser.