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