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