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