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