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