source: 3DVCSoftware/branches/HTM-14.1-update-dev2-Sharp/source/Lib/TLibEncoder/TEncCfg.h @ 1225

Last change on this file since 1225 was 1225, checked in by sharpjp-htm, 9 years ago

Migration of illumination compensation(NH_3D_IC) and small fix(H_MV_ENC_DEC_TRAC_FIX)

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