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 Q0096_OVERLAY_SEI |
---|
429 | Bool m_overlaySEIEnabled; |
---|
430 | Bool m_overlayInfoCancelFlag; |
---|
431 | UInt m_overlayContentAuxIdMinus128; |
---|
432 | UInt m_overlayLabelAuxIdMinus128; |
---|
433 | UInt m_overlayAlphaAuxIdMinus128; |
---|
434 | UInt m_overlayElementLabelValueLengthMinus8; |
---|
435 | UInt m_numOverlaysMinus1; |
---|
436 | std::vector<UInt> m_overlayIdx; |
---|
437 | std::vector<Bool> m_overlayLanguagePresentFlag; |
---|
438 | std::vector<UInt> m_overlayContentLayerId; |
---|
439 | std::vector<Bool> m_overlayLabelPresentFlag; |
---|
440 | std::vector<UInt> m_overlayLabelLayerId; |
---|
441 | std::vector<Bool> m_overlayAlphaPresentFlag; |
---|
442 | std::vector<UInt> m_overlayAlphaLayerId; |
---|
443 | std::vector<UInt> m_numOverlayElementsMinus1; |
---|
444 | std::vector< std::vector<UInt> > m_overlayElementLabelMin; |
---|
445 | std::vector< std::vector<UInt> > m_overlayElementLabelMax; |
---|
446 | std::vector<string> m_overlayLanguage; |
---|
447 | std::vector<string> m_overlayName; |
---|
448 | std::vector< std::vector<string> > m_overlayElementName; |
---|
449 | Bool m_overlayInfoPersistenceFlag; |
---|
450 | #endif |
---|
451 | #if Q0189_TMVP_CONSTRAINTS |
---|
452 | Int m_TMVPConstraintsSEIEnabled; |
---|
453 | #endif |
---|
454 | #endif //SVC_EXTENSION |
---|
455 | #if Q0074_COLOUR_REMAPPING_SEI |
---|
456 | Char* m_colourRemapSEIFile; ///< SEI Colour Remapping File (initialized from external file) |
---|
457 | Int m_colourRemapSEIId; |
---|
458 | Bool m_colourRemapSEICancelFlag; |
---|
459 | Bool m_colourRemapSEIPersistenceFlag; |
---|
460 | Bool m_colourRemapSEIVideoSignalInfoPresentFlag; |
---|
461 | Bool m_colourRemapSEIFullRangeFlag; |
---|
462 | Int m_colourRemapSEIPrimaries; |
---|
463 | Int m_colourRemapSEITransferFunction; |
---|
464 | Int m_colourRemapSEIMatrixCoefficients; |
---|
465 | Int m_colourRemapSEIInputBitDepth; |
---|
466 | Int m_colourRemapSEIBitDepth; |
---|
467 | Int m_colourRemapSEIPreLutNumValMinus1[3]; |
---|
468 | Int* m_colourRemapSEIPreLutCodedValue[3]; |
---|
469 | Int* m_colourRemapSEIPreLutTargetValue[3]; |
---|
470 | Bool m_colourRemapSEIMatrixPresentFlag; |
---|
471 | Int m_colourRemapSEILog2MatrixDenom; |
---|
472 | Int m_colourRemapSEICoeffs[3][3]; |
---|
473 | Int m_colourRemapSEIPostLutNumValMinus1[3]; |
---|
474 | Int* m_colourRemapSEIPostLutCodedValue[3]; |
---|
475 | Int* m_colourRemapSEIPostLutTargetValue[3]; |
---|
476 | #endif |
---|
477 | |
---|
478 | public: |
---|
479 | TEncCfg() |
---|
480 | : m_tileColumnWidth() |
---|
481 | , m_tileRowHeight() |
---|
482 | #if Q0074_COLOUR_REMAPPING_SEI |
---|
483 | , m_colourRemapSEIFile(NULL) |
---|
484 | #endif |
---|
485 | {} |
---|
486 | |
---|
487 | virtual ~TEncCfg() |
---|
488 | {} |
---|
489 | |
---|
490 | Void setProfile(Profile::Name profile) { m_profile = profile; } |
---|
491 | Void setLevel(Level::Tier tier, Level::Name level) { m_levelTier = tier; m_level = level; } |
---|
492 | |
---|
493 | Void setFrameRate ( Int i ) { m_iFrameRate = i; } |
---|
494 | Void setFrameSkip ( UInt i ) { m_FrameSkip = i; } |
---|
495 | Void setSourceWidth ( Int i ) { m_iSourceWidth = i; } |
---|
496 | Void setSourceHeight ( Int i ) { m_iSourceHeight = i; } |
---|
497 | |
---|
498 | Window &getConformanceWindow() { return m_conformanceWindow; } |
---|
499 | #if P0312_VERT_PHASE_ADJ && !R0209_GENERIC_PHASE |
---|
500 | Void setConformanceWindow (Int confLeft, Int confRight, Int confTop, Int confBottom ) { m_conformanceWindow.setWindow (confLeft, confRight, confTop, confBottom, false); } |
---|
501 | #else |
---|
502 | Void setConformanceWindow (Int confLeft, Int confRight, Int confTop, Int confBottom ) { m_conformanceWindow.setWindow (confLeft, confRight, confTop, confBottom); } |
---|
503 | #endif |
---|
504 | |
---|
505 | Void setFramesToBeEncoded ( Int i ) { m_framesToBeEncoded = i; } |
---|
506 | |
---|
507 | Bool getPrintMSEBasedSequencePSNR () const { return m_printMSEBasedSequencePSNR; } |
---|
508 | Void setPrintMSEBasedSequencePSNR (Bool value) { m_printMSEBasedSequencePSNR = value; } |
---|
509 | |
---|
510 | Bool getPrintFrameMSE () const { return m_printFrameMSE; } |
---|
511 | Void setPrintFrameMSE (Bool value) { m_printFrameMSE = value; } |
---|
512 | |
---|
513 | Bool getPrintSequenceMSE () const { return m_printSequenceMSE; } |
---|
514 | Void setPrintSequenceMSE (Bool value) { m_printSequenceMSE = value; } |
---|
515 | |
---|
516 | Bool getCabacZeroWordPaddingEnabled() const { return m_cabacZeroWordPaddingEnabled; } |
---|
517 | Void setCabacZeroWordPaddingEnabled(Bool value) { m_cabacZeroWordPaddingEnabled = value; } |
---|
518 | |
---|
519 | //====== Coding Structure ======== |
---|
520 | Void setIntraPeriod ( Int i ) { m_uiIntraPeriod = (UInt)i; } |
---|
521 | Void setDecodingRefreshType ( Int i ) { m_uiDecodingRefreshType = (UInt)i; } |
---|
522 | Void setGOPSize ( Int i ) { m_iGOPSize = i; } |
---|
523 | Void setGopList ( GOPEntry* GOPList ) { for ( Int i = 0; i < MAX_GOP; i++ ) m_GOPList[i] = GOPList[i]; } |
---|
524 | Void setExtraRPSs ( Int i ) { m_extraRPSs = i; } |
---|
525 | GOPEntry getGOPEntry ( Int i ) { return m_GOPList[i]; } |
---|
526 | Void setEncodedFlag ( Int i, Bool value ) { m_GOPList[i].m_isEncoded = value; } |
---|
527 | Void setMaxDecPicBuffering ( UInt u, UInt tlayer ) { m_maxDecPicBuffering[tlayer] = u; } |
---|
528 | Void setNumReorderPics ( Int i, UInt tlayer ) { m_numReorderPics[tlayer] = i; } |
---|
529 | |
---|
530 | Void setQP ( Int i ) { m_iQP = i; } |
---|
531 | |
---|
532 | Void setPad ( Int* iPad ) { for ( Int i = 0; i < 2; i++ ) m_aiPad[i] = iPad[i]; } |
---|
533 | |
---|
534 | Int getMaxRefPicNum () { return m_iMaxRefPicNum; } |
---|
535 | Void setMaxRefPicNum ( Int iMaxRefPicNum ) { m_iMaxRefPicNum = iMaxRefPicNum; } |
---|
536 | |
---|
537 | Int getMaxTempLayer () { return m_maxTempLayer; } |
---|
538 | Void setMaxTempLayer ( Int maxTempLayer ) { m_maxTempLayer = maxTempLayer; } |
---|
539 | //======== Transform ============= |
---|
540 | Void setQuadtreeTULog2MaxSize ( UInt u ) { m_uiQuadtreeTULog2MaxSize = u; } |
---|
541 | Void setQuadtreeTULog2MinSize ( UInt u ) { m_uiQuadtreeTULog2MinSize = u; } |
---|
542 | Void setQuadtreeTUMaxDepthInter ( UInt u ) { m_uiQuadtreeTUMaxDepthInter = u; } |
---|
543 | Void setQuadtreeTUMaxDepthIntra ( UInt u ) { m_uiQuadtreeTUMaxDepthIntra = u; } |
---|
544 | |
---|
545 | Void setUseAMP( Bool b ) { m_useAMP = b; } |
---|
546 | |
---|
547 | //====== Loop/Deblock Filter ======== |
---|
548 | Void setLoopFilterDisable ( Bool b ) { m_bLoopFilterDisable = b; } |
---|
549 | Void setLoopFilterOffsetInPPS ( Bool b ) { m_loopFilterOffsetInPPS = b; } |
---|
550 | Void setLoopFilterBetaOffset ( Int i ) { m_loopFilterBetaOffsetDiv2 = i; } |
---|
551 | Void setLoopFilterTcOffset ( Int i ) { m_loopFilterTcOffsetDiv2 = i; } |
---|
552 | Void setDeblockingFilterControlPresent ( Bool b ) { m_DeblockingFilterControlPresent = b; } |
---|
553 | Void setDeblockingFilterMetric ( Bool b ) { m_DeblockingFilterMetric = b; } |
---|
554 | |
---|
555 | //====== Motion search ======== |
---|
556 | Void setFastSearch ( Int i ) { m_iFastSearch = i; } |
---|
557 | Void setSearchRange ( Int i ) { m_iSearchRange = i; } |
---|
558 | Void setBipredSearchRange ( Int i ) { m_bipredSearchRange = i; } |
---|
559 | |
---|
560 | //====== Quality control ======== |
---|
561 | Void setMaxDeltaQP ( Int i ) { m_iMaxDeltaQP = i; } |
---|
562 | Void setMaxCuDQPDepth ( Int i ) { m_iMaxCuDQPDepth = i; } |
---|
563 | |
---|
564 | Int getMaxCUChromaQpAdjustmentDepth () const { return m_maxCUChromaQpAdjustmentDepth; } |
---|
565 | Void setMaxCUChromaQpAdjustmentDepth (Int value) { m_maxCUChromaQpAdjustmentDepth = value; } |
---|
566 | |
---|
567 | Void setChromaCbQpOffset ( Int i ) { m_chromaCbQpOffset = i; } |
---|
568 | Void setChromaCrQpOffset ( Int i ) { m_chromaCrQpOffset = i; } |
---|
569 | |
---|
570 | Void setChromaFormatIdc ( ChromaFormat cf ) { m_chromaFormatIDC = cf; } |
---|
571 | ChromaFormat getChromaFormatIdc ( ) { return m_chromaFormatIDC; } |
---|
572 | |
---|
573 | #if ADAPTIVE_QP_SELECTION |
---|
574 | Void setUseAdaptQpSelect ( Bool i ) { m_bUseAdaptQpSelect = i; } |
---|
575 | Bool getUseAdaptQpSelect () { return m_bUseAdaptQpSelect; } |
---|
576 | #endif |
---|
577 | |
---|
578 | Bool getUseExtendedPrecision () const { return m_useExtendedPrecision; } |
---|
579 | Void setUseExtendedPrecision (Bool value) { m_useExtendedPrecision = value; } |
---|
580 | |
---|
581 | Bool getUseHighPrecisionPredictionWeighting() const { return m_useHighPrecisionPredictionWeighting; } |
---|
582 | Void setUseHighPrecisionPredictionWeighting(Bool value) { m_useHighPrecisionPredictionWeighting = value; } |
---|
583 | |
---|
584 | Void setUseAdaptiveQP ( Bool b ) { m_bUseAdaptiveQP = b; } |
---|
585 | Void setQPAdaptationRange ( Int i ) { m_iQPAdaptationRange = i; } |
---|
586 | |
---|
587 | //====== Sequence ======== |
---|
588 | Int getFrameRate () { return m_iFrameRate; } |
---|
589 | UInt getFrameSkip () { return m_FrameSkip; } |
---|
590 | Int getSourceWidth () { return m_iSourceWidth; } |
---|
591 | Int getSourceHeight () { return m_iSourceHeight; } |
---|
592 | Int getFramesToBeEncoded () { return m_framesToBeEncoded; } |
---|
593 | Void setLambdaModifier ( UInt uiIndex, Double dValue ) { m_adLambdaModifier[ uiIndex ] = dValue; } |
---|
594 | Double getLambdaModifier ( UInt uiIndex ) const { return m_adLambdaModifier[ uiIndex ]; } |
---|
595 | |
---|
596 | //==== Coding Structure ======== |
---|
597 | UInt getIntraPeriod () { return m_uiIntraPeriod; } |
---|
598 | UInt getDecodingRefreshType () { return m_uiDecodingRefreshType; } |
---|
599 | Int getGOPSize () { return m_iGOPSize; } |
---|
600 | Int getMaxDecPicBuffering (UInt tlayer) { return m_maxDecPicBuffering[tlayer]; } |
---|
601 | Int getNumReorderPics (UInt tlayer) { return m_numReorderPics[tlayer]; } |
---|
602 | Int getQP () { return m_iQP; } |
---|
603 | |
---|
604 | Int getPad ( Int i ) { assert (i < 2 ); return m_aiPad[i]; } |
---|
605 | |
---|
606 | //======== Transform ============= |
---|
607 | UInt getQuadtreeTULog2MaxSize () const { return m_uiQuadtreeTULog2MaxSize; } |
---|
608 | UInt getQuadtreeTULog2MinSize () const { return m_uiQuadtreeTULog2MinSize; } |
---|
609 | UInt getQuadtreeTUMaxDepthInter () const { return m_uiQuadtreeTUMaxDepthInter; } |
---|
610 | UInt getQuadtreeTUMaxDepthIntra () const { return m_uiQuadtreeTUMaxDepthIntra; } |
---|
611 | |
---|
612 | //==== Loop/Deblock Filter ======== |
---|
613 | Bool getLoopFilterDisable () { return m_bLoopFilterDisable; } |
---|
614 | Bool getLoopFilterOffsetInPPS () { return m_loopFilterOffsetInPPS; } |
---|
615 | Int getLoopFilterBetaOffset () { return m_loopFilterBetaOffsetDiv2; } |
---|
616 | Int getLoopFilterTcOffset () { return m_loopFilterTcOffsetDiv2; } |
---|
617 | Bool getDeblockingFilterControlPresent() { return m_DeblockingFilterControlPresent; } |
---|
618 | Bool getDeblockingFilterMetric () { return m_DeblockingFilterMetric; } |
---|
619 | |
---|
620 | //==== Motion search ======== |
---|
621 | Int getFastSearch () { return m_iFastSearch; } |
---|
622 | Int getSearchRange () { return m_iSearchRange; } |
---|
623 | |
---|
624 | //==== Quality control ======== |
---|
625 | Int getMaxDeltaQP () { return m_iMaxDeltaQP; } |
---|
626 | Int getMaxCuDQPDepth () { return m_iMaxCuDQPDepth; } |
---|
627 | Bool getUseAdaptiveQP () { return m_bUseAdaptiveQP; } |
---|
628 | Int getQPAdaptationRange () { return m_iQPAdaptationRange; } |
---|
629 | |
---|
630 | //==== Tool list ======== |
---|
631 | Void setUseASR ( Bool b ) { m_bUseASR = b; } |
---|
632 | Void setUseHADME ( Bool b ) { m_bUseHADME = b; } |
---|
633 | Void setUseRDOQ ( Bool b ) { m_useRDOQ = b; } |
---|
634 | Void setUseRDOQTS ( Bool b ) { m_useRDOQTS = b; } |
---|
635 | Void setRDpenalty ( UInt b ) { m_rdPenalty = b; } |
---|
636 | Void setUseFastEnc ( Bool b ) { m_bUseFastEnc = b; } |
---|
637 | Void setUseEarlyCU ( Bool b ) { m_bUseEarlyCU = b; } |
---|
638 | Void setUseFastDecisionForMerge ( Bool b ) { m_useFastDecisionForMerge = b; } |
---|
639 | Void setUseCbfFastMode ( Bool b ) { m_bUseCbfFastMode = b; } |
---|
640 | Void setUseEarlySkipDetection ( Bool b ) { m_useEarlySkipDetection = b; } |
---|
641 | Void setUseConstrainedIntraPred ( Bool b ) { m_bUseConstrainedIntraPred = b; } |
---|
642 | Void setPCMInputBitDepthFlag ( Bool b ) { m_bPCMInputBitDepthFlag = b; } |
---|
643 | Void setPCMFilterDisableFlag ( Bool b ) { m_bPCMFilterDisableFlag = b; } |
---|
644 | Void setUsePCM ( Bool b ) { m_usePCM = b; } |
---|
645 | Void setPCMLog2MaxSize ( UInt u ) { m_pcmLog2MaxSize = u; } |
---|
646 | Void setPCMLog2MinSize ( UInt u ) { m_uiPCMLog2MinSize = u; } |
---|
647 | Void setdQPs ( Int* p ) { m_aidQP = p; } |
---|
648 | Void setDeltaQpRD ( UInt u ) {m_uiDeltaQpRD = u; } |
---|
649 | Bool getUseASR () { return m_bUseASR; } |
---|
650 | Bool getUseHADME () { return m_bUseHADME; } |
---|
651 | Bool getUseRDOQ () { return m_useRDOQ; } |
---|
652 | Bool getUseRDOQTS () { return m_useRDOQTS; } |
---|
653 | Int getRDpenalty () { return m_rdPenalty; } |
---|
654 | Bool getUseFastEnc () { return m_bUseFastEnc; } |
---|
655 | Bool getUseEarlyCU () { return m_bUseEarlyCU; } |
---|
656 | Bool getUseFastDecisionForMerge () { return m_useFastDecisionForMerge; } |
---|
657 | Bool getUseCbfFastMode () { return m_bUseCbfFastMode; } |
---|
658 | Bool getUseEarlySkipDetection () { return m_useEarlySkipDetection; } |
---|
659 | Bool getUseConstrainedIntraPred () { return m_bUseConstrainedIntraPred; } |
---|
660 | Bool getPCMInputBitDepthFlag () { return m_bPCMInputBitDepthFlag; } |
---|
661 | Bool getPCMFilterDisableFlag () { return m_bPCMFilterDisableFlag; } |
---|
662 | Bool getUsePCM () { return m_usePCM; } |
---|
663 | UInt getPCMLog2MaxSize () { return m_pcmLog2MaxSize; } |
---|
664 | UInt getPCMLog2MinSize () { return m_uiPCMLog2MinSize; } |
---|
665 | |
---|
666 | Bool getUseCrossComponentPrediction () const { return m_useCrossComponentPrediction; } |
---|
667 | Void setUseCrossComponentPrediction (const Bool value) { m_useCrossComponentPrediction = value; } |
---|
668 | Bool getUseReconBasedCrossCPredictionEstimate () const { return m_reconBasedCrossCPredictionEstimate; } |
---|
669 | Void setUseReconBasedCrossCPredictionEstimate (const Bool value) { m_reconBasedCrossCPredictionEstimate = value; } |
---|
670 | Void setSaoOffsetBitShift(ChannelType type, UInt uiBitShift) { m_saoOffsetBitShift[type] = uiBitShift; } |
---|
671 | |
---|
672 | Bool getUseTransformSkip () { return m_useTransformSkip; } |
---|
673 | Void setUseTransformSkip ( Bool b ) { m_useTransformSkip = b; } |
---|
674 | Bool getUseResidualRotation () const { return m_useResidualRotation; } |
---|
675 | Void setUseResidualRotation (const Bool value) { m_useResidualRotation = value; } |
---|
676 | Bool getUseSingleSignificanceMapContext () const { return m_useSingleSignificanceMapContext; } |
---|
677 | Void setUseSingleSignificanceMapContext (const Bool value) { m_useSingleSignificanceMapContext = value; } |
---|
678 | Bool getUseGolombRiceParameterAdaptation () const { return m_useGolombRiceParameterAdaptation; } |
---|
679 | Void setUseGolombRiceParameterAdaptation (const Bool value) { m_useGolombRiceParameterAdaptation = value; } |
---|
680 | Bool getAlignCABACBeforeBypass () const { return m_alignCABACBeforeBypass; } |
---|
681 | Void setAlignCABACBeforeBypass (const Bool value) { m_alignCABACBeforeBypass = value; } |
---|
682 | Bool getUseResidualDPCM (const RDPCMSignallingMode signallingMode) const { return m_useResidualDPCM[signallingMode]; } |
---|
683 | Void setUseResidualDPCM (const RDPCMSignallingMode signallingMode, const Bool value) { m_useResidualDPCM[signallingMode] = value; } |
---|
684 | Bool getUseTransformSkipFast () { return m_useTransformSkipFast; } |
---|
685 | Void setUseTransformSkipFast ( Bool b ) { m_useTransformSkipFast = b; } |
---|
686 | UInt getTransformSkipLog2MaxSize () const { return m_transformSkipLog2MaxSize; } |
---|
687 | Void setTransformSkipLog2MaxSize ( UInt u ) { m_transformSkipLog2MaxSize = u; } |
---|
688 | Void setDisableIntraReferenceSmoothing (Bool bValue) { m_disableIntraReferenceSmoothing=bValue; } |
---|
689 | Bool getDisableIntraReferenceSmoothing () const { return m_disableIntraReferenceSmoothing; } |
---|
690 | |
---|
691 | Int* getdQPs () { return m_aidQP; } |
---|
692 | UInt getDeltaQpRD () { return m_uiDeltaQpRD; } |
---|
693 | |
---|
694 | //====== Slice ======== |
---|
695 | Void setSliceMode ( SliceConstraint i ) { m_sliceMode = i; } |
---|
696 | Void setSliceArgument ( Int i ) { m_sliceArgument = i; } |
---|
697 | SliceConstraint getSliceMode () const { return m_sliceMode; } |
---|
698 | Int getSliceArgument () { return m_sliceArgument; } |
---|
699 | //====== Dependent Slice ======== |
---|
700 | Void setSliceSegmentMode ( SliceConstraint i ) { m_sliceSegmentMode = i; } |
---|
701 | Void setSliceSegmentArgument ( Int i ) { m_sliceSegmentArgument = i; } |
---|
702 | SliceConstraint getSliceSegmentMode () const { return m_sliceSegmentMode; } |
---|
703 | Int getSliceSegmentArgument () { return m_sliceSegmentArgument;} |
---|
704 | Void setLFCrossSliceBoundaryFlag ( Bool bValue ) { m_bLFCrossSliceBoundaryFlag = bValue; } |
---|
705 | Bool getLFCrossSliceBoundaryFlag () { return m_bLFCrossSliceBoundaryFlag; } |
---|
706 | |
---|
707 | Void setUseSAO (Bool bVal) { m_bUseSAO = bVal; } |
---|
708 | Bool getUseSAO () { return m_bUseSAO; } |
---|
709 | Void setMaxNumOffsetsPerPic (Int iVal) { m_maxNumOffsetsPerPic = iVal; } |
---|
710 | Int getMaxNumOffsetsPerPic () { return m_maxNumOffsetsPerPic; } |
---|
711 | Void setSaoCtuBoundary (Bool val) { m_saoCtuBoundary = val; } |
---|
712 | Bool getSaoCtuBoundary () { return m_saoCtuBoundary; } |
---|
713 | Void setLFCrossTileBoundaryFlag ( Bool val ) { m_loopFilterAcrossTilesEnabledFlag = val; } |
---|
714 | Bool getLFCrossTileBoundaryFlag () { return m_loopFilterAcrossTilesEnabledFlag; } |
---|
715 | Void setTileUniformSpacingFlag ( Bool b ) { m_tileUniformSpacingFlag = b; } |
---|
716 | Bool getTileUniformSpacingFlag () { return m_tileUniformSpacingFlag; } |
---|
717 | Void setNumColumnsMinus1 ( Int i ) { m_iNumColumnsMinus1 = i; } |
---|
718 | Int getNumColumnsMinus1 () { return m_iNumColumnsMinus1; } |
---|
719 | Void setColumnWidth ( const std::vector<Int>& columnWidth ) { m_tileColumnWidth = columnWidth; } |
---|
720 | UInt getColumnWidth ( UInt columnIdx ) { return m_tileColumnWidth[columnIdx]; } |
---|
721 | Void setNumRowsMinus1 ( Int i ) { m_iNumRowsMinus1 = i; } |
---|
722 | Int getNumRowsMinus1 () { return m_iNumRowsMinus1; } |
---|
723 | Void setRowHeight ( const std::vector<Int>& rowHeight) { m_tileRowHeight = rowHeight; } |
---|
724 | UInt getRowHeight ( UInt rowIdx ) { return m_tileRowHeight[rowIdx]; } |
---|
725 | Void xCheckGSParameters(); |
---|
726 | Void setWaveFrontSynchro(Int iWaveFrontSynchro) { m_iWaveFrontSynchro = iWaveFrontSynchro; } |
---|
727 | Int getWaveFrontsynchro() { return m_iWaveFrontSynchro; } |
---|
728 | Void setWaveFrontSubstreams(Int iWaveFrontSubstreams) { m_iWaveFrontSubstreams = iWaveFrontSubstreams; } |
---|
729 | Int getWaveFrontSubstreams() { return m_iWaveFrontSubstreams; } |
---|
730 | Void setDecodedPictureHashSEIEnabled(Int b) { m_decodedPictureHashSEIEnabled = b; } |
---|
731 | Int getDecodedPictureHashSEIEnabled() { return m_decodedPictureHashSEIEnabled; } |
---|
732 | Void setBufferingPeriodSEIEnabled(Int b) { m_bufferingPeriodSEIEnabled = b; } |
---|
733 | Int getBufferingPeriodSEIEnabled() { return m_bufferingPeriodSEIEnabled; } |
---|
734 | Void setPictureTimingSEIEnabled(Int b) { m_pictureTimingSEIEnabled = b; } |
---|
735 | Int getPictureTimingSEIEnabled() { return m_pictureTimingSEIEnabled; } |
---|
736 | Void setRecoveryPointSEIEnabled(Int b) { m_recoveryPointSEIEnabled = b; } |
---|
737 | Int getRecoveryPointSEIEnabled() { return m_recoveryPointSEIEnabled; } |
---|
738 | Void setToneMappingInfoSEIEnabled(Bool b) { m_toneMappingInfoSEIEnabled = b; } |
---|
739 | Bool getToneMappingInfoSEIEnabled() { return m_toneMappingInfoSEIEnabled; } |
---|
740 | Void setTMISEIToneMapId(Int b) { m_toneMapId = b; } |
---|
741 | Int getTMISEIToneMapId() { return m_toneMapId; } |
---|
742 | Void setTMISEIToneMapCancelFlag(Bool b) { m_toneMapCancelFlag=b; } |
---|
743 | Bool getTMISEIToneMapCancelFlag() { return m_toneMapCancelFlag; } |
---|
744 | Void setTMISEIToneMapPersistenceFlag(Bool b) { m_toneMapPersistenceFlag = b; } |
---|
745 | Bool getTMISEIToneMapPersistenceFlag() { return m_toneMapPersistenceFlag; } |
---|
746 | Void setTMISEICodedDataBitDepth(Int b) { m_codedDataBitDepth = b; } |
---|
747 | Int getTMISEICodedDataBitDepth() { return m_codedDataBitDepth; } |
---|
748 | Void setTMISEITargetBitDepth(Int b) { m_targetBitDepth = b; } |
---|
749 | Int getTMISEITargetBitDepth() { return m_targetBitDepth; } |
---|
750 | Void setTMISEIModelID(Int b) { m_modelId = b; } |
---|
751 | Int getTMISEIModelID() { return m_modelId; } |
---|
752 | Void setTMISEIMinValue(Int b) { m_minValue = b; } |
---|
753 | Int getTMISEIMinValue() { return m_minValue; } |
---|
754 | Void setTMISEIMaxValue(Int b) { m_maxValue = b; } |
---|
755 | Int getTMISEIMaxValue() { return m_maxValue; } |
---|
756 | Void setTMISEISigmoidMidpoint(Int b) { m_sigmoidMidpoint = b; } |
---|
757 | Int getTMISEISigmoidMidpoint() { return m_sigmoidMidpoint; } |
---|
758 | Void setTMISEISigmoidWidth(Int b) { m_sigmoidWidth = b; } |
---|
759 | Int getTMISEISigmoidWidth() { return m_sigmoidWidth; } |
---|
760 | Void setTMISEIStartOfCodedInterva( Int* p ) { m_startOfCodedInterval = p; } |
---|
761 | Int* getTMISEIStartOfCodedInterva() { return m_startOfCodedInterval; } |
---|
762 | Void setTMISEINumPivots(Int b) { m_numPivots = b; } |
---|
763 | Int getTMISEINumPivots() { return m_numPivots; } |
---|
764 | Void setTMISEICodedPivotValue( Int* p ) { m_codedPivotValue = p; } |
---|
765 | Int* getTMISEICodedPivotValue() { return m_codedPivotValue; } |
---|
766 | Void setTMISEITargetPivotValue( Int* p ) { m_targetPivotValue = p; } |
---|
767 | Int* getTMISEITargetPivotValue() { return m_targetPivotValue; } |
---|
768 | Void setTMISEICameraIsoSpeedIdc(Int b) { m_cameraIsoSpeedIdc = b; } |
---|
769 | Int getTMISEICameraIsoSpeedIdc() { return m_cameraIsoSpeedIdc; } |
---|
770 | Void setTMISEICameraIsoSpeedValue(Int b) { m_cameraIsoSpeedValue = b; } |
---|
771 | Int getTMISEICameraIsoSpeedValue() { return m_cameraIsoSpeedValue; } |
---|
772 | Void setTMISEIExposureIndexIdc(Int b) { m_exposureIndexIdc = b; } |
---|
773 | Int getTMISEIExposurIndexIdc() { return m_exposureIndexIdc; } |
---|
774 | Void setTMISEIExposureIndexValue(Int b) { m_exposureIndexValue = b; } |
---|
775 | Int getTMISEIExposurIndexValue() { return m_exposureIndexValue; } |
---|
776 | Void setTMISEIExposureCompensationValueSignFlag(Int b) { m_exposureCompensationValueSignFlag = b; } |
---|
777 | Int getTMISEIExposureCompensationValueSignFlag() { return m_exposureCompensationValueSignFlag; } |
---|
778 | Void setTMISEIExposureCompensationValueNumerator(Int b) { m_exposureCompensationValueNumerator = b; } |
---|
779 | Int getTMISEIExposureCompensationValueNumerator() { return m_exposureCompensationValueNumerator; } |
---|
780 | Void setTMISEIExposureCompensationValueDenomIdc(Int b) { m_exposureCompensationValueDenomIdc =b; } |
---|
781 | Int getTMISEIExposureCompensationValueDenomIdc() { return m_exposureCompensationValueDenomIdc; } |
---|
782 | Void setTMISEIRefScreenLuminanceWhite(Int b) { m_refScreenLuminanceWhite = b; } |
---|
783 | Int getTMISEIRefScreenLuminanceWhite() { return m_refScreenLuminanceWhite; } |
---|
784 | Void setTMISEIExtendedRangeWhiteLevel(Int b) { m_extendedRangeWhiteLevel = b; } |
---|
785 | Int getTMISEIExtendedRangeWhiteLevel() { return m_extendedRangeWhiteLevel; } |
---|
786 | Void setTMISEINominalBlackLevelLumaCodeValue(Int b) { m_nominalBlackLevelLumaCodeValue = b; } |
---|
787 | Int getTMISEINominalBlackLevelLumaCodeValue() { return m_nominalBlackLevelLumaCodeValue; } |
---|
788 | Void setTMISEINominalWhiteLevelLumaCodeValue(Int b) { m_nominalWhiteLevelLumaCodeValue = b; } |
---|
789 | Int getTMISEINominalWhiteLevelLumaCodeValue() { return m_nominalWhiteLevelLumaCodeValue; } |
---|
790 | Void setTMISEIExtendedWhiteLevelLumaCodeValue(Int b) { m_extendedWhiteLevelLumaCodeValue =b; } |
---|
791 | Int getTMISEIExtendedWhiteLevelLumaCodeValue() { return m_extendedWhiteLevelLumaCodeValue; } |
---|
792 | Void setFramePackingArrangementSEIEnabled(Int b) { m_framePackingSEIEnabled = b; } |
---|
793 | Int getFramePackingArrangementSEIEnabled() { return m_framePackingSEIEnabled; } |
---|
794 | Void setFramePackingArrangementSEIType(Int b) { m_framePackingSEIType = b; } |
---|
795 | Int getFramePackingArrangementSEIType() { return m_framePackingSEIType; } |
---|
796 | Void setFramePackingArrangementSEIId(Int b) { m_framePackingSEIId = b; } |
---|
797 | Int getFramePackingArrangementSEIId() { return m_framePackingSEIId; } |
---|
798 | Void setFramePackingArrangementSEIQuincunx(Int b) { m_framePackingSEIQuincunx = b; } |
---|
799 | Int getFramePackingArrangementSEIQuincunx() { return m_framePackingSEIQuincunx; } |
---|
800 | Void setFramePackingArrangementSEIInterpretation(Int b) { m_framePackingSEIInterpretation = b; } |
---|
801 | Int getFramePackingArrangementSEIInterpretation() { return m_framePackingSEIInterpretation; } |
---|
802 | Void setSegmentedRectFramePackingArrangementSEIEnabled(Int b) { m_segmentedRectFramePackingSEIEnabled = b; } |
---|
803 | Int getSegmentedRectFramePackingArrangementSEIEnabled() { return m_segmentedRectFramePackingSEIEnabled; } |
---|
804 | Void setSegmentedRectFramePackingArrangementSEICancel(Int b) { m_segmentedRectFramePackingSEICancel = b; } |
---|
805 | Int getSegmentedRectFramePackingArrangementSEICancel() { return m_segmentedRectFramePackingSEICancel; } |
---|
806 | Void setSegmentedRectFramePackingArrangementSEIType(Int b) { m_segmentedRectFramePackingSEIType = b; } |
---|
807 | Int getSegmentedRectFramePackingArrangementSEIType() { return m_segmentedRectFramePackingSEIType; } |
---|
808 | Void setSegmentedRectFramePackingArrangementSEIPersistence(Int b) { m_segmentedRectFramePackingSEIPersistence = b; } |
---|
809 | Int getSegmentedRectFramePackingArrangementSEIPersistence() { return m_segmentedRectFramePackingSEIPersistence; } |
---|
810 | Void setDisplayOrientationSEIAngle(Int b) { m_displayOrientationSEIAngle = b; } |
---|
811 | Int getDisplayOrientationSEIAngle() { return m_displayOrientationSEIAngle; } |
---|
812 | Void setTemporalLevel0IndexSEIEnabled(Int b) { m_temporalLevel0IndexSEIEnabled = b; } |
---|
813 | Int getTemporalLevel0IndexSEIEnabled() { return m_temporalLevel0IndexSEIEnabled; } |
---|
814 | Void setGradualDecodingRefreshInfoEnabled(Int b) { m_gradualDecodingRefreshInfoEnabled = b; } |
---|
815 | Int getGradualDecodingRefreshInfoEnabled() { return m_gradualDecodingRefreshInfoEnabled; } |
---|
816 | Void setNoDisplaySEITLayer(Int b) { m_noDisplaySEITLayer = b; } |
---|
817 | Int getNoDisplaySEITLayer() { return m_noDisplaySEITLayer; } |
---|
818 | Void setDecodingUnitInfoSEIEnabled(Int b) { m_decodingUnitInfoSEIEnabled = b; } |
---|
819 | Int getDecodingUnitInfoSEIEnabled() { return m_decodingUnitInfoSEIEnabled; } |
---|
820 | Void setSOPDescriptionSEIEnabled(Int b) { m_SOPDescriptionSEIEnabled = b; } |
---|
821 | Int getSOPDescriptionSEIEnabled() { return m_SOPDescriptionSEIEnabled; } |
---|
822 | Void setScalableNestingSEIEnabled(Int b) { m_scalableNestingSEIEnabled = b; } |
---|
823 | Int getScalableNestingSEIEnabled() { return m_scalableNestingSEIEnabled; } |
---|
824 | Void setTMCTSSEIEnabled(Bool b) { m_tmctsSEIEnabled = b; } |
---|
825 | Bool getTMCTSSEIEnabled() { return m_tmctsSEIEnabled; } |
---|
826 | Void setTimeCodeSEIEnabled(Bool b) { m_timeCodeSEIEnabled = b; } |
---|
827 | Bool getTimeCodeSEIEnabled() { return m_timeCodeSEIEnabled; } |
---|
828 | Void setNumberOfTimeSets(Int value) { m_timeCodeSEINumTs = value; } |
---|
829 | Int getNumberOfTimesets() { return m_timeCodeSEINumTs; } |
---|
830 | Void setTimeSet(TComSEITimeSet element, Int index) { m_timeSetArray[index] = element; } |
---|
831 | TComSEITimeSet &getTimeSet(Int index) { return m_timeSetArray[index]; } |
---|
832 | const TComSEITimeSet &getTimeSet(Int index) const { return m_timeSetArray[index]; } |
---|
833 | Void setKneeSEIEnabled(Int b) { m_kneeSEIEnabled = b; } |
---|
834 | Bool getKneeSEIEnabled() { return m_kneeSEIEnabled; } |
---|
835 | Void setKneeSEIId(Int b) { m_kneeSEIId = b; } |
---|
836 | Int getKneeSEIId() { return m_kneeSEIId; } |
---|
837 | Void setKneeSEICancelFlag(Bool b) { m_kneeSEICancelFlag=b; } |
---|
838 | Bool getKneeSEICancelFlag() { return m_kneeSEICancelFlag; } |
---|
839 | Void setKneeSEIPersistenceFlag(Bool b) { m_kneeSEIPersistenceFlag = b; } |
---|
840 | Bool getKneeSEIPersistenceFlag() { return m_kneeSEIPersistenceFlag; } |
---|
841 | Void setKneeSEIInputDrange(Int b) { m_kneeSEIInputDrange = b; } |
---|
842 | Int getKneeSEIInputDrange() { return m_kneeSEIInputDrange; } |
---|
843 | Void setKneeSEIInputDispLuminance(Int b) { m_kneeSEIInputDispLuminance = b; } |
---|
844 | Int getKneeSEIInputDispLuminance() { return m_kneeSEIInputDispLuminance; } |
---|
845 | Void setKneeSEIOutputDrange(Int b) { m_kneeSEIOutputDrange = b; } |
---|
846 | Int getKneeSEIOutputDrange() { return m_kneeSEIOutputDrange; } |
---|
847 | Void setKneeSEIOutputDispLuminance(Int b) { m_kneeSEIOutputDispLuminance = b; } |
---|
848 | Int getKneeSEIOutputDispLuminance() { return m_kneeSEIOutputDispLuminance; } |
---|
849 | Void setKneeSEINumKneePointsMinus1(Int b) { m_kneeSEINumKneePointsMinus1 = b; } |
---|
850 | Int getKneeSEINumKneePointsMinus1() { return m_kneeSEINumKneePointsMinus1; } |
---|
851 | Void setKneeSEIInputKneePoint(Int *p) { m_kneeSEIInputKneePoint = p; } |
---|
852 | Int* getKneeSEIInputKneePoint() { return m_kneeSEIInputKneePoint; } |
---|
853 | Void setKneeSEIOutputKneePoint(Int *p) { m_kneeSEIOutputKneePoint = p; } |
---|
854 | Int* getKneeSEIOutputKneePoint() { return m_kneeSEIOutputKneePoint; } |
---|
855 | Void setMasteringDisplaySEI(const TComSEIMasteringDisplay &src) { m_masteringDisplay = src; } |
---|
856 | const TComSEIMasteringDisplay &getMasteringDisplaySEI() const { return m_masteringDisplay; } |
---|
857 | Void setUseWP ( Bool b ) { m_useWeightedPred = b; } |
---|
858 | Void setWPBiPred ( Bool b ) { m_useWeightedBiPred = b; } |
---|
859 | Bool getUseWP () { return m_useWeightedPred; } |
---|
860 | Bool getWPBiPred () { return m_useWeightedBiPred; } |
---|
861 | Void setLog2ParallelMergeLevelMinus2 ( UInt u ) { m_log2ParallelMergeLevelMinus2 = u; } |
---|
862 | UInt getLog2ParallelMergeLevelMinus2 () { return m_log2ParallelMergeLevelMinus2; } |
---|
863 | Void setMaxNumMergeCand ( UInt u ) { m_maxNumMergeCand = u; } |
---|
864 | UInt getMaxNumMergeCand () { return m_maxNumMergeCand; } |
---|
865 | Void setUseScalingListId ( ScalingListMode u ) { m_useScalingListId = u; } |
---|
866 | ScalingListMode getUseScalingListId () { return m_useScalingListId; } |
---|
867 | Void setScalingListFile ( Char* pch ) { m_scalingListFile = pch; } |
---|
868 | Char* getScalingListFile () { return m_scalingListFile; } |
---|
869 | Void setTMVPModeId ( Int u ) { m_TMVPModeId = u; } |
---|
870 | Int getTMVPModeId () { return m_TMVPModeId; } |
---|
871 | Void setSignHideFlag( Int signHideFlag ) { m_signHideFlag = signHideFlag; } |
---|
872 | Int getSignHideFlag() { return m_signHideFlag; } |
---|
873 | Bool getUseRateCtrl () { return m_RCEnableRateControl; } |
---|
874 | Void setUseRateCtrl ( Bool b ) { m_RCEnableRateControl = b; } |
---|
875 | Int getTargetBitrate () { return m_RCTargetBitrate; } |
---|
876 | Void setTargetBitrate ( Int bitrate ) { m_RCTargetBitrate = bitrate; } |
---|
877 | Int getKeepHierBit () { return m_RCKeepHierarchicalBit; } |
---|
878 | Void setKeepHierBit ( Int i ) { m_RCKeepHierarchicalBit = i; } |
---|
879 | Bool getLCULevelRC () { return m_RCLCULevelRC; } |
---|
880 | Void setLCULevelRC ( Bool b ) { m_RCLCULevelRC = b; } |
---|
881 | Bool getUseLCUSeparateModel () { return m_RCUseLCUSeparateModel; } |
---|
882 | Void setUseLCUSeparateModel ( Bool b ) { m_RCUseLCUSeparateModel = b; } |
---|
883 | Int getInitialQP () { return m_RCInitialQP; } |
---|
884 | Void setInitialQP ( Int QP ) { m_RCInitialQP = QP; } |
---|
885 | Bool getForceIntraQP () { return m_RCForceIntraQP; } |
---|
886 | Void setForceIntraQP ( Bool b ) { m_RCForceIntraQP = b; } |
---|
887 | Bool getTransquantBypassEnableFlag() { return m_TransquantBypassEnableFlag; } |
---|
888 | Void setTransquantBypassEnableFlag(Bool flag) { m_TransquantBypassEnableFlag = flag; } |
---|
889 | Bool getCUTransquantBypassFlagForceValue() { return m_CUTransquantBypassFlagForce; } |
---|
890 | Void setCUTransquantBypassFlagForceValue(Bool flag) { m_CUTransquantBypassFlagForce = flag; } |
---|
891 | CostMode getCostMode( ) { return m_costMode; } |
---|
892 | Void setCostMode(CostMode m ) { m_costMode = m; } |
---|
893 | |
---|
894 | Void setVPS(TComVPS *p) { m_cVPS = *p; } |
---|
895 | TComVPS * getVPS() { return &m_cVPS; } |
---|
896 | Void setUseRecalculateQPAccordingToLambda (Bool b) { m_recalculateQPAccordingToLambda = b; } |
---|
897 | Bool getUseRecalculateQPAccordingToLambda () { return m_recalculateQPAccordingToLambda; } |
---|
898 | |
---|
899 | Void setUseStrongIntraSmoothing ( Bool b ) { m_useStrongIntraSmoothing = b; } |
---|
900 | Bool getUseStrongIntraSmoothing () { return m_useStrongIntraSmoothing; } |
---|
901 | |
---|
902 | Void setActiveParameterSetsSEIEnabled ( Int b ) { m_activeParameterSetsSEIEnabled = b; } |
---|
903 | Int getActiveParameterSetsSEIEnabled () { return m_activeParameterSetsSEIEnabled; } |
---|
904 | Bool getVuiParametersPresentFlag() { return m_vuiParametersPresentFlag; } |
---|
905 | Void setVuiParametersPresentFlag(Bool i) { m_vuiParametersPresentFlag = i; } |
---|
906 | Bool getAspectRatioInfoPresentFlag() { return m_aspectRatioInfoPresentFlag; } |
---|
907 | Void setAspectRatioInfoPresentFlag(Bool i) { m_aspectRatioInfoPresentFlag = i; } |
---|
908 | Int getAspectRatioIdc() { return m_aspectRatioIdc; } |
---|
909 | Void setAspectRatioIdc(Int i) { m_aspectRatioIdc = i; } |
---|
910 | Int getSarWidth() { return m_sarWidth; } |
---|
911 | Void setSarWidth(Int i) { m_sarWidth = i; } |
---|
912 | Int getSarHeight() { return m_sarHeight; } |
---|
913 | Void setSarHeight(Int i) { m_sarHeight = i; } |
---|
914 | Bool getOverscanInfoPresentFlag() { return m_overscanInfoPresentFlag; } |
---|
915 | Void setOverscanInfoPresentFlag(Bool i) { m_overscanInfoPresentFlag = i; } |
---|
916 | Bool getOverscanAppropriateFlag() { return m_overscanAppropriateFlag; } |
---|
917 | Void setOverscanAppropriateFlag(Bool i) { m_overscanAppropriateFlag = i; } |
---|
918 | Bool getVideoSignalTypePresentFlag() { return m_videoSignalTypePresentFlag; } |
---|
919 | Void setVideoSignalTypePresentFlag(Bool i) { m_videoSignalTypePresentFlag = i; } |
---|
920 | Int getVideoFormat() { return m_videoFormat; } |
---|
921 | Void setVideoFormat(Int i) { m_videoFormat = i; } |
---|
922 | Bool getVideoFullRangeFlag() { return m_videoFullRangeFlag; } |
---|
923 | Void setVideoFullRangeFlag(Bool i) { m_videoFullRangeFlag = i; } |
---|
924 | Bool getColourDescriptionPresentFlag() { return m_colourDescriptionPresentFlag; } |
---|
925 | Void setColourDescriptionPresentFlag(Bool i) { m_colourDescriptionPresentFlag = i; } |
---|
926 | Int getColourPrimaries() { return m_colourPrimaries; } |
---|
927 | Void setColourPrimaries(Int i) { m_colourPrimaries = i; } |
---|
928 | Int getTransferCharacteristics() { return m_transferCharacteristics; } |
---|
929 | Void setTransferCharacteristics(Int i) { m_transferCharacteristics = i; } |
---|
930 | Int getMatrixCoefficients() { return m_matrixCoefficients; } |
---|
931 | Void setMatrixCoefficients(Int i) { m_matrixCoefficients = i; } |
---|
932 | Bool getChromaLocInfoPresentFlag() { return m_chromaLocInfoPresentFlag; } |
---|
933 | Void setChromaLocInfoPresentFlag(Bool i) { m_chromaLocInfoPresentFlag = i; } |
---|
934 | Int getChromaSampleLocTypeTopField() { return m_chromaSampleLocTypeTopField; } |
---|
935 | Void setChromaSampleLocTypeTopField(Int i) { m_chromaSampleLocTypeTopField = i; } |
---|
936 | Int getChromaSampleLocTypeBottomField() { return m_chromaSampleLocTypeBottomField; } |
---|
937 | Void setChromaSampleLocTypeBottomField(Int i) { m_chromaSampleLocTypeBottomField = i; } |
---|
938 | Bool getNeutralChromaIndicationFlag() { return m_neutralChromaIndicationFlag; } |
---|
939 | Void setNeutralChromaIndicationFlag(Bool i) { m_neutralChromaIndicationFlag = i; } |
---|
940 | Window &getDefaultDisplayWindow() { return m_defaultDisplayWindow; } |
---|
941 | Void setDefaultDisplayWindow (Int offsetLeft, Int offsetRight, Int offsetTop, Int offsetBottom ) { m_defaultDisplayWindow.setWindow (offsetLeft, offsetRight, offsetTop, offsetBottom); } |
---|
942 | Bool getFrameFieldInfoPresentFlag() { return m_frameFieldInfoPresentFlag; } |
---|
943 | Void setFrameFieldInfoPresentFlag(Bool i) { m_frameFieldInfoPresentFlag = i; } |
---|
944 | Bool getPocProportionalToTimingFlag() { return m_pocProportionalToTimingFlag; } |
---|
945 | Void setPocProportionalToTimingFlag(Bool x) { m_pocProportionalToTimingFlag = x; } |
---|
946 | Int getNumTicksPocDiffOneMinus1() { return m_numTicksPocDiffOneMinus1; } |
---|
947 | Void setNumTicksPocDiffOneMinus1(Int x) { m_numTicksPocDiffOneMinus1 = x; } |
---|
948 | Bool getBitstreamRestrictionFlag() { return m_bitstreamRestrictionFlag; } |
---|
949 | Void setBitstreamRestrictionFlag(Bool i) { m_bitstreamRestrictionFlag = i; } |
---|
950 | Bool getTilesFixedStructureFlag() { return m_tilesFixedStructureFlag; } |
---|
951 | Void setTilesFixedStructureFlag(Bool i) { m_tilesFixedStructureFlag = i; } |
---|
952 | Bool getMotionVectorsOverPicBoundariesFlag() { return m_motionVectorsOverPicBoundariesFlag; } |
---|
953 | Void setMotionVectorsOverPicBoundariesFlag(Bool i) { m_motionVectorsOverPicBoundariesFlag = i; } |
---|
954 | Int getMinSpatialSegmentationIdc() { return m_minSpatialSegmentationIdc; } |
---|
955 | Void setMinSpatialSegmentationIdc(Int i) { m_minSpatialSegmentationIdc = i; } |
---|
956 | Int getMaxBytesPerPicDenom() { return m_maxBytesPerPicDenom; } |
---|
957 | Void setMaxBytesPerPicDenom(Int i) { m_maxBytesPerPicDenom = i; } |
---|
958 | Int getMaxBitsPerMinCuDenom() { return m_maxBitsPerMinCuDenom; } |
---|
959 | Void setMaxBitsPerMinCuDenom(Int i) { m_maxBitsPerMinCuDenom = i; } |
---|
960 | Int getLog2MaxMvLengthHorizontal() { return m_log2MaxMvLengthHorizontal; } |
---|
961 | Void setLog2MaxMvLengthHorizontal(Int i) { m_log2MaxMvLengthHorizontal = i; } |
---|
962 | Int getLog2MaxMvLengthVertical() { return m_log2MaxMvLengthVertical; } |
---|
963 | Void setLog2MaxMvLengthVertical(Int i) { m_log2MaxMvLengthVertical = i; } |
---|
964 | |
---|
965 | Bool getProgressiveSourceFlag() const { return m_progressiveSourceFlag; } |
---|
966 | Void setProgressiveSourceFlag(Bool b) { m_progressiveSourceFlag = b; } |
---|
967 | |
---|
968 | Bool getInterlacedSourceFlag() const { return m_interlacedSourceFlag; } |
---|
969 | Void setInterlacedSourceFlag(Bool b) { m_interlacedSourceFlag = b; } |
---|
970 | |
---|
971 | Bool getNonPackedConstraintFlag() const { return m_nonPackedConstraintFlag; } |
---|
972 | Void setNonPackedConstraintFlag(Bool b) { m_nonPackedConstraintFlag = b; } |
---|
973 | |
---|
974 | Bool getFrameOnlyConstraintFlag() const { return m_frameOnlyConstraintFlag; } |
---|
975 | Void setFrameOnlyConstraintFlag(Bool b) { m_frameOnlyConstraintFlag = b; } |
---|
976 | |
---|
977 | UInt getBitDepthConstraintValue() const { return m_bitDepthConstraintValue; } |
---|
978 | Void setBitDepthConstraintValue(UInt v) { m_bitDepthConstraintValue=v; } |
---|
979 | |
---|
980 | ChromaFormat getChromaFormatConstraintValue() const { return m_chromaFormatConstraintValue; } |
---|
981 | Void setChromaFormatConstraintValue(ChromaFormat v) { m_chromaFormatConstraintValue=v; } |
---|
982 | |
---|
983 | Bool getIntraConstraintFlag() const { return m_intraConstraintFlag; } |
---|
984 | Void setIntraConstraintFlag(Bool b) { m_intraConstraintFlag=b; } |
---|
985 | |
---|
986 | Bool getLowerBitRateConstraintFlag() const { return m_lowerBitRateConstraintFlag; } |
---|
987 | Void setLowerBitRateConstraintFlag(Bool b) { m_lowerBitRateConstraintFlag=b; } |
---|
988 | Bool getChromaSamplingFilterHintEnabled() { return m_chromaSamplingFilterHintEnabled;} |
---|
989 | Void setChromaSamplingFilterHintEnabled(Bool i) { m_chromaSamplingFilterHintEnabled = i;} |
---|
990 | Int getChromaSamplingHorFilterIdc() { return m_chromaSamplingHorFilterIdc;} |
---|
991 | Void setChromaSamplingHorFilterIdc(Int i) { m_chromaSamplingHorFilterIdc = i;} |
---|
992 | Int getChromaSamplingVerFilterIdc() { return m_chromaSamplingVerFilterIdc;} |
---|
993 | Void setChromaSamplingVerFilterIdc(Int i) { m_chromaSamplingVerFilterIdc = i;} |
---|
994 | |
---|
995 | #if Q0189_TMVP_CONSTRAINTS |
---|
996 | Void setTMVPConstraintsSEIEnabled(Int b) { m_TMVPConstraintsSEIEnabled = b; } |
---|
997 | Int getTMVPConstraintsSEIEnabled() { return m_TMVPConstraintsSEIEnabled; } |
---|
998 | |
---|
999 | #endif |
---|
1000 | #if Q0074_COLOUR_REMAPPING_SEI |
---|
1001 | Void setCRISEIFile( Char* pch ) { m_colourRemapSEIFile = pch; } |
---|
1002 | Char* getCRISEIFile() { return m_colourRemapSEIFile; } |
---|
1003 | Void setCRISEIId(Int i) { m_colourRemapSEIId = i; } |
---|
1004 | Int getCRISEIId() { return m_colourRemapSEIId; } |
---|
1005 | Void setCRISEICancelFlag(Bool b) { m_colourRemapSEICancelFlag = b; } |
---|
1006 | Bool getCRISEICancelFlag() { return m_colourRemapSEICancelFlag; } |
---|
1007 | Void setCRISEIPersistenceFlag(Bool b) { m_colourRemapSEIPersistenceFlag = b; } |
---|
1008 | Bool getCRISEIPersistenceFlag() { return m_colourRemapSEIPersistenceFlag; } |
---|
1009 | Void setCRISEIVideoSignalInfoPresentFlag(Bool b) { m_colourRemapSEIVideoSignalInfoPresentFlag = b; } |
---|
1010 | Bool getCRISEIVideoSignalInfoPresentFlag() { return m_colourRemapSEIVideoSignalInfoPresentFlag; } |
---|
1011 | Void setCRISEIFullRangeFlag(Bool b) { m_colourRemapSEIFullRangeFlag = b; } |
---|
1012 | Bool getCRISEIFullRangeFlag() { return m_colourRemapSEIFullRangeFlag; } |
---|
1013 | Void setCRISEIPrimaries(Int i) { m_colourRemapSEIPrimaries = i; } |
---|
1014 | Int getCRISEIPrimaries() { return m_colourRemapSEIPrimaries; } |
---|
1015 | Void setCRISEITransferFunction(Int i) { m_colourRemapSEITransferFunction = i; } |
---|
1016 | Int getCRISEITransferFunction() { return m_colourRemapSEITransferFunction; } |
---|
1017 | Void setCRISEIMatrixCoefficients(Int i) { m_colourRemapSEIMatrixCoefficients = i; } |
---|
1018 | Int getCRISEIMatrixCoefficients() { return m_colourRemapSEIMatrixCoefficients; } |
---|
1019 | Void setCRISEIInputBitDepth(Int i) { m_colourRemapSEIInputBitDepth = i; } |
---|
1020 | Int getCRISEIInputBitDepth() { return m_colourRemapSEIInputBitDepth; } |
---|
1021 | Void setCRISEIBitDepth(Int i) { m_colourRemapSEIBitDepth = i; } |
---|
1022 | Int getCRISEIBitDepth() { return m_colourRemapSEIBitDepth; } |
---|
1023 | Void setCRISEIPreLutNumValMinus1(Int *i) { for(Int c=0 ; c<3 ; c++) m_colourRemapSEIPreLutNumValMinus1[c] = i[c]; } |
---|
1024 | Int getCRISEIPreLutNumValMinus1(Int i) { return m_colourRemapSEIPreLutNumValMinus1[i]; } |
---|
1025 | Void setCRISEIPreLutCodedValue(Int **i) { for(Int c=0 ; c<3 ; c++) m_colourRemapSEIPreLutCodedValue[c] = i[c]; } |
---|
1026 | Int* getCRISEIPreLutCodedValue(Int i) { return m_colourRemapSEIPreLutCodedValue[i]; } |
---|
1027 | Void setCRISEIPreLutTargetValue(Int **i) { for(Int c=0 ; c<3 ; c++) m_colourRemapSEIPreLutTargetValue[c] = i[c]; } |
---|
1028 | Int* getCRISEIPreLutTargetValue(Int i) { return m_colourRemapSEIPreLutTargetValue[i]; } |
---|
1029 | Void setCRISEIMatrixPresentFlag(Bool b) { m_colourRemapSEIMatrixPresentFlag = b; } |
---|
1030 | Bool getCRISEIMatrixPresentFlag() { return m_colourRemapSEIMatrixPresentFlag; } |
---|
1031 | Void setCRISEILog2MatrixDenom(Int i) { m_colourRemapSEILog2MatrixDenom = i; } |
---|
1032 | Int getCRISEILog2MatrixDenom() { return m_colourRemapSEILog2MatrixDenom; } |
---|
1033 | 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]; } |
---|
1034 | Int* getCRISEICoeffs(Int i) { return m_colourRemapSEICoeffs[i]; } |
---|
1035 | Void setCRISEIPostLutNumValMinus1(Int *i) { for(Int c=0 ; c<3 ; c++) m_colourRemapSEIPostLutNumValMinus1[c] = i[c]; } |
---|
1036 | Int getCRISEIPostLutNumValMinus1(Int i) { return m_colourRemapSEIPostLutNumValMinus1[i]; } |
---|
1037 | Void setCRISEIPostLutCodedValue(Int **i) { for(Int c=0 ; c<3 ; c++) m_colourRemapSEIPostLutCodedValue[c] = i[c]; } |
---|
1038 | Int* getCRISEIPostLutCodedValue(Int i) { return m_colourRemapSEIPostLutCodedValue[i]; } |
---|
1039 | Void setCRISEIPostLutTargetValue(Int **i) { for(Int c=0 ; c<3 ; c++) m_colourRemapSEIPostLutTargetValue[c] = i[c]; } |
---|
1040 | Int* getCRISEIPostLutTargetValue(Int i) { return m_colourRemapSEIPostLutTargetValue[i]; } |
---|
1041 | #endif |
---|
1042 | #if SVC_EXTENSION |
---|
1043 | UInt getLayerId () { return m_layerId; } |
---|
1044 | Void setLayerId (UInt layer) { m_layerId = layer; } |
---|
1045 | UInt getNumLayer () { return m_numLayer; } |
---|
1046 | Void setNumLayer (UInt uiNum) { m_numLayer = uiNum; } |
---|
1047 | Void setConformanceWindow(Window& conformanceWindow ) { m_conformanceWindow = conformanceWindow; } |
---|
1048 | Void setElRapSliceTypeB(Int bEnabled) {m_elRapSliceBEnabled = bEnabled;} |
---|
1049 | Int getElRapSliceTypeB() {return m_elRapSliceBEnabled;} |
---|
1050 | #if M0040_ADAPTIVE_RESOLUTION_CHANGE |
---|
1051 | Void setAdaptiveResolutionChange(Int x) { m_adaptiveResolutionChange = x; } |
---|
1052 | Int getAdaptiveResolutionChange() { return m_adaptiveResolutionChange; } |
---|
1053 | #endif |
---|
1054 | #if R0071_IRAP_EOS_CROSS_LAYER_IMPACTS |
---|
1055 | Void setLayerSwitchOffBegin(Int x) { m_layerSwitchOffBegin = x; } |
---|
1056 | Int getLayerSwitchOffBegin() { return m_layerSwitchOffBegin; } |
---|
1057 | Void setLayerSwitchOffEnd(Int x) { m_layerSwitchOffEnd = x; } |
---|
1058 | Int getLayerSwitchOffEnd() { return m_layerSwitchOffEnd; } |
---|
1059 | #endif |
---|
1060 | #if HIGHER_LAYER_IRAP_SKIP_FLAG |
---|
1061 | Void setSkipPictureAtArcSwitch(Int x) { m_skipPictureAtArcSwitch = x; } |
---|
1062 | Int getSkipPictureAtArcSwitch() { return m_skipPictureAtArcSwitch; } |
---|
1063 | #endif |
---|
1064 | #if AUXILIARY_PICTURES |
---|
1065 | Void setChromaFormatIDC(ChromaFormat x) { m_chromaFormatIDC = x; } |
---|
1066 | ChromaFormat getChromaFormatIDC() { return m_chromaFormatIDC; } |
---|
1067 | #endif |
---|
1068 | #if O0153_ALT_OUTPUT_LAYER_FLAG |
---|
1069 | Bool getAltOuputLayerFlag() const { return m_altOutputLayerFlag; } |
---|
1070 | Void setAltOuputLayerFlag(Bool b) { m_altOutputLayerFlag = b; } |
---|
1071 | #endif |
---|
1072 | #if O0149_CROSS_LAYER_BLA_FLAG |
---|
1073 | Bool getCrossLayerBLAFlag() const { return m_crossLayerBLAFlag; } |
---|
1074 | Void setCrossLayerBLAFlag(Bool b) { m_crossLayerBLAFlag = b; } |
---|
1075 | #endif |
---|
1076 | #if FAST_INTRA_SHVC |
---|
1077 | Bool getUseFastIntraScalable () { return m_useFastIntraScalable; } |
---|
1078 | Void setUseFastIntraScalable ( Bool b ) { m_useFastIntraScalable = b; } |
---|
1079 | #endif |
---|
1080 | #if VPS_EXTN_DIRECT_REF_LAYERS |
---|
1081 | Int getNumDirectRefLayers () { return m_numDirectRefLayers; } |
---|
1082 | Void setNumDirectRefLayers (Int num) { m_numDirectRefLayers = num; } |
---|
1083 | |
---|
1084 | Int getRefLayerId (Int i) { return m_refLayerId[i]; } |
---|
1085 | Void setRefLayerId (Int i, Int refLayerId) { m_refLayerId[i] = refLayerId; } |
---|
1086 | |
---|
1087 | Int getNumActiveRefLayers () { return m_numActiveRefLayers; } |
---|
1088 | Void setNumActiveRefLayers (Int num) { m_numActiveRefLayers = num; } |
---|
1089 | |
---|
1090 | Int getPredLayerId (Int i) { return m_predLayerId[i]; } |
---|
1091 | Void setPredLayerId (Int i, Int refLayerId) { m_predLayerId[i] = refLayerId; } |
---|
1092 | |
---|
1093 | Int getNumSamplePredRefLayers () { return m_numSamplePredRefLayers; } |
---|
1094 | Void setNumSamplePredRefLayers (Int num) { m_numSamplePredRefLayers = num; } |
---|
1095 | |
---|
1096 | Int getSamplePredRefLayerId (Int i) { return m_samplePredRefLayerId[i]; } |
---|
1097 | Void setSamplePredRefLayerId (Int i, Int refLayerId) { m_samplePredRefLayerId[i] = refLayerId; } |
---|
1098 | |
---|
1099 | Int getNumMotionPredRefLayers () { return m_numMotionPredRefLayers; } |
---|
1100 | Void setNumMotionPredRefLayers (Int num) { m_numMotionPredRefLayers = num; } |
---|
1101 | |
---|
1102 | Int getMotionPredRefLayerId (Int i) { return m_motionPredRefLayerId[i]; } |
---|
1103 | Void setMotionPredRefLayerId (Int i, Int refLayerId) { m_motionPredRefLayerId[i] = refLayerId; } |
---|
1104 | |
---|
1105 | Bool getSamplePredEnabledFlag (Int i) { return m_samplePredEnabledFlag[i]; } |
---|
1106 | Void setSamplePredEnabledFlag (Int i,Bool flag) { m_samplePredEnabledFlag[i] = flag; } |
---|
1107 | |
---|
1108 | Bool getMotionPredEnabledFlag (Int i) { return m_motionPredEnabledFlag[i]; } |
---|
1109 | Void setMotionPredEnabledFlag (Int i,Bool flag) { m_motionPredEnabledFlag[i] = flag; } |
---|
1110 | #endif |
---|
1111 | Int getMaxTidIlRefPicsPlus1 () { return m_maxTidIlRefPicsPlus1; } |
---|
1112 | Void setMaxTidIlRefPicsPlus1 (Int num) { m_maxTidIlRefPicsPlus1 = num; } |
---|
1113 | #if LAYERS_NOT_PRESENT_SEI |
---|
1114 | Void setLayersNotPresentSEIEnabled(Int b) { m_layersNotPresentSEIEnabled = b; } |
---|
1115 | Int getLayersNotPresentSEIEnabled() { return m_layersNotPresentSEIEnabled; } |
---|
1116 | #endif |
---|
1117 | #if N0383_IL_CONSTRAINED_TILE_SETS_SEI |
---|
1118 | Void setInterLayerConstrainedTileSetsSEIEnabled(Bool b) { m_interLayerConstrainedTileSetsSEIEnabled = b; } |
---|
1119 | Bool getInterLayerConstrainedTileSetsSEIEnabled() { return m_interLayerConstrainedTileSetsSEIEnabled; } |
---|
1120 | Void setIlNumSetsInMessage(UInt b) { m_ilNumSetsInMessage = b; } |
---|
1121 | Int getIlNumSetsInMessage() { return m_ilNumSetsInMessage; } |
---|
1122 | Void setSkippedTileSetPresentFlag(Bool b) { m_skippedTileSetPresentFlag = b; } |
---|
1123 | Bool getSkippedTileSetPresentFlag() { return m_skippedTileSetPresentFlag; } |
---|
1124 | Void setTopLeftTileIndex(UInt *b) |
---|
1125 | { |
---|
1126 | for (UInt i = 0; i < m_ilNumSetsInMessage; i++) |
---|
1127 | { |
---|
1128 | m_topLeftTileIndex[i] = b[i]; |
---|
1129 | } |
---|
1130 | } |
---|
1131 | UInt getTopLeftTileIndex(UInt b) { return m_topLeftTileIndex[b]; } |
---|
1132 | Void setBottomRightTileIndex(UInt *b) |
---|
1133 | { |
---|
1134 | for (UInt i = 0; i < m_ilNumSetsInMessage; i++) |
---|
1135 | { |
---|
1136 | m_bottomRightTileIndex[i] = b[i]; |
---|
1137 | } |
---|
1138 | } |
---|
1139 | UInt getBottomRightTileIndex(UInt b) { return m_bottomRightTileIndex[b]; } |
---|
1140 | Void setIlcIdc(UInt *b) |
---|
1141 | { |
---|
1142 | for (UInt i = 0; i < m_ilNumSetsInMessage; i++) |
---|
1143 | { |
---|
1144 | m_ilcIdc[i] = b[i]; |
---|
1145 | } |
---|
1146 | } |
---|
1147 | UInt getIlcIdc(UInt b) { return m_ilcIdc[b]; } |
---|
1148 | #endif |
---|
1149 | #if Q0096_OVERLAY_SEI |
---|
1150 | Void setOverlaySEIEnabled(Int b) { m_overlaySEIEnabled = b; } |
---|
1151 | Bool getOverlaySEIEnabled() { return m_overlaySEIEnabled; } |
---|
1152 | Void setOverlaySEICancelFlag(Int b) { m_overlayInfoCancelFlag = b; } |
---|
1153 | Bool getOverlaySEICancelFlag() { return m_overlayInfoCancelFlag; } |
---|
1154 | Void setOverlaySEIContentAuxIdMinus128(UInt b) { m_overlayContentAuxIdMinus128 = b; } |
---|
1155 | UInt getOverlaySEIContentAuxIdMinus128() { return m_overlayContentAuxIdMinus128; } |
---|
1156 | Void setOverlaySEILabelAuxIdMinus128(UInt b) { m_overlayLabelAuxIdMinus128 = b; } |
---|
1157 | UInt getOverlaySEILabelAuxIdMinus128() { return m_overlayLabelAuxIdMinus128; } |
---|
1158 | Void setOverlaySEIAlphaAuxIdMinus128(UInt b) { m_overlayAlphaAuxIdMinus128 = b; } |
---|
1159 | UInt getOverlaySEIAlphaAuxIdMinus128() { return m_overlayAlphaAuxIdMinus128; } |
---|
1160 | Void setOverlaySEIElementLabelValueLengthMinus8(UInt b) { m_overlayElementLabelValueLengthMinus8 = b; } |
---|
1161 | UInt getOverlaySEIElementLabelValueLengthMinus8() { return m_overlayElementLabelValueLengthMinus8; } |
---|
1162 | Void setOverlaySEINumOverlaysMinus1(UInt b) { m_numOverlaysMinus1 = b; } |
---|
1163 | UInt getOverlaySEINumOverlaysMinus1() { return m_numOverlaysMinus1; } |
---|
1164 | Void setOverlaySEIIdx(const std::vector<UInt>& b) { m_overlayIdx = b; } |
---|
1165 | std::vector<UInt> getOverlaySEIIdx() { return m_overlayIdx; } |
---|
1166 | Void setOverlaySEILanguagePresentFlag(const std::vector<Bool>& b) { m_overlayLanguagePresentFlag = b; } |
---|
1167 | std::vector<Bool> getOverlaySEILanguagePresentFlag() { return m_overlayLanguagePresentFlag; } |
---|
1168 | Void setOverlaySEIContentLayerId(const std::vector<UInt>& b) { m_overlayContentLayerId = b; } |
---|
1169 | std::vector<UInt> getOverlaySEIContentLayerId() { return m_overlayContentLayerId; } |
---|
1170 | Void setOverlaySEILabelPresentFlag(const std::vector<Bool>& b) { m_overlayLabelPresentFlag = b; } |
---|
1171 | std::vector<Bool> getOverlaySEILabelPresentFlag() { return m_overlayLabelPresentFlag; } |
---|
1172 | Void setOverlaySEILabelLayerId(const std::vector<UInt>& b) { m_overlayLabelLayerId = b; } |
---|
1173 | std::vector<UInt> getOverlaySEILabelLayerId() { return m_overlayLabelLayerId; } |
---|
1174 | Void setOverlaySEIAlphaPresentFlag(const std::vector<Bool>& b) { m_overlayAlphaPresentFlag = b; } |
---|
1175 | std::vector<Bool> getOverlaySEIAlphaPresentFlag() { return m_overlayAlphaPresentFlag; } |
---|
1176 | Void setOverlaySEIAlphaLayerId(const std::vector<UInt>& b) { m_overlayAlphaLayerId = b; } |
---|
1177 | std::vector<UInt> getOverlaySEIAlphaLayerId() { return m_overlayAlphaLayerId; } |
---|
1178 | Void setOverlaySEINumElementsMinus1(const std::vector<UInt>& b) { m_numOverlayElementsMinus1 = b; } |
---|
1179 | std::vector<UInt> getOverlaySEINumElementsMinus1() { return m_numOverlayElementsMinus1; } |
---|
1180 | Void setOverlaySEIElementLabelMin(const std::vector< std::vector<UInt> >& b) { m_overlayElementLabelMin = b; } |
---|
1181 | std::vector< std::vector<UInt> > getOverlaySEIElementLabelMin() { return m_overlayElementLabelMin; } |
---|
1182 | Void setOverlaySEIElementLabelMax(const std::vector< std::vector<UInt> >& b) { m_overlayElementLabelMax = b; } |
---|
1183 | std::vector< std::vector<UInt> > getOverlaySEIElementLabelMax() { return m_overlayElementLabelMax; } |
---|
1184 | Void setOverlaySEILanguage(const std::vector<string>& b) { m_overlayLanguage = b; } |
---|
1185 | std::vector<string> getOverlaySEILanguage() { return m_overlayLanguage; } |
---|
1186 | Void setOverlaySEIName(const std::vector<string>& b) { m_overlayName = b; } |
---|
1187 | std::vector<string> getOverlaySEIName() { return m_overlayName; } |
---|
1188 | Void setOverlaySEIElementName(const std::vector< std::vector<string> >& b) { m_overlayElementName = b; } |
---|
1189 | std::vector< std::vector<string> > getOverlaySEIElementName() { return m_overlayElementName; } |
---|
1190 | Void setOverlaySEIPersistenceFlag(Int b) { m_overlayInfoPersistenceFlag = b; } |
---|
1191 | Bool getOverlaySEIPersistenceFlag() { return m_overlayInfoPersistenceFlag; } |
---|
1192 | #endif |
---|
1193 | #if Q0048_CGS_3D_ASYMLUT |
---|
1194 | Void setCGSFlag(Int n) { m_nCGSFlag = n; } |
---|
1195 | Int getCGSFlag() { return m_nCGSFlag; } |
---|
1196 | Void setCGSMaxOctantDepth(Int n) { m_nCGSMaxOctantDepth = n; } |
---|
1197 | Int getCGSMaxOctantDepth() { return m_nCGSMaxOctantDepth; } |
---|
1198 | Void setCGSMaxYPartNumLog2(Int n) { m_nCGSMaxYPartNumLog2 = n; } |
---|
1199 | Int getCGSMaxYPartNumLog2() { return m_nCGSMaxYPartNumLog2; } |
---|
1200 | Void setCGSLUTBit(Int n) { m_nCGSLUTBit = n; } |
---|
1201 | Int getCGSLUTBit() { return m_nCGSLUTBit; } |
---|
1202 | #if R0151_CGS_3D_ASYMLUT_IMPROVE |
---|
1203 | Void setCGSAdaptChroma(Int n) { m_nCGSAdaptiveChroma = n; } |
---|
1204 | Int getCGSAdaptChroma() { return m_nCGSAdaptiveChroma; } |
---|
1205 | #endif |
---|
1206 | #if R0179_ENC_OPT_3DLUT_SIZE |
---|
1207 | Void setCGSLutSizeRDO(Int n) { m_nCGSLutSizeRDO = n; } |
---|
1208 | Int getCGSLutSizeRDO() { return m_nCGSLutSizeRDO; } |
---|
1209 | #endif |
---|
1210 | #endif |
---|
1211 | #endif |
---|
1212 | }; |
---|
1213 | |
---|
1214 | #if SVC_EXTENSION |
---|
1215 | #if REPN_FORMAT_IN_VPS |
---|
1216 | struct RepFormatCfg |
---|
1217 | { |
---|
1218 | Int m_chromaFormatIdc; |
---|
1219 | Bool m_separateColourPlaneFlag; |
---|
1220 | Int m_picWidthInLumaSamples; |
---|
1221 | Int m_picHeightInLumaSamples; |
---|
1222 | Int m_bitDepthLuma; |
---|
1223 | Int m_bitDepthChroma; |
---|
1224 | RepFormatCfg() |
---|
1225 | : m_chromaFormatIdc (CHROMA_420) |
---|
1226 | , m_separateColourPlaneFlag (0) |
---|
1227 | , m_picWidthInLumaSamples (352) |
---|
1228 | , m_picHeightInLumaSamples (288) |
---|
1229 | , m_bitDepthLuma (8) |
---|
1230 | , m_bitDepthChroma (8) |
---|
1231 | {} |
---|
1232 | }; |
---|
1233 | std::istringstream &operator>>(std::istringstream &in, RepFormatCfg &repFormatCfg); |
---|
1234 | #endif |
---|
1235 | #endif //SVC_EXTENSION |
---|
1236 | |
---|
1237 | //! \} |
---|
1238 | |
---|
1239 | #endif // !defined(AFX_TENCCFG_H__6B99B797_F4DA_4E46_8E78_7656339A6C41__INCLUDED_) |
---|