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