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