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