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