source: 3DVCSoftware/branches/HTM-16.0-MV-draft-5/source/Lib/TLibEncoder/TEncCfg.h

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

Removed 3D.

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