source: 3DVCSoftware/branches/HTM-15.2-dev/source/Lib/TLibEncoder/TEncCfg.h @ 1373

Last change on this file since 1373 was 1373, checked in by tech, 8 years ago

Macro fixes.

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