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

Last change on this file was 1413, checked in by tech, 6 years ago

Merged HTM-16.2-dev@1412

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