[191] | 1 | /* The copyright in this software is being made available under the BSD |
---|
| 2 | * License, included below. This software may be subject to other third party |
---|
| 3 | * and contributor rights, including patent rights, and no such rights are |
---|
| 4 | * granted under this license. |
---|
| 5 | * |
---|
| 6 | * Copyright (c) 2010-2013, ITU/ISO/IEC |
---|
| 7 | * All rights reserved. |
---|
| 8 | * |
---|
| 9 | * Redistribution and use in source and binary forms, with or without |
---|
| 10 | * modification, are permitted provided that the following conditions are met: |
---|
| 11 | * |
---|
| 12 | * * Redistributions of source code must retain the above copyright notice, |
---|
| 13 | * this list of conditions and the following disclaimer. |
---|
| 14 | * * Redistributions in binary form must reproduce the above copyright notice, |
---|
| 15 | * this list of conditions and the following disclaimer in the documentation |
---|
| 16 | * and/or other materials provided with the distribution. |
---|
| 17 | * * Neither the name of the ITU/ISO/IEC nor the names of its contributors may |
---|
| 18 | * be used to endorse or promote products derived from this software without |
---|
| 19 | * specific prior written permission. |
---|
| 20 | * |
---|
| 21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
---|
| 22 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
---|
| 23 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
---|
| 24 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS |
---|
| 25 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
---|
| 26 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
---|
| 27 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
---|
| 28 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
---|
| 29 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
---|
| 30 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF |
---|
| 31 | * THE POSSIBILITY OF SUCH DAMAGE. |
---|
| 32 | */ |
---|
| 33 | |
---|
| 34 | /** \file TEncCfg.h |
---|
| 35 | \brief encoder configuration class (header) |
---|
| 36 | */ |
---|
| 37 | |
---|
| 38 | #ifndef __TENCCFG__ |
---|
| 39 | #define __TENCCFG__ |
---|
| 40 | |
---|
| 41 | #if _MSC_VER > 1000 |
---|
| 42 | #pragma once |
---|
| 43 | #endif // _MSC_VER > 1000 |
---|
| 44 | |
---|
| 45 | #include "TLibCommon/CommonDef.h" |
---|
| 46 | #include "TLibCommon/TComSlice.h" |
---|
| 47 | #include <assert.h> |
---|
| 48 | |
---|
| 49 | struct GOPEntry |
---|
| 50 | { |
---|
| 51 | Int m_POC; |
---|
| 52 | Int m_QPOffset; |
---|
| 53 | Double m_QPFactor; |
---|
| 54 | Int m_tcOffsetDiv2; |
---|
| 55 | Int m_betaOffsetDiv2; |
---|
| 56 | Int m_temporalId; |
---|
| 57 | Bool m_refPic; |
---|
| 58 | Int m_numRefPicsActive; |
---|
| 59 | Char m_sliceType; |
---|
| 60 | Int m_numRefPics; |
---|
| 61 | Int m_referencePics[MAX_NUM_REF_PICS]; |
---|
| 62 | Int m_usedByCurrPic[MAX_NUM_REF_PICS]; |
---|
| 63 | #if AUTO_INTER_RPS |
---|
| 64 | Int m_interRPSPrediction; |
---|
| 65 | #else |
---|
| 66 | Bool m_interRPSPrediction; |
---|
| 67 | #endif |
---|
| 68 | Int m_deltaRPS; |
---|
| 69 | Int m_numRefIdc; |
---|
| 70 | Int m_refIdc[MAX_NUM_REF_PICS+1]; |
---|
| 71 | GOPEntry() |
---|
| 72 | : m_POC(-1) |
---|
| 73 | , m_QPOffset(0) |
---|
| 74 | , m_QPFactor(0) |
---|
| 75 | , m_tcOffsetDiv2(0) |
---|
| 76 | , m_betaOffsetDiv2(0) |
---|
| 77 | , m_temporalId(0) |
---|
| 78 | , m_refPic(false) |
---|
| 79 | , m_numRefPicsActive(0) |
---|
| 80 | , m_sliceType('P') |
---|
| 81 | , m_numRefPics(0) |
---|
| 82 | , m_interRPSPrediction(false) |
---|
| 83 | , m_deltaRPS(0) |
---|
| 84 | , m_numRefIdc(0) |
---|
| 85 | { |
---|
| 86 | ::memset( m_referencePics, 0, sizeof(m_referencePics) ); |
---|
| 87 | ::memset( m_usedByCurrPic, 0, sizeof(m_usedByCurrPic) ); |
---|
| 88 | ::memset( m_refIdc, 0, sizeof(m_refIdc) ); |
---|
| 89 | } |
---|
| 90 | }; |
---|
| 91 | |
---|
| 92 | std::istringstream &operator>>(std::istringstream &in, GOPEntry &entry); //input |
---|
| 93 | //! \ingroup TLibEncoder |
---|
| 94 | //! \{ |
---|
| 95 | |
---|
| 96 | // ==================================================================================================================== |
---|
| 97 | // Class definition |
---|
| 98 | // ==================================================================================================================== |
---|
| 99 | |
---|
| 100 | /// encoder configuration class |
---|
| 101 | class TEncCfg |
---|
| 102 | { |
---|
| 103 | protected: |
---|
| 104 | //==== File I/O ======== |
---|
| 105 | Int m_iFrameRate; |
---|
| 106 | Int m_FrameSkip; |
---|
| 107 | Int m_iSourceWidth; |
---|
| 108 | Int m_iSourceHeight; |
---|
| 109 | 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 | #if L0046_CONSTRAINT_FLAGS |
---|
| 119 | Bool m_progressiveSourceFlag; |
---|
| 120 | Bool m_interlacedSourceFlag; |
---|
| 121 | Bool m_nonPackedConstraintFlag; |
---|
| 122 | Bool m_frameOnlyConstraintFlag; |
---|
| 123 | #endif |
---|
| 124 | |
---|
| 125 | //====== Coding Structure ======== |
---|
| 126 | UInt m_uiIntraPeriod; |
---|
| 127 | UInt m_uiDecodingRefreshType; ///< the type of decoding refresh employed for the random access. |
---|
| 128 | Int m_iGOPSize; |
---|
| 129 | GOPEntry m_GOPList[MAX_GOP]; |
---|
| 130 | Int m_extraRPSs; |
---|
| 131 | Int m_maxDecPicBuffering[MAX_TLAYER]; |
---|
| 132 | Int m_numReorderPics[MAX_TLAYER]; |
---|
| 133 | |
---|
| 134 | Int m_iQP; // if (AdaptiveQP == OFF) |
---|
| 135 | |
---|
| 136 | Int m_aiPad[2]; |
---|
| 137 | |
---|
| 138 | |
---|
| 139 | Int m_iMaxRefPicNum; ///< this is used to mimic the sliding mechanism used by the decoder |
---|
| 140 | // TODO: We need to have a common sliding mechanism used by both the encoder and decoder |
---|
| 141 | |
---|
| 142 | Int m_maxTempLayer; ///< Max temporal layer |
---|
| 143 | Bool m_useAMP; |
---|
| 144 | #if VPS_EXTN_DIRECT_REF_LAYERS |
---|
| 145 | Int m_numDirectRefLayers; |
---|
| 146 | Int m_refLayerId[MAX_VPS_LAYER_ID_PLUS1]; |
---|
| 147 | #endif |
---|
| 148 | //======= Transform ============= |
---|
| 149 | UInt m_uiQuadtreeTULog2MaxSize; |
---|
| 150 | UInt m_uiQuadtreeTULog2MinSize; |
---|
| 151 | UInt m_uiQuadtreeTUMaxDepthInter; |
---|
| 152 | UInt m_uiQuadtreeTUMaxDepthIntra; |
---|
| 153 | |
---|
| 154 | //====== Loop/Deblock Filter ======== |
---|
| 155 | Bool m_bLoopFilterDisable; |
---|
| 156 | Bool m_loopFilterOffsetInPPS; |
---|
| 157 | Int m_loopFilterBetaOffsetDiv2; |
---|
| 158 | Int m_loopFilterTcOffsetDiv2; |
---|
| 159 | Bool m_DeblockingFilterControlPresent; |
---|
| 160 | #if L0386_DB_METRIC |
---|
| 161 | Bool m_DeblockingFilterMetric; |
---|
| 162 | #endif |
---|
| 163 | Bool m_bUseSAO; |
---|
| 164 | Int m_maxNumOffsetsPerPic; |
---|
| 165 | Bool m_saoLcuBoundary; |
---|
| 166 | Bool m_saoLcuBasedOptimization; |
---|
| 167 | |
---|
| 168 | //====== Lossless ======== |
---|
| 169 | Bool m_useLossless; |
---|
| 170 | //====== Motion search ======== |
---|
| 171 | Int m_iFastSearch; // 0:Full search 1:Diamond 2:PMVFAST |
---|
| 172 | Int m_iSearchRange; // 0:Full frame |
---|
| 173 | Int m_bipredSearchRange; |
---|
| 174 | |
---|
| 175 | //====== Quality control ======== |
---|
| 176 | Int m_iMaxDeltaQP; // Max. absolute delta QP (1:default) |
---|
| 177 | Int m_iMaxCuDQPDepth; // Max. depth for a minimum CuDQP (0:default) |
---|
| 178 | |
---|
| 179 | Int m_chromaCbQpOffset; // Chroma Cb QP Offset (0:default) |
---|
| 180 | Int m_chromaCrQpOffset; // Chroma Cr Qp Offset (0:default) |
---|
| 181 | |
---|
| 182 | #if ADAPTIVE_QP_SELECTION |
---|
| 183 | Bool m_bUseAdaptQpSelect; |
---|
| 184 | #endif |
---|
| 185 | |
---|
| 186 | Bool m_bUseAdaptiveQP; |
---|
| 187 | Int m_iQPAdaptationRange; |
---|
| 188 | |
---|
| 189 | //====== Tool list ======== |
---|
| 190 | Bool m_bUseSBACRD; |
---|
| 191 | Bool m_bUseASR; |
---|
| 192 | Bool m_bUseHADME; |
---|
| 193 | #if !L0034_COMBINED_LIST_CLEANUP |
---|
| 194 | Bool m_bUseLComb; |
---|
| 195 | #endif |
---|
| 196 | Bool m_useRDOQ; |
---|
| 197 | Bool m_useRDOQTS; |
---|
| 198 | #if L0232_RD_PENALTY |
---|
| 199 | UInt m_rdPenalty; |
---|
| 200 | #endif |
---|
| 201 | Bool m_bUseFastEnc; |
---|
| 202 | Bool m_bUseEarlyCU; |
---|
| 203 | Bool m_useFastDecisionForMerge; |
---|
| 204 | Bool m_bUseCbfFastMode; |
---|
| 205 | Bool m_useEarlySkipDetection; |
---|
| 206 | Bool m_useTransformSkip; |
---|
| 207 | Bool m_useTransformSkipFast; |
---|
| 208 | Int* m_aidQP; |
---|
| 209 | UInt m_uiDeltaQpRD; |
---|
| 210 | |
---|
| 211 | Bool m_bUseConstrainedIntraPred; |
---|
| 212 | Bool m_usePCM; |
---|
| 213 | UInt m_pcmLog2MaxSize; |
---|
| 214 | UInt m_uiPCMLog2MinSize; |
---|
| 215 | //====== Slice ======== |
---|
| 216 | Int m_sliceMode; |
---|
| 217 | Int m_sliceArgument; |
---|
| 218 | //====== Dependent Slice ======== |
---|
| 219 | Int m_sliceSegmentMode; |
---|
| 220 | Int m_sliceSegmentArgument; |
---|
| 221 | Bool m_bLFCrossSliceBoundaryFlag; |
---|
| 222 | |
---|
| 223 | Bool m_bPCMInputBitDepthFlag; |
---|
| 224 | UInt m_uiPCMBitDepthLuma; |
---|
| 225 | UInt m_uiPCMBitDepthChroma; |
---|
| 226 | Bool m_bPCMFilterDisableFlag; |
---|
| 227 | Bool m_loopFilterAcrossTilesEnabledFlag; |
---|
| 228 | Int m_iUniformSpacingIdr; |
---|
| 229 | Int m_iNumColumnsMinus1; |
---|
| 230 | UInt* m_puiColumnWidth; |
---|
| 231 | Int m_iNumRowsMinus1; |
---|
| 232 | UInt* m_puiRowHeight; |
---|
| 233 | |
---|
| 234 | Int m_iWaveFrontSynchro; |
---|
| 235 | Int m_iWaveFrontSubstreams; |
---|
| 236 | |
---|
| 237 | Int m_decodedPictureHashSEIEnabled; ///< Checksum(3)/CRC(2)/MD5(1)/disable(0) acting on decoded picture hash SEI message |
---|
| 238 | Int m_bufferingPeriodSEIEnabled; |
---|
| 239 | Int m_pictureTimingSEIEnabled; |
---|
| 240 | Int m_recoveryPointSEIEnabled; |
---|
| 241 | #if J0149_TONE_MAPPING_SEI |
---|
| 242 | Bool m_toneMappingInfoSEIEnabled; |
---|
| 243 | Int m_toneMapId; |
---|
| 244 | Bool m_toneMapCancelFlag; |
---|
| 245 | Bool m_toneMapPersistenceFlag; |
---|
| 246 | Int m_codedDataBitDepth; |
---|
| 247 | Int m_targetBitDepth; |
---|
| 248 | Int m_modelId; |
---|
| 249 | Int m_minValue; |
---|
| 250 | Int m_maxValue; |
---|
| 251 | Int m_sigmoidMidpoint; |
---|
| 252 | Int m_sigmoidWidth; |
---|
| 253 | Int m_numPivots; |
---|
| 254 | Int m_cameraIsoSpeedIdc; |
---|
| 255 | Int m_cameraIsoSpeedValue; |
---|
| 256 | Int m_exposureCompensationValueSignFlag; |
---|
| 257 | Int m_exposureCompensationValueNumerator; |
---|
| 258 | Int m_exposureCompensationValueDenomIdc; |
---|
| 259 | Int m_refScreenLuminanceWhite; |
---|
| 260 | Int m_extendedRangeWhiteLevel; |
---|
| 261 | Int m_nominalBlackLevelLumaCodeValue; |
---|
| 262 | Int m_nominalWhiteLevelLumaCodeValue; |
---|
| 263 | Int m_extendedWhiteLevelLumaCodeValue; |
---|
| 264 | Int* m_startOfCodedInterval; |
---|
| 265 | Int* m_codedPivotValue; |
---|
| 266 | Int* m_targetPivotValue; |
---|
| 267 | #endif |
---|
| 268 | Int m_framePackingSEIEnabled; |
---|
| 269 | Int m_framePackingSEIType; |
---|
| 270 | Int m_framePackingSEIId; |
---|
| 271 | Int m_framePackingSEIQuincunx; |
---|
| 272 | Int m_framePackingSEIInterpretation; |
---|
| 273 | Int m_displayOrientationSEIAngle; |
---|
| 274 | Int m_temporalLevel0IndexSEIEnabled; |
---|
| 275 | Int m_gradualDecodingRefreshInfoEnabled; |
---|
| 276 | Int m_decodingUnitInfoSEIEnabled; |
---|
| 277 | #if L0208_SOP_DESCRIPTION_SEI |
---|
| 278 | Int m_SOPDescriptionSEIEnabled; |
---|
| 279 | #endif |
---|
| 280 | #if K0180_SCALABLE_NESTING_SEI |
---|
| 281 | Int m_scalableNestingSEIEnabled; |
---|
| 282 | #endif |
---|
| 283 | //====== Weighted Prediction ======== |
---|
| 284 | Bool m_useWeightedPred; //< Use of Weighting Prediction (P_SLICE) |
---|
| 285 | Bool m_useWeightedBiPred; //< Use of Bi-directional Weighting Prediction (B_SLICE) |
---|
| 286 | UInt m_log2ParallelMergeLevelMinus2; ///< Parallel merge estimation region |
---|
| 287 | UInt m_maxNumMergeCand; ///< Maximum number of merge candidates |
---|
| 288 | Int m_useScalingListId; ///< Using quantization matrix i.e. 0=off, 1=default, 2=file. |
---|
| 289 | Char* m_scalingListFile; ///< quantization matrix file name |
---|
| 290 | Int m_TMVPModeId; |
---|
| 291 | Int m_signHideFlag; |
---|
| 292 | #if RATE_CONTROL_LAMBDA_DOMAIN |
---|
| 293 | Bool m_RCEnableRateControl; |
---|
| 294 | Int m_RCTargetBitrate; |
---|
| 295 | Bool m_RCKeepHierarchicalBit; |
---|
| 296 | Bool m_RCLCULevelRC; |
---|
| 297 | Bool m_RCUseLCUSeparateModel; |
---|
| 298 | Int m_RCInitialQP; |
---|
| 299 | Bool m_RCForceIntraQP; |
---|
| 300 | #else |
---|
| 301 | Bool m_enableRateCtrl; ///< Flag for using rate control algorithm |
---|
| 302 | Int m_targetBitrate; ///< target bitrate |
---|
| 303 | Int m_numLCUInUnit; ///< Total number of LCUs in a frame should be divided by the NumLCUInUnit |
---|
| 304 | #endif |
---|
| 305 | Bool m_TransquantBypassEnableFlag; ///< transquant_bypass_enable_flag setting in PPS. |
---|
| 306 | Bool m_CUTransquantBypassFlagValue; ///< if transquant_bypass_enable_flag, the fixed value to use for the per-CU cu_transquant_bypass_flag. |
---|
| 307 | #if SVC_EXTENSION |
---|
| 308 | static TComVPS m_cVPS; |
---|
| 309 | #else |
---|
| 310 | TComVPS m_cVPS; |
---|
| 311 | #endif |
---|
| 312 | Bool m_recalculateQPAccordingToLambda; ///< recalculate QP value according to the lambda value |
---|
| 313 | Int m_activeParameterSetsSEIEnabled; ///< enable active parameter set SEI message |
---|
| 314 | Bool m_vuiParametersPresentFlag; ///< enable generation of VUI parameters |
---|
| 315 | Bool m_aspectRatioInfoPresentFlag; ///< Signals whether aspect_ratio_idc is present |
---|
| 316 | Int m_aspectRatioIdc; ///< aspect_ratio_idc |
---|
| 317 | Int m_sarWidth; ///< horizontal size of the sample aspect ratio |
---|
| 318 | Int m_sarHeight; ///< vertical size of the sample aspect ratio |
---|
| 319 | Bool m_overscanInfoPresentFlag; ///< Signals whether overscan_appropriate_flag is present |
---|
| 320 | Bool m_overscanAppropriateFlag; ///< Indicates whether conformant decoded pictures are suitable for display using overscan |
---|
| 321 | Bool m_videoSignalTypePresentFlag; ///< Signals whether video_format, video_full_range_flag, and colour_description_present_flag are present |
---|
| 322 | Int m_videoFormat; ///< Indicates representation of pictures |
---|
| 323 | Bool m_videoFullRangeFlag; ///< Indicates the black level and range of luma and chroma signals |
---|
| 324 | Bool m_colourDescriptionPresentFlag; ///< Signals whether colour_primaries, transfer_characteristics and matrix_coefficients are present |
---|
| 325 | Int m_colourPrimaries; ///< Indicates chromaticity coordinates of the source primaries |
---|
| 326 | Int m_transferCharacteristics; ///< Indicates the opto-electronic transfer characteristics of the source |
---|
| 327 | Int m_matrixCoefficients; ///< Describes the matrix coefficients used in deriving luma and chroma from RGB primaries |
---|
| 328 | Bool m_chromaLocInfoPresentFlag; ///< Signals whether chroma_sample_loc_type_top_field and chroma_sample_loc_type_bottom_field are present |
---|
| 329 | Int m_chromaSampleLocTypeTopField; ///< Specifies the location of chroma samples for top field |
---|
| 330 | Int m_chromaSampleLocTypeBottomField; ///< Specifies the location of chroma samples for bottom field |
---|
| 331 | Bool m_neutralChromaIndicationFlag; ///< Indicates that the value of all decoded chroma samples is equal to 1<<(BitDepthCr-1) |
---|
| 332 | Window m_defaultDisplayWindow; ///< Represents the default display window parameters |
---|
| 333 | Bool m_frameFieldInfoPresentFlag; ///< Indicates that pic_struct and other field coding related values are present in picture timing SEI messages |
---|
| 334 | Bool m_pocProportionalToTimingFlag; ///< Indicates that the POC value is proportional to the output time w.r.t. first picture in CVS |
---|
| 335 | Int m_numTicksPocDiffOneMinus1; ///< Number of ticks minus 1 that for a POC difference of one |
---|
| 336 | Bool m_bitstreamRestrictionFlag; ///< Signals whether bitstream restriction parameters are present |
---|
| 337 | Bool m_tilesFixedStructureFlag; ///< Indicates that each active picture parameter set has the same values of the syntax elements related to tiles |
---|
| 338 | Bool m_motionVectorsOverPicBoundariesFlag; ///< Indicates that no samples outside the picture boundaries are used for inter prediction |
---|
| 339 | Int m_minSpatialSegmentationIdc; ///< Indicates the maximum size of the spatial segments in the pictures in the coded video sequence |
---|
| 340 | 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 |
---|
| 341 | Int m_maxBitsPerMinCuDenom; ///< Indicates an upper bound for the number of bits of coding_unit() data |
---|
| 342 | Int m_log2MaxMvLengthHorizontal; ///< Indicate the maximum absolute value of a decoded horizontal MV component in quarter-pel luma units |
---|
| 343 | Int m_log2MaxMvLengthVertical; ///< Indicate the maximum absolute value of a decoded vertical MV component in quarter-pel luma units |
---|
| 344 | |
---|
| 345 | Bool m_useStrongIntraSmoothing; ///< enable the use of strong intra smoothing (bi_linear interpolation) for 32x32 blocks when reference samples are flat. |
---|
| 346 | #if SVC_EXTENSION |
---|
| 347 | UInt m_layerId; |
---|
| 348 | UInt m_numLayer; |
---|
| 349 | #endif |
---|
| 350 | #if REF_IDX_FRAMEWORK |
---|
| 351 | Int m_elRapSliceBEnabled; |
---|
| 352 | #endif |
---|
| 353 | |
---|
| 354 | public: |
---|
| 355 | TEncCfg() |
---|
| 356 | : m_puiColumnWidth() |
---|
| 357 | , m_puiRowHeight() |
---|
| 358 | {} |
---|
| 359 | |
---|
| 360 | virtual ~TEncCfg() |
---|
| 361 | { |
---|
| 362 | delete[] m_puiColumnWidth; |
---|
| 363 | delete[] m_puiRowHeight; |
---|
| 364 | } |
---|
| 365 | |
---|
| 366 | Void setProfile(Profile::Name profile) { m_profile = profile; } |
---|
| 367 | Void setLevel(Level::Tier tier, Level::Name level) { m_levelTier = tier; m_level = level; } |
---|
| 368 | |
---|
| 369 | Void setFrameRate ( Int i ) { m_iFrameRate = i; } |
---|
| 370 | Void setFrameSkip ( UInt i ) { m_FrameSkip = i; } |
---|
| 371 | Void setSourceWidth ( Int i ) { m_iSourceWidth = i; } |
---|
| 372 | Void setSourceHeight ( Int i ) { m_iSourceHeight = i; } |
---|
| 373 | |
---|
| 374 | Window &getConformanceWindow() { return m_conformanceWindow; } |
---|
| 375 | Void setConformanceWindow (Int confLeft, Int confRight, Int confTop, Int confBottom ) { m_conformanceWindow.setWindow (confLeft, confRight, confTop, confBottom); } |
---|
| 376 | |
---|
| 377 | Void setFramesToBeEncoded ( Int i ) { m_framesToBeEncoded = i; } |
---|
| 378 | |
---|
| 379 | //====== Coding Structure ======== |
---|
| 380 | Void setIntraPeriod ( Int i ) { m_uiIntraPeriod = (UInt)i; } |
---|
| 381 | Void setDecodingRefreshType ( Int i ) { m_uiDecodingRefreshType = (UInt)i; } |
---|
| 382 | Void setGOPSize ( Int i ) { m_iGOPSize = i; } |
---|
| 383 | Void setGopList ( GOPEntry* GOPList ) { for ( Int i = 0; i < MAX_GOP; i++ ) m_GOPList[i] = GOPList[i]; } |
---|
| 384 | Void setExtraRPSs ( Int i ) { m_extraRPSs = i; } |
---|
| 385 | GOPEntry getGOPEntry ( Int i ) { return m_GOPList[i]; } |
---|
| 386 | Void setMaxDecPicBuffering ( UInt u, UInt tlayer ) { m_maxDecPicBuffering[tlayer] = u; } |
---|
| 387 | Void setNumReorderPics ( Int i, UInt tlayer ) { m_numReorderPics[tlayer] = i; } |
---|
| 388 | |
---|
| 389 | Void setQP ( Int i ) { m_iQP = i; } |
---|
| 390 | |
---|
| 391 | Void setPad ( Int* iPad ) { for ( Int i = 0; i < 2; i++ ) m_aiPad[i] = iPad[i]; } |
---|
| 392 | |
---|
| 393 | Int getMaxRefPicNum () { return m_iMaxRefPicNum; } |
---|
| 394 | Void setMaxRefPicNum ( Int iMaxRefPicNum ) { m_iMaxRefPicNum = iMaxRefPicNum; } |
---|
| 395 | |
---|
| 396 | Bool getMaxTempLayer () { return m_maxTempLayer; } |
---|
| 397 | Void setMaxTempLayer ( Int maxTempLayer ) { m_maxTempLayer = maxTempLayer; } |
---|
| 398 | #if VPS_EXTN_DIRECT_REF_LAYERS |
---|
| 399 | Int getNumDirectRefLayers () { return m_numDirectRefLayers; } |
---|
| 400 | Void setNumDirectRefLayers (Int num) { m_numDirectRefLayers = num; } |
---|
| 401 | |
---|
| 402 | Int getRefLayerId (Int i) { return m_refLayerId[i]; } |
---|
| 403 | Void setRefLayerId (Int i, Int refLayerId) { m_refLayerId[i] = refLayerId; } |
---|
| 404 | #endif |
---|
| 405 | //======== Transform ============= |
---|
| 406 | Void setQuadtreeTULog2MaxSize ( UInt u ) { m_uiQuadtreeTULog2MaxSize = u; } |
---|
| 407 | Void setQuadtreeTULog2MinSize ( UInt u ) { m_uiQuadtreeTULog2MinSize = u; } |
---|
| 408 | Void setQuadtreeTUMaxDepthInter ( UInt u ) { m_uiQuadtreeTUMaxDepthInter = u; } |
---|
| 409 | Void setQuadtreeTUMaxDepthIntra ( UInt u ) { m_uiQuadtreeTUMaxDepthIntra = u; } |
---|
| 410 | |
---|
| 411 | Void setUseAMP( Bool b ) { m_useAMP = b; } |
---|
| 412 | |
---|
| 413 | //====== Loop/Deblock Filter ======== |
---|
| 414 | Void setLoopFilterDisable ( Bool b ) { m_bLoopFilterDisable = b; } |
---|
| 415 | Void setLoopFilterOffsetInPPS ( Bool b ) { m_loopFilterOffsetInPPS = b; } |
---|
| 416 | Void setLoopFilterBetaOffset ( Int i ) { m_loopFilterBetaOffsetDiv2 = i; } |
---|
| 417 | Void setLoopFilterTcOffset ( Int i ) { m_loopFilterTcOffsetDiv2 = i; } |
---|
| 418 | Void setDeblockingFilterControlPresent ( Bool b ) { m_DeblockingFilterControlPresent = b; } |
---|
| 419 | #if L0386_DB_METRIC |
---|
| 420 | Void setDeblockingFilterMetric ( Bool b ) { m_DeblockingFilterMetric = b; } |
---|
| 421 | #endif |
---|
| 422 | |
---|
| 423 | //====== Motion search ======== |
---|
| 424 | Void setFastSearch ( Int i ) { m_iFastSearch = i; } |
---|
| 425 | Void setSearchRange ( Int i ) { m_iSearchRange = i; } |
---|
| 426 | Void setBipredSearchRange ( Int i ) { m_bipredSearchRange = i; } |
---|
| 427 | |
---|
| 428 | //====== Quality control ======== |
---|
| 429 | Void setMaxDeltaQP ( Int i ) { m_iMaxDeltaQP = i; } |
---|
| 430 | Void setMaxCuDQPDepth ( Int i ) { m_iMaxCuDQPDepth = i; } |
---|
| 431 | |
---|
| 432 | Void setChromaCbQpOffset ( Int i ) { m_chromaCbQpOffset = i; } |
---|
| 433 | Void setChromaCrQpOffset ( Int i ) { m_chromaCrQpOffset = i; } |
---|
| 434 | |
---|
| 435 | #if ADAPTIVE_QP_SELECTION |
---|
| 436 | Void setUseAdaptQpSelect ( Bool i ) { m_bUseAdaptQpSelect = i; } |
---|
| 437 | Bool getUseAdaptQpSelect () { return m_bUseAdaptQpSelect; } |
---|
| 438 | #endif |
---|
| 439 | |
---|
| 440 | Void setUseAdaptiveQP ( Bool b ) { m_bUseAdaptiveQP = b; } |
---|
| 441 | Void setQPAdaptationRange ( Int i ) { m_iQPAdaptationRange = i; } |
---|
| 442 | |
---|
| 443 | //====== Lossless ======== |
---|
| 444 | Void setUseLossless (Bool b ) { m_useLossless = b; } |
---|
| 445 | //====== Sequence ======== |
---|
| 446 | Int getFrameRate () { return m_iFrameRate; } |
---|
| 447 | UInt getFrameSkip () { return m_FrameSkip; } |
---|
| 448 | Int getSourceWidth () { return m_iSourceWidth; } |
---|
| 449 | Int getSourceHeight () { return m_iSourceHeight; } |
---|
| 450 | Int getFramesToBeEncoded () { return m_framesToBeEncoded; } |
---|
| 451 | void setLambdaModifier ( UInt uiIndex, Double dValue ) { m_adLambdaModifier[ uiIndex ] = dValue; } |
---|
| 452 | Double getLambdaModifier ( UInt uiIndex ) const { return m_adLambdaModifier[ uiIndex ]; } |
---|
| 453 | |
---|
| 454 | //==== Coding Structure ======== |
---|
| 455 | UInt getIntraPeriod () { return m_uiIntraPeriod; } |
---|
| 456 | UInt getDecodingRefreshType () { return m_uiDecodingRefreshType; } |
---|
| 457 | Int getGOPSize () { return m_iGOPSize; } |
---|
| 458 | Int getMaxDecPicBuffering (UInt tlayer) { return m_maxDecPicBuffering[tlayer]; } |
---|
| 459 | Int getNumReorderPics (UInt tlayer) { return m_numReorderPics[tlayer]; } |
---|
| 460 | Int getQP () { return m_iQP; } |
---|
| 461 | |
---|
| 462 | Int getPad ( Int i ) { assert (i < 2 ); return m_aiPad[i]; } |
---|
| 463 | |
---|
| 464 | //======== Transform ============= |
---|
| 465 | UInt getQuadtreeTULog2MaxSize () const { return m_uiQuadtreeTULog2MaxSize; } |
---|
| 466 | UInt getQuadtreeTULog2MinSize () const { return m_uiQuadtreeTULog2MinSize; } |
---|
| 467 | UInt getQuadtreeTUMaxDepthInter () const { return m_uiQuadtreeTUMaxDepthInter; } |
---|
| 468 | UInt getQuadtreeTUMaxDepthIntra () const { return m_uiQuadtreeTUMaxDepthIntra; } |
---|
| 469 | |
---|
| 470 | //==== Loop/Deblock Filter ======== |
---|
| 471 | Bool getLoopFilterDisable () { return m_bLoopFilterDisable; } |
---|
| 472 | Bool getLoopFilterOffsetInPPS () { return m_loopFilterOffsetInPPS; } |
---|
| 473 | Int getLoopFilterBetaOffset () { return m_loopFilterBetaOffsetDiv2; } |
---|
| 474 | Int getLoopFilterTcOffset () { return m_loopFilterTcOffsetDiv2; } |
---|
| 475 | Bool getDeblockingFilterControlPresent() { return m_DeblockingFilterControlPresent; } |
---|
| 476 | #if L0386_DB_METRIC |
---|
| 477 | Bool getDeblockingFilterMetric () { return m_DeblockingFilterMetric; } |
---|
| 478 | #endif |
---|
| 479 | |
---|
| 480 | //==== Motion search ======== |
---|
| 481 | Int getFastSearch () { return m_iFastSearch; } |
---|
| 482 | Int getSearchRange () { return m_iSearchRange; } |
---|
| 483 | |
---|
| 484 | //==== Quality control ======== |
---|
| 485 | Int getMaxDeltaQP () { return m_iMaxDeltaQP; } |
---|
| 486 | Int getMaxCuDQPDepth () { return m_iMaxCuDQPDepth; } |
---|
| 487 | Bool getUseAdaptiveQP () { return m_bUseAdaptiveQP; } |
---|
| 488 | Int getQPAdaptationRange () { return m_iQPAdaptationRange; } |
---|
| 489 | //====== Lossless ======== |
---|
| 490 | Bool getUseLossless () { return m_useLossless; } |
---|
| 491 | |
---|
| 492 | //==== Tool list ======== |
---|
| 493 | Void setUseSBACRD ( Bool b ) { m_bUseSBACRD = b; } |
---|
| 494 | Void setUseASR ( Bool b ) { m_bUseASR = b; } |
---|
| 495 | Void setUseHADME ( Bool b ) { m_bUseHADME = b; } |
---|
| 496 | #if !L0034_COMBINED_LIST_CLEANUP |
---|
| 497 | Void setUseLComb ( Bool b ) { m_bUseLComb = b; } |
---|
| 498 | #endif |
---|
| 499 | Void setUseRDOQ ( Bool b ) { m_useRDOQ = b; } |
---|
| 500 | Void setUseRDOQTS ( Bool b ) { m_useRDOQTS = b; } |
---|
| 501 | #if L0232_RD_PENALTY |
---|
| 502 | Void setRDpenalty ( UInt b ) { m_rdPenalty = b; } |
---|
| 503 | #endif |
---|
| 504 | Void setUseFastEnc ( Bool b ) { m_bUseFastEnc = b; } |
---|
| 505 | Void setUseEarlyCU ( Bool b ) { m_bUseEarlyCU = b; } |
---|
| 506 | Void setUseFastDecisionForMerge ( Bool b ) { m_useFastDecisionForMerge = b; } |
---|
| 507 | Void setUseCbfFastMode ( Bool b ) { m_bUseCbfFastMode = b; } |
---|
| 508 | Void setUseEarlySkipDetection ( Bool b ) { m_useEarlySkipDetection = b; } |
---|
| 509 | Void setUseConstrainedIntraPred ( Bool b ) { m_bUseConstrainedIntraPred = b; } |
---|
| 510 | Void setPCMInputBitDepthFlag ( Bool b ) { m_bPCMInputBitDepthFlag = b; } |
---|
| 511 | Void setPCMFilterDisableFlag ( Bool b ) { m_bPCMFilterDisableFlag = b; } |
---|
| 512 | Void setUsePCM ( Bool b ) { m_usePCM = b; } |
---|
| 513 | Void setPCMLog2MaxSize ( UInt u ) { m_pcmLog2MaxSize = u; } |
---|
| 514 | Void setPCMLog2MinSize ( UInt u ) { m_uiPCMLog2MinSize = u; } |
---|
| 515 | Void setdQPs ( Int* p ) { m_aidQP = p; } |
---|
| 516 | Void setDeltaQpRD ( UInt u ) {m_uiDeltaQpRD = u; } |
---|
| 517 | Bool getUseSBACRD () { return m_bUseSBACRD; } |
---|
| 518 | Bool getUseASR () { return m_bUseASR; } |
---|
| 519 | Bool getUseHADME () { return m_bUseHADME; } |
---|
| 520 | #if !L0034_COMBINED_LIST_CLEANUP |
---|
| 521 | Bool getUseLComb () { return m_bUseLComb; } |
---|
| 522 | #endif |
---|
| 523 | Bool getUseRDOQ () { return m_useRDOQ; } |
---|
| 524 | Bool getUseRDOQTS () { return m_useRDOQTS; } |
---|
| 525 | #if L0232_RD_PENALTY |
---|
| 526 | Int getRDpenalty () { return m_rdPenalty; } |
---|
| 527 | #endif |
---|
| 528 | Bool getUseFastEnc () { return m_bUseFastEnc; } |
---|
| 529 | Bool getUseEarlyCU () { return m_bUseEarlyCU; } |
---|
| 530 | Bool getUseFastDecisionForMerge () { return m_useFastDecisionForMerge; } |
---|
| 531 | Bool getUseCbfFastMode () { return m_bUseCbfFastMode; } |
---|
| 532 | Bool getUseEarlySkipDetection () { return m_useEarlySkipDetection; } |
---|
| 533 | Bool getUseConstrainedIntraPred () { return m_bUseConstrainedIntraPred; } |
---|
| 534 | Bool getPCMInputBitDepthFlag () { return m_bPCMInputBitDepthFlag; } |
---|
| 535 | Bool getPCMFilterDisableFlag () { return m_bPCMFilterDisableFlag; } |
---|
| 536 | Bool getUsePCM () { return m_usePCM; } |
---|
| 537 | UInt getPCMLog2MaxSize () { return m_pcmLog2MaxSize; } |
---|
| 538 | UInt getPCMLog2MinSize () { return m_uiPCMLog2MinSize; } |
---|
| 539 | |
---|
| 540 | Bool getUseTransformSkip () { return m_useTransformSkip; } |
---|
| 541 | Void setUseTransformSkip ( Bool b ) { m_useTransformSkip = b; } |
---|
| 542 | Bool getUseTransformSkipFast () { return m_useTransformSkipFast; } |
---|
| 543 | Void setUseTransformSkipFast ( Bool b ) { m_useTransformSkipFast = b; } |
---|
| 544 | Int* getdQPs () { return m_aidQP; } |
---|
| 545 | UInt getDeltaQpRD () { return m_uiDeltaQpRD; } |
---|
| 546 | |
---|
| 547 | //====== Slice ======== |
---|
| 548 | Void setSliceMode ( Int i ) { m_sliceMode = i; } |
---|
| 549 | Void setSliceArgument ( Int i ) { m_sliceArgument = i; } |
---|
| 550 | Int getSliceMode () { return m_sliceMode; } |
---|
| 551 | Int getSliceArgument () { return m_sliceArgument; } |
---|
| 552 | //====== Dependent Slice ======== |
---|
| 553 | Void setSliceSegmentMode ( Int i ) { m_sliceSegmentMode = i; } |
---|
| 554 | Void setSliceSegmentArgument ( Int i ) { m_sliceSegmentArgument = i; } |
---|
| 555 | Int getSliceSegmentMode () { return m_sliceSegmentMode; } |
---|
| 556 | Int getSliceSegmentArgument () { return m_sliceSegmentArgument;} |
---|
| 557 | Void setLFCrossSliceBoundaryFlag ( Bool bValue ) { m_bLFCrossSliceBoundaryFlag = bValue; } |
---|
| 558 | Bool getLFCrossSliceBoundaryFlag () { return m_bLFCrossSliceBoundaryFlag; } |
---|
| 559 | |
---|
| 560 | Void setUseSAO (Bool bVal) {m_bUseSAO = bVal;} |
---|
| 561 | Bool getUseSAO () {return m_bUseSAO;} |
---|
| 562 | Void setMaxNumOffsetsPerPic (Int iVal) { m_maxNumOffsetsPerPic = iVal; } |
---|
| 563 | Int getMaxNumOffsetsPerPic () { return m_maxNumOffsetsPerPic; } |
---|
| 564 | Void setSaoLcuBoundary (Bool val) { m_saoLcuBoundary = val; } |
---|
| 565 | Bool getSaoLcuBoundary () { return m_saoLcuBoundary; } |
---|
| 566 | Void setSaoLcuBasedOptimization (Bool val) { m_saoLcuBasedOptimization = val; } |
---|
| 567 | Bool getSaoLcuBasedOptimization () { return m_saoLcuBasedOptimization; } |
---|
| 568 | Void setLFCrossTileBoundaryFlag ( Bool val ) { m_loopFilterAcrossTilesEnabledFlag = val; } |
---|
| 569 | Bool getLFCrossTileBoundaryFlag () { return m_loopFilterAcrossTilesEnabledFlag; } |
---|
| 570 | Void setUniformSpacingIdr ( Int i ) { m_iUniformSpacingIdr = i; } |
---|
| 571 | Int getUniformSpacingIdr () { return m_iUniformSpacingIdr; } |
---|
| 572 | Void setNumColumnsMinus1 ( Int i ) { m_iNumColumnsMinus1 = i; } |
---|
| 573 | Int getNumColumnsMinus1 () { return m_iNumColumnsMinus1; } |
---|
| 574 | Void setColumnWidth ( UInt* columnWidth ) |
---|
| 575 | { |
---|
| 576 | if( m_iUniformSpacingIdr == 0 && m_iNumColumnsMinus1 > 0 ) |
---|
| 577 | { |
---|
| 578 | Int m_iWidthInCU = ( m_iSourceWidth%g_uiMaxCUWidth ) ? m_iSourceWidth/g_uiMaxCUWidth + 1 : m_iSourceWidth/g_uiMaxCUWidth; |
---|
| 579 | m_puiColumnWidth = new UInt[ m_iNumColumnsMinus1 ]; |
---|
| 580 | |
---|
| 581 | for(Int i=0; i<m_iNumColumnsMinus1; i++) |
---|
| 582 | { |
---|
| 583 | m_puiColumnWidth[i] = columnWidth[i]; |
---|
| 584 | printf("col: m_iWidthInCU= %4d i=%4d width= %4d\n",m_iWidthInCU,i,m_puiColumnWidth[i]); //AFU |
---|
| 585 | } |
---|
| 586 | } |
---|
| 587 | } |
---|
| 588 | UInt getColumnWidth ( UInt columnidx ) { return *( m_puiColumnWidth + columnidx ); } |
---|
| 589 | Void setNumRowsMinus1 ( Int i ) { m_iNumRowsMinus1 = i; } |
---|
| 590 | Int getNumRowsMinus1 () { return m_iNumRowsMinus1; } |
---|
| 591 | Void setRowHeight (UInt* rowHeight) |
---|
| 592 | { |
---|
| 593 | if( m_iUniformSpacingIdr == 0 && m_iNumRowsMinus1 > 0 ) |
---|
| 594 | { |
---|
| 595 | Int m_iHeightInCU = ( m_iSourceHeight%g_uiMaxCUHeight ) ? m_iSourceHeight/g_uiMaxCUHeight + 1 : m_iSourceHeight/g_uiMaxCUHeight; |
---|
| 596 | m_puiRowHeight = new UInt[ m_iNumRowsMinus1 ]; |
---|
| 597 | |
---|
| 598 | for(Int i=0; i<m_iNumRowsMinus1; i++) |
---|
| 599 | { |
---|
| 600 | m_puiRowHeight[i] = rowHeight[i]; |
---|
| 601 | printf("row: m_iHeightInCU=%4d i=%4d height=%4d\n",m_iHeightInCU,i,m_puiRowHeight[i]); //AFU |
---|
| 602 | } |
---|
| 603 | } |
---|
| 604 | } |
---|
| 605 | UInt getRowHeight ( UInt rowIdx ) { return *( m_puiRowHeight + rowIdx ); } |
---|
| 606 | Void xCheckGSParameters(); |
---|
| 607 | Void setWaveFrontSynchro(Int iWaveFrontSynchro) { m_iWaveFrontSynchro = iWaveFrontSynchro; } |
---|
| 608 | Int getWaveFrontsynchro() { return m_iWaveFrontSynchro; } |
---|
| 609 | Void setWaveFrontSubstreams(Int iWaveFrontSubstreams) { m_iWaveFrontSubstreams = iWaveFrontSubstreams; } |
---|
| 610 | Int getWaveFrontSubstreams() { return m_iWaveFrontSubstreams; } |
---|
| 611 | Void setDecodedPictureHashSEIEnabled(Int b) { m_decodedPictureHashSEIEnabled = b; } |
---|
| 612 | Int getDecodedPictureHashSEIEnabled() { return m_decodedPictureHashSEIEnabled; } |
---|
| 613 | Void setBufferingPeriodSEIEnabled(Int b) { m_bufferingPeriodSEIEnabled = b; } |
---|
| 614 | Int getBufferingPeriodSEIEnabled() { return m_bufferingPeriodSEIEnabled; } |
---|
| 615 | Void setPictureTimingSEIEnabled(Int b) { m_pictureTimingSEIEnabled = b; } |
---|
| 616 | Int getPictureTimingSEIEnabled() { return m_pictureTimingSEIEnabled; } |
---|
| 617 | Void setRecoveryPointSEIEnabled(Int b) { m_recoveryPointSEIEnabled = b; } |
---|
| 618 | Int getRecoveryPointSEIEnabled() { return m_recoveryPointSEIEnabled; } |
---|
| 619 | #if J0149_TONE_MAPPING_SEI |
---|
| 620 | Void setToneMappingInfoSEIEnabled(Bool b) { m_toneMappingInfoSEIEnabled = b; } |
---|
| 621 | Bool getToneMappingInfoSEIEnabled() { return m_toneMappingInfoSEIEnabled; } |
---|
| 622 | Void setTMISEIToneMapId(Int b) { m_toneMapId = b; } |
---|
| 623 | Int getTMISEIToneMapId() { return m_toneMapId; } |
---|
| 624 | Void setTMISEIToneMapCancelFlag(Bool b) { m_toneMapCancelFlag=b; } |
---|
| 625 | Bool getTMISEIToneMapCancelFlag() { return m_toneMapCancelFlag; } |
---|
| 626 | Void setTMISEIToneMapPersistenceFlag(Bool b) { m_toneMapPersistenceFlag = b; } |
---|
| 627 | Bool getTMISEIToneMapPersistenceFlag() { return m_toneMapPersistenceFlag; } |
---|
| 628 | Void setTMISEICodedDataBitDepth(Int b) { m_codedDataBitDepth = b; } |
---|
| 629 | Int getTMISEICodedDataBitDepth() { return m_codedDataBitDepth; } |
---|
| 630 | Void setTMISEITargetBitDepth(Int b) { m_targetBitDepth = b; } |
---|
| 631 | Int getTMISEITargetBitDepth() { return m_targetBitDepth; } |
---|
| 632 | Void setTMISEIModelID(Int b) { m_modelId = b; } |
---|
| 633 | Int getTMISEIModelID() { return m_modelId; } |
---|
| 634 | Void setTMISEIMinValue(Int b) { m_minValue = b; } |
---|
| 635 | Int getTMISEIMinValue() { return m_minValue; } |
---|
| 636 | Void setTMISEIMaxValue(Int b) { m_maxValue = b; } |
---|
| 637 | Int getTMISEIMaxValue() { return m_maxValue; } |
---|
| 638 | Void setTMISEISigmoidMidpoint(Int b) { m_sigmoidMidpoint = b; } |
---|
| 639 | Int getTMISEISigmoidMidpoint() { return m_sigmoidMidpoint; } |
---|
| 640 | Void setTMISEISigmoidWidth(Int b) { m_sigmoidWidth = b; } |
---|
| 641 | Int getTMISEISigmoidWidth() { return m_sigmoidWidth; } |
---|
| 642 | Void setTMISEIStartOfCodedInterva( Int* p ) { m_startOfCodedInterval = p; } |
---|
| 643 | Int* getTMISEIStartOfCodedInterva() { return m_startOfCodedInterval; } |
---|
| 644 | Void setTMISEINumPivots(Int b) { m_numPivots = b; } |
---|
| 645 | Int getTMISEINumPivots() { return m_numPivots; } |
---|
| 646 | Void setTMISEICodedPivotValue( Int* p ) { m_codedPivotValue = p; } |
---|
| 647 | Int* getTMISEICodedPivotValue() { return m_codedPivotValue; } |
---|
| 648 | Void setTMISEITargetPivotValue( Int* p ) { m_targetPivotValue = p; } |
---|
| 649 | Int* getTMISEITargetPivotValue() { return m_targetPivotValue; } |
---|
| 650 | Void setTMISEICameraIsoSpeedIdc(Int b) { m_cameraIsoSpeedIdc = b; } |
---|
| 651 | Int getTMISEICameraIsoSpeedIdc() { return m_cameraIsoSpeedIdc; } |
---|
| 652 | Void setTMISEICameraIsoSpeedValue(Int b) { m_cameraIsoSpeedValue = b; } |
---|
| 653 | Int getTMISEICameraIsoSpeedValue() { return m_cameraIsoSpeedValue; } |
---|
| 654 | Void setTMISEIExposureCompensationValueSignFlag(Int b) { m_exposureCompensationValueSignFlag = b; } |
---|
| 655 | Int getTMISEIExposureCompensationValueSignFlag() { return m_exposureCompensationValueSignFlag; } |
---|
| 656 | Void setTMISEIExposureCompensationValueNumerator(Int b) { m_exposureCompensationValueNumerator = b; } |
---|
| 657 | Int getTMISEIExposureCompensationValueNumerator() { return m_exposureCompensationValueNumerator; } |
---|
| 658 | Void setTMISEIExposureCompensationValueDenomIdc(Int b) { m_exposureCompensationValueDenomIdc =b; } |
---|
| 659 | Int getTMISEIExposureCompensationValueDenomIdc() { return m_exposureCompensationValueDenomIdc; } |
---|
| 660 | Void setTMISEIRefScreenLuminanceWhite(Int b) { m_refScreenLuminanceWhite = b; } |
---|
| 661 | Int getTMISEIRefScreenLuminanceWhite() { return m_refScreenLuminanceWhite; } |
---|
| 662 | Void setTMISEIExtendedRangeWhiteLevel(Int b) { m_extendedRangeWhiteLevel = b; } |
---|
| 663 | Int getTMISEIExtendedRangeWhiteLevel() { return m_extendedRangeWhiteLevel; } |
---|
| 664 | Void setTMISEINominalBlackLevelLumaCodeValue(Int b) { m_nominalBlackLevelLumaCodeValue = b; } |
---|
| 665 | Int getTMISEINominalBlackLevelLumaCodeValue() { return m_nominalBlackLevelLumaCodeValue; } |
---|
| 666 | Void setTMISEINominalWhiteLevelLumaCodeValue(Int b) { m_nominalWhiteLevelLumaCodeValue = b; } |
---|
| 667 | Int getTMISEINominalWhiteLevelLumaCodeValue() { return m_nominalWhiteLevelLumaCodeValue; } |
---|
| 668 | Void setTMISEIExtendedWhiteLevelLumaCodeValue(Int b) { m_extendedWhiteLevelLumaCodeValue =b; } |
---|
| 669 | Int getTMISEIExtendedWhiteLevelLumaCodeValue() { return m_extendedWhiteLevelLumaCodeValue; } |
---|
| 670 | #endif |
---|
| 671 | Void setFramePackingArrangementSEIEnabled(Int b) { m_framePackingSEIEnabled = b; } |
---|
| 672 | Int getFramePackingArrangementSEIEnabled() { return m_framePackingSEIEnabled; } |
---|
| 673 | Void setFramePackingArrangementSEIType(Int b) { m_framePackingSEIType = b; } |
---|
| 674 | Int getFramePackingArrangementSEIType() { return m_framePackingSEIType; } |
---|
| 675 | Void setFramePackingArrangementSEIId(Int b) { m_framePackingSEIId = b; } |
---|
| 676 | Int getFramePackingArrangementSEIId() { return m_framePackingSEIId; } |
---|
| 677 | Void setFramePackingArrangementSEIQuincunx(Int b) { m_framePackingSEIQuincunx = b; } |
---|
| 678 | Int getFramePackingArrangementSEIQuincunx() { return m_framePackingSEIQuincunx; } |
---|
| 679 | Void setFramePackingArrangementSEIInterpretation(Int b) { m_framePackingSEIInterpretation = b; } |
---|
| 680 | Int getFramePackingArrangementSEIInterpretation() { return m_framePackingSEIInterpretation; } |
---|
| 681 | Void setDisplayOrientationSEIAngle(Int b) { m_displayOrientationSEIAngle = b; } |
---|
| 682 | Int getDisplayOrientationSEIAngle() { return m_displayOrientationSEIAngle; } |
---|
| 683 | Void setTemporalLevel0IndexSEIEnabled(Int b) { m_temporalLevel0IndexSEIEnabled = b; } |
---|
| 684 | Int getTemporalLevel0IndexSEIEnabled() { return m_temporalLevel0IndexSEIEnabled; } |
---|
| 685 | Void setGradualDecodingRefreshInfoEnabled(Int b) { m_gradualDecodingRefreshInfoEnabled = b; } |
---|
| 686 | Int getGradualDecodingRefreshInfoEnabled() { return m_gradualDecodingRefreshInfoEnabled; } |
---|
| 687 | Void setDecodingUnitInfoSEIEnabled(Int b) { m_decodingUnitInfoSEIEnabled = b; } |
---|
| 688 | Int getDecodingUnitInfoSEIEnabled() { return m_decodingUnitInfoSEIEnabled; } |
---|
| 689 | #if L0208_SOP_DESCRIPTION_SEI |
---|
| 690 | Void setSOPDescriptionSEIEnabled(Int b) { m_SOPDescriptionSEIEnabled = b; } |
---|
| 691 | Int getSOPDescriptionSEIEnabled() { return m_SOPDescriptionSEIEnabled; } |
---|
| 692 | #endif |
---|
| 693 | #if K0180_SCALABLE_NESTING_SEI |
---|
| 694 | Void setScalableNestingSEIEnabled(Int b) { m_scalableNestingSEIEnabled = b; } |
---|
| 695 | Int getScalableNestingSEIEnabled() { return m_scalableNestingSEIEnabled; } |
---|
| 696 | #endif |
---|
| 697 | Void setUseWP ( Bool b ) { m_useWeightedPred = b; } |
---|
| 698 | Void setWPBiPred ( Bool b ) { m_useWeightedBiPred = b; } |
---|
| 699 | Bool getUseWP () { return m_useWeightedPred; } |
---|
| 700 | Bool getWPBiPred () { return m_useWeightedBiPred; } |
---|
| 701 | Void setLog2ParallelMergeLevelMinus2 ( UInt u ) { m_log2ParallelMergeLevelMinus2 = u; } |
---|
| 702 | UInt getLog2ParallelMergeLevelMinus2 () { return m_log2ParallelMergeLevelMinus2; } |
---|
| 703 | Void setMaxNumMergeCand ( UInt u ) { m_maxNumMergeCand = u; } |
---|
| 704 | UInt getMaxNumMergeCand () { return m_maxNumMergeCand; } |
---|
| 705 | Void setUseScalingListId ( Int u ) { m_useScalingListId = u; } |
---|
| 706 | Int getUseScalingListId () { return m_useScalingListId; } |
---|
| 707 | Void setScalingListFile ( Char* pch ){ m_scalingListFile = pch; } |
---|
| 708 | Char* getScalingListFile () { return m_scalingListFile; } |
---|
| 709 | Void setTMVPModeId ( Int u ) { m_TMVPModeId = u; } |
---|
| 710 | Int getTMVPModeId () { return m_TMVPModeId; } |
---|
| 711 | Void setSignHideFlag( Int signHideFlag ) { m_signHideFlag = signHideFlag; } |
---|
| 712 | Int getSignHideFlag() { return m_signHideFlag; } |
---|
| 713 | #if RATE_CONTROL_LAMBDA_DOMAIN |
---|
| 714 | Bool getUseRateCtrl () { return m_RCEnableRateControl; } |
---|
| 715 | Void setUseRateCtrl ( Bool b ) { m_RCEnableRateControl = b; } |
---|
| 716 | Int getTargetBitrate () { return m_RCTargetBitrate; } |
---|
| 717 | Void setTargetBitrate ( Int bitrate ) { m_RCTargetBitrate = bitrate; } |
---|
| 718 | Bool getKeepHierBit () { return m_RCKeepHierarchicalBit; } |
---|
| 719 | Void setKeepHierBit ( Bool b ) { m_RCKeepHierarchicalBit = b; } |
---|
| 720 | Bool getLCULevelRC () { return m_RCLCULevelRC; } |
---|
| 721 | Void setLCULevelRC ( Bool b ) { m_RCLCULevelRC = b; } |
---|
| 722 | Bool getUseLCUSeparateModel () { return m_RCUseLCUSeparateModel; } |
---|
| 723 | Void setUseLCUSeparateModel ( Bool b ) { m_RCUseLCUSeparateModel = b; } |
---|
| 724 | Int getInitialQP () { return m_RCInitialQP; } |
---|
| 725 | Void setInitialQP ( Int QP ) { m_RCInitialQP = QP; } |
---|
| 726 | Bool getForceIntraQP () { return m_RCForceIntraQP; } |
---|
| 727 | Void setForceIntraQP ( Bool b ) { m_RCForceIntraQP = b; } |
---|
| 728 | #else |
---|
| 729 | Bool getUseRateCtrl () { return m_enableRateCtrl; } |
---|
| 730 | Void setUseRateCtrl (Bool flag) { m_enableRateCtrl = flag; } |
---|
| 731 | Int getTargetBitrate () { return m_targetBitrate; } |
---|
| 732 | Void setTargetBitrate (Int target) { m_targetBitrate = target; } |
---|
| 733 | Int getNumLCUInUnit () { return m_numLCUInUnit; } |
---|
| 734 | Void setNumLCUInUnit (Int numLCUs) { m_numLCUInUnit = numLCUs; } |
---|
| 735 | #endif |
---|
| 736 | Bool getTransquantBypassEnableFlag() { return m_TransquantBypassEnableFlag; } |
---|
| 737 | Void setTransquantBypassEnableFlag(Bool flag) { m_TransquantBypassEnableFlag = flag; } |
---|
| 738 | Bool getCUTransquantBypassFlagValue() { return m_CUTransquantBypassFlagValue; } |
---|
| 739 | Void setCUTransquantBypassFlagValue(Bool flag) { m_CUTransquantBypassFlagValue = flag; } |
---|
| 740 | Void setVPS(TComVPS *p) { m_cVPS = *p; } |
---|
| 741 | TComVPS *getVPS() { return &m_cVPS; } |
---|
| 742 | Void setUseRecalculateQPAccordingToLambda ( Bool b ) { m_recalculateQPAccordingToLambda = b; } |
---|
| 743 | Bool getUseRecalculateQPAccordingToLambda () { return m_recalculateQPAccordingToLambda; } |
---|
| 744 | |
---|
| 745 | Void setUseStrongIntraSmoothing ( Bool b ) { m_useStrongIntraSmoothing = b; } |
---|
| 746 | Bool getUseStrongIntraSmoothing () { return m_useStrongIntraSmoothing; } |
---|
| 747 | |
---|
| 748 | Void setActiveParameterSetsSEIEnabled ( Int b ) { m_activeParameterSetsSEIEnabled = b; } |
---|
| 749 | Int getActiveParameterSetsSEIEnabled () { return m_activeParameterSetsSEIEnabled; } |
---|
| 750 | Bool getVuiParametersPresentFlag() { return m_vuiParametersPresentFlag; } |
---|
| 751 | Void setVuiParametersPresentFlag(Bool i) { m_vuiParametersPresentFlag = i; } |
---|
| 752 | Bool getAspectRatioInfoPresentFlag() { return m_aspectRatioInfoPresentFlag; } |
---|
| 753 | Void setAspectRatioInfoPresentFlag(Bool i) { m_aspectRatioInfoPresentFlag = i; } |
---|
| 754 | Int getAspectRatioIdc() { return m_aspectRatioIdc; } |
---|
| 755 | Void setAspectRatioIdc(Int i) { m_aspectRatioIdc = i; } |
---|
| 756 | Int getSarWidth() { return m_sarWidth; } |
---|
| 757 | Void setSarWidth(Int i) { m_sarWidth = i; } |
---|
| 758 | Int getSarHeight() { return m_sarHeight; } |
---|
| 759 | Void setSarHeight(Int i) { m_sarHeight = i; } |
---|
| 760 | Bool getOverscanInfoPresentFlag() { return m_overscanInfoPresentFlag; } |
---|
| 761 | Void setOverscanInfoPresentFlag(Bool i) { m_overscanInfoPresentFlag = i; } |
---|
| 762 | Bool getOverscanAppropriateFlag() { return m_overscanAppropriateFlag; } |
---|
| 763 | Void setOverscanAppropriateFlag(Bool i) { m_overscanAppropriateFlag = i; } |
---|
| 764 | Bool getVideoSignalTypePresentFlag() { return m_videoSignalTypePresentFlag; } |
---|
| 765 | Void setVideoSignalTypePresentFlag(Bool i) { m_videoSignalTypePresentFlag = i; } |
---|
| 766 | Int getVideoFormat() { return m_videoFormat; } |
---|
| 767 | Void setVideoFormat(Int i) { m_videoFormat = i; } |
---|
| 768 | Bool getVideoFullRangeFlag() { return m_videoFullRangeFlag; } |
---|
| 769 | Void setVideoFullRangeFlag(Bool i) { m_videoFullRangeFlag = i; } |
---|
| 770 | Bool getColourDescriptionPresentFlag() { return m_colourDescriptionPresentFlag; } |
---|
| 771 | Void setColourDescriptionPresentFlag(Bool i) { m_colourDescriptionPresentFlag = i; } |
---|
| 772 | Int getColourPrimaries() { return m_colourPrimaries; } |
---|
| 773 | Void setColourPrimaries(Int i) { m_colourPrimaries = i; } |
---|
| 774 | Int getTransferCharacteristics() { return m_transferCharacteristics; } |
---|
| 775 | Void setTransferCharacteristics(Int i) { m_transferCharacteristics = i; } |
---|
| 776 | Int getMatrixCoefficients() { return m_matrixCoefficients; } |
---|
| 777 | Void setMatrixCoefficients(Int i) { m_matrixCoefficients = i; } |
---|
| 778 | Bool getChromaLocInfoPresentFlag() { return m_chromaLocInfoPresentFlag; } |
---|
| 779 | Void setChromaLocInfoPresentFlag(Bool i) { m_chromaLocInfoPresentFlag = i; } |
---|
| 780 | Int getChromaSampleLocTypeTopField() { return m_chromaSampleLocTypeTopField; } |
---|
| 781 | Void setChromaSampleLocTypeTopField(Int i) { m_chromaSampleLocTypeTopField = i; } |
---|
| 782 | Int getChromaSampleLocTypeBottomField() { return m_chromaSampleLocTypeBottomField; } |
---|
| 783 | Void setChromaSampleLocTypeBottomField(Int i) { m_chromaSampleLocTypeBottomField = i; } |
---|
| 784 | Bool getNeutralChromaIndicationFlag() { return m_neutralChromaIndicationFlag; } |
---|
| 785 | Void setNeutralChromaIndicationFlag(Bool i) { m_neutralChromaIndicationFlag = i; } |
---|
| 786 | Window &getDefaultDisplayWindow() { return m_defaultDisplayWindow; } |
---|
| 787 | Void setDefaultDisplayWindow (Int offsetLeft, Int offsetRight, Int offsetTop, Int offsetBottom ) { m_defaultDisplayWindow.setWindow (offsetLeft, offsetRight, offsetTop, offsetBottom); } |
---|
| 788 | Bool getFrameFieldInfoPresentFlag() { return m_frameFieldInfoPresentFlag; } |
---|
| 789 | Void setFrameFieldInfoPresentFlag(Bool i) { m_frameFieldInfoPresentFlag = i; } |
---|
| 790 | Bool getPocProportionalToTimingFlag() { return m_pocProportionalToTimingFlag; } |
---|
| 791 | Void setPocProportionalToTimingFlag(Bool x) { m_pocProportionalToTimingFlag = x; } |
---|
| 792 | Int getNumTicksPocDiffOneMinus1() { return m_numTicksPocDiffOneMinus1; } |
---|
| 793 | Void setNumTicksPocDiffOneMinus1(Int x) { m_numTicksPocDiffOneMinus1 = x; } |
---|
| 794 | Bool getBitstreamRestrictionFlag() { return m_bitstreamRestrictionFlag; } |
---|
| 795 | Void setBitstreamRestrictionFlag(Bool i) { m_bitstreamRestrictionFlag = i; } |
---|
| 796 | Bool getTilesFixedStructureFlag() { return m_tilesFixedStructureFlag; } |
---|
| 797 | Void setTilesFixedStructureFlag(Bool i) { m_tilesFixedStructureFlag = i; } |
---|
| 798 | Bool getMotionVectorsOverPicBoundariesFlag() { return m_motionVectorsOverPicBoundariesFlag; } |
---|
| 799 | Void setMotionVectorsOverPicBoundariesFlag(Bool i) { m_motionVectorsOverPicBoundariesFlag = i; } |
---|
| 800 | Int getMinSpatialSegmentationIdc() { return m_minSpatialSegmentationIdc; } |
---|
| 801 | Void setMinSpatialSegmentationIdc(Int i) { m_minSpatialSegmentationIdc = i; } |
---|
| 802 | Int getMaxBytesPerPicDenom() { return m_maxBytesPerPicDenom; } |
---|
| 803 | Void setMaxBytesPerPicDenom(Int i) { m_maxBytesPerPicDenom = i; } |
---|
| 804 | Int getMaxBitsPerMinCuDenom() { return m_maxBitsPerMinCuDenom; } |
---|
| 805 | Void setMaxBitsPerMinCuDenom(Int i) { m_maxBitsPerMinCuDenom = i; } |
---|
| 806 | Int getLog2MaxMvLengthHorizontal() { return m_log2MaxMvLengthHorizontal; } |
---|
| 807 | Void setLog2MaxMvLengthHorizontal(Int i) { m_log2MaxMvLengthHorizontal = i; } |
---|
| 808 | Int getLog2MaxMvLengthVertical() { return m_log2MaxMvLengthVertical; } |
---|
| 809 | Void setLog2MaxMvLengthVertical(Int i) { m_log2MaxMvLengthVertical = i; } |
---|
| 810 | |
---|
| 811 | #if L0046_CONSTRAINT_FLAGS |
---|
| 812 | Bool getProgressiveSourceFlag() const { return m_progressiveSourceFlag; } |
---|
| 813 | Void setProgressiveSourceFlag(Bool b) { m_progressiveSourceFlag = b; } |
---|
| 814 | |
---|
| 815 | Bool getInterlacedSourceFlag() const { return m_interlacedSourceFlag; } |
---|
| 816 | Void setInterlacedSourceFlag(Bool b) { m_interlacedSourceFlag = b; } |
---|
| 817 | |
---|
| 818 | Bool getNonPackedConstraintFlag() const { return m_nonPackedConstraintFlag; } |
---|
| 819 | Void setNonPackedConstraintFlag(Bool b) { m_nonPackedConstraintFlag = b; } |
---|
| 820 | |
---|
| 821 | Bool getFrameOnlyConstraintFlag() const { return m_frameOnlyConstraintFlag; } |
---|
| 822 | Void setFrameOnlyConstraintFlag(Bool b) { m_frameOnlyConstraintFlag = b; } |
---|
| 823 | #endif |
---|
| 824 | |
---|
| 825 | #if SVC_EXTENSION |
---|
| 826 | UInt getLayerId () { return m_layerId; } |
---|
| 827 | Void setLayerId (UInt layer) { m_layerId = layer; } |
---|
| 828 | UInt getNumLayer () { return m_numLayer; } |
---|
| 829 | Void setNumLayer (UInt uiNum) { m_numLayer = uiNum; } |
---|
| 830 | Void setConformanceMode (Int mode) { m_conformanceMode = mode; } |
---|
| 831 | Void setConformanceWindow(Window& conformanceWindow ) { m_conformanceWindow = conformanceWindow; } |
---|
| 832 | #endif |
---|
| 833 | #if REF_IDX_FRAMEWORK |
---|
| 834 | Void setElRapSliceTypeB(Int bEnabled) {m_elRapSliceBEnabled = bEnabled;} |
---|
| 835 | Int getElRapSliceTypeB() {return m_elRapSliceBEnabled;} |
---|
| 836 | #endif |
---|
| 837 | }; |
---|
| 838 | |
---|
| 839 | //! \} |
---|
| 840 | |
---|
| 841 | #endif // !defined(AFX_TENCCFG_H__6B99B797_F4DA_4E46_8E78_7656339A6C41__INCLUDED_) |
---|