[5] | 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 |
---|
[56] | 4 | * granted under this license. |
---|
[5] | 5 | * |
---|
[872] | 6 | * Copyright (c) 2010-2014, ITU/ISO/IEC |
---|
[5] | 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. |
---|
[56] | 17 | * * Neither the name of the ITU/ISO/IEC nor the names of its contributors may |
---|
[5] | 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 | */ |
---|
[2] | 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 | |
---|
[56] | 45 | #include "TLibCommon/CommonDef.h" |
---|
[608] | 46 | #include "TLibCommon/TComSlice.h" |
---|
[2] | 47 | #include <assert.h> |
---|
[608] | 48 | #if H_3D |
---|
| 49 | #include "TAppCommon/TAppComCamPara.h" |
---|
| 50 | #include "TLibRenderer/TRenModSetupStrParser.h" |
---|
| 51 | #endif |
---|
[2] | 52 | |
---|
[608] | 53 | struct GOPEntry |
---|
[56] | 54 | { |
---|
| 55 | Int m_POC; |
---|
| 56 | Int m_QPOffset; |
---|
| 57 | Double m_QPFactor; |
---|
[608] | 58 | Int m_tcOffsetDiv2; |
---|
| 59 | Int m_betaOffsetDiv2; |
---|
[56] | 60 | Int m_temporalId; |
---|
| 61 | Bool m_refPic; |
---|
| 62 | Int m_numRefPicsActive; |
---|
| 63 | Char m_sliceType; |
---|
| 64 | Int m_numRefPics; |
---|
| 65 | Int m_referencePics[MAX_NUM_REF_PICS]; |
---|
| 66 | Int m_usedByCurrPic[MAX_NUM_REF_PICS]; |
---|
[608] | 67 | #if AUTO_INTER_RPS |
---|
| 68 | Int m_interRPSPrediction; |
---|
| 69 | #else |
---|
[56] | 70 | Bool m_interRPSPrediction; |
---|
[608] | 71 | #endif |
---|
[56] | 72 | Int m_deltaRPS; |
---|
| 73 | Int m_numRefIdc; |
---|
| 74 | Int m_refIdc[MAX_NUM_REF_PICS+1]; |
---|
[608] | 75 | #if H_MV |
---|
| 76 | Int m_numActiveRefLayerPics; |
---|
| 77 | Int m_interLayerPredLayerIdc [MAX_NUM_REF_PICS]; |
---|
| 78 | Int m_interViewRefPosL[2][MAX_NUM_REF_PICS]; |
---|
| 79 | #endif |
---|
| 80 | GOPEntry() |
---|
[56] | 81 | : m_POC(-1) |
---|
[608] | 82 | , m_QPOffset(0) |
---|
| 83 | , m_QPFactor(0) |
---|
| 84 | , m_tcOffsetDiv2(0) |
---|
| 85 | , m_betaOffsetDiv2(0) |
---|
| 86 | , m_temporalId(0) |
---|
| 87 | , m_refPic(false) |
---|
| 88 | , m_numRefPicsActive(0) |
---|
| 89 | , m_sliceType('P') |
---|
| 90 | , m_numRefPics(0) |
---|
| 91 | , m_interRPSPrediction(false) |
---|
| 92 | , m_deltaRPS(0) |
---|
| 93 | , m_numRefIdc(0) |
---|
| 94 | #if H_MV |
---|
| 95 | , m_numActiveRefLayerPics(0) |
---|
| 96 | #endif |
---|
[56] | 97 | { |
---|
| 98 | ::memset( m_referencePics, 0, sizeof(m_referencePics) ); |
---|
| 99 | ::memset( m_usedByCurrPic, 0, sizeof(m_usedByCurrPic) ); |
---|
| 100 | ::memset( m_refIdc, 0, sizeof(m_refIdc) ); |
---|
[608] | 101 | #if H_MV |
---|
| 102 | ::memset( m_interLayerPredLayerIdc, 0, sizeof(m_interLayerPredLayerIdc) ); |
---|
| 103 | ::memset( m_interViewRefPosL[0], -1, sizeof(m_interViewRefPosL[0]) ); |
---|
| 104 | ::memset( m_interViewRefPosL[1], -1, sizeof(m_interViewRefPosL[1]) ); |
---|
| 105 | #endif |
---|
[56] | 106 | } |
---|
| 107 | }; |
---|
[2] | 108 | |
---|
[608] | 109 | std::istringstream &operator>>(std::istringstream &in, GOPEntry &entry); //input |
---|
[56] | 110 | //! \ingroup TLibEncoder |
---|
| 111 | //! \{ |
---|
| 112 | |
---|
[2] | 113 | // ==================================================================================================================== |
---|
| 114 | // Class definition |
---|
| 115 | // ==================================================================================================================== |
---|
| 116 | |
---|
| 117 | /// encoder configuration class |
---|
| 118 | class TEncCfg |
---|
| 119 | { |
---|
| 120 | protected: |
---|
| 121 | //==== File I/O ======== |
---|
| 122 | Int m_iFrameRate; |
---|
| 123 | Int m_FrameSkip; |
---|
| 124 | Int m_iSourceWidth; |
---|
| 125 | Int m_iSourceHeight; |
---|
[608] | 126 | Window m_conformanceWindow; |
---|
| 127 | Int m_framesToBeEncoded; |
---|
[56] | 128 | Double m_adLambdaModifier[ MAX_TLAYER ]; |
---|
[2] | 129 | |
---|
[608] | 130 | /* profile & level */ |
---|
| 131 | Profile::Name m_profile; |
---|
| 132 | Level::Tier m_levelTier; |
---|
| 133 | Level::Name m_level; |
---|
| 134 | Bool m_progressiveSourceFlag; |
---|
| 135 | Bool m_interlacedSourceFlag; |
---|
| 136 | Bool m_nonPackedConstraintFlag; |
---|
| 137 | Bool m_frameOnlyConstraintFlag; |
---|
| 138 | |
---|
[2] | 139 | //====== Coding Structure ======== |
---|
[56] | 140 | UInt m_uiIntraPeriod; |
---|
[2] | 141 | UInt m_uiDecodingRefreshType; ///< the type of decoding refresh employed for the random access. |
---|
[56] | 142 | Int m_iGOPSize; |
---|
[608] | 143 | #if H_MV |
---|
| 144 | GOPEntry m_GOPList[MAX_GOP+1]; |
---|
| 145 | #else |
---|
| 146 | GOPEntry m_GOPList[MAX_GOP]; |
---|
| 147 | #endif |
---|
[56] | 148 | Int m_extraRPSs; |
---|
| 149 | Int m_maxDecPicBuffering[MAX_TLAYER]; |
---|
| 150 | Int m_numReorderPics[MAX_TLAYER]; |
---|
| 151 | |
---|
[2] | 152 | Int m_iQP; // if (AdaptiveQP == OFF) |
---|
[56] | 153 | |
---|
[2] | 154 | Int m_aiPad[2]; |
---|
[56] | 155 | |
---|
[2] | 156 | |
---|
[56] | 157 | Int m_iMaxRefPicNum; ///< this is used to mimic the sliding mechanism used by the decoder |
---|
| 158 | // TODO: We need to have a common sliding mechanism used by both the encoder and decoder |
---|
| 159 | |
---|
| 160 | Int m_maxTempLayer; ///< Max temporal layer |
---|
| 161 | Bool m_useAMP; |
---|
[2] | 162 | //======= Transform ============= |
---|
| 163 | UInt m_uiQuadtreeTULog2MaxSize; |
---|
| 164 | UInt m_uiQuadtreeTULog2MinSize; |
---|
| 165 | UInt m_uiQuadtreeTUMaxDepthInter; |
---|
| 166 | UInt m_uiQuadtreeTUMaxDepthIntra; |
---|
[56] | 167 | |
---|
[2] | 168 | //====== Loop/Deblock Filter ======== |
---|
| 169 | Bool m_bLoopFilterDisable; |
---|
[608] | 170 | Bool m_loopFilterOffsetInPPS; |
---|
[56] | 171 | Int m_loopFilterBetaOffsetDiv2; |
---|
| 172 | Int m_loopFilterTcOffsetDiv2; |
---|
| 173 | Bool m_DeblockingFilterControlPresent; |
---|
[608] | 174 | Bool m_DeblockingFilterMetric; |
---|
[2] | 175 | Bool m_bUseSAO; |
---|
[56] | 176 | Int m_maxNumOffsetsPerPic; |
---|
[443] | 177 | Bool m_saoLcuBoundary; |
---|
[2] | 178 | //====== Motion search ======== |
---|
| 179 | Int m_iFastSearch; // 0:Full search 1:Diamond 2:PMVFAST |
---|
| 180 | Int m_iSearchRange; // 0:Full frame |
---|
| 181 | Int m_bipredSearchRange; |
---|
[608] | 182 | |
---|
[56] | 183 | //====== Quality control ======== |
---|
[2] | 184 | Int m_iMaxDeltaQP; // Max. absolute delta QP (1:default) |
---|
[56] | 185 | Int m_iMaxCuDQPDepth; // Max. depth for a minimum CuDQP (0:default) |
---|
[2] | 186 | |
---|
[608] | 187 | Int m_chromaCbQpOffset; // Chroma Cb QP Offset (0:default) |
---|
| 188 | Int m_chromaCrQpOffset; // Chroma Cr Qp Offset (0:default) |
---|
[56] | 189 | |
---|
| 190 | #if ADAPTIVE_QP_SELECTION |
---|
| 191 | Bool m_bUseAdaptQpSelect; |
---|
| 192 | #endif |
---|
| 193 | |
---|
| 194 | Bool m_bUseAdaptiveQP; |
---|
| 195 | Int m_iQPAdaptationRange; |
---|
| 196 | |
---|
[2] | 197 | //====== Tool list ======== |
---|
| 198 | Bool m_bUseASR; |
---|
| 199 | Bool m_bUseHADME; |
---|
[608] | 200 | Bool m_useRDOQ; |
---|
| 201 | Bool m_useRDOQTS; |
---|
| 202 | UInt m_rdPenalty; |
---|
[2] | 203 | Bool m_bUseFastEnc; |
---|
[56] | 204 | Bool m_bUseEarlyCU; |
---|
| 205 | Bool m_useFastDecisionForMerge; |
---|
| 206 | Bool m_bUseCbfFastMode; |
---|
[608] | 207 | Bool m_useEarlySkipDetection; |
---|
| 208 | Bool m_useTransformSkip; |
---|
| 209 | Bool m_useTransformSkipFast; |
---|
[2] | 210 | Int* m_aidQP; |
---|
| 211 | UInt m_uiDeltaQpRD; |
---|
[56] | 212 | |
---|
[2] | 213 | Bool m_bUseConstrainedIntraPred; |
---|
[56] | 214 | Bool m_usePCM; |
---|
| 215 | UInt m_pcmLog2MaxSize; |
---|
| 216 | UInt m_uiPCMLog2MinSize; |
---|
[2] | 217 | //====== Slice ======== |
---|
[608] | 218 | Int m_sliceMode; |
---|
| 219 | Int m_sliceArgument; |
---|
| 220 | //====== Dependent Slice ======== |
---|
| 221 | Int m_sliceSegmentMode; |
---|
| 222 | Int m_sliceSegmentArgument; |
---|
[2] | 223 | Bool m_bLFCrossSliceBoundaryFlag; |
---|
| 224 | |
---|
[56] | 225 | Bool m_bPCMInputBitDepthFlag; |
---|
| 226 | UInt m_uiPCMBitDepthLuma; |
---|
| 227 | UInt m_uiPCMBitDepthChroma; |
---|
| 228 | Bool m_bPCMFilterDisableFlag; |
---|
[608] | 229 | Bool m_loopFilterAcrossTilesEnabledFlag; |
---|
[1084] | 230 | Bool m_tileUniformSpacingFlag; |
---|
[56] | 231 | Int m_iNumColumnsMinus1; |
---|
| 232 | Int m_iNumRowsMinus1; |
---|
[1084] | 233 | std::vector<Int> m_tileColumnWidth; |
---|
| 234 | std::vector<Int> m_tileRowHeight; |
---|
[56] | 235 | |
---|
| 236 | Int m_iWaveFrontSynchro; |
---|
| 237 | Int m_iWaveFrontSubstreams; |
---|
| 238 | |
---|
[608] | 239 | Int m_decodedPictureHashSEIEnabled; ///< Checksum(3)/CRC(2)/MD5(1)/disable(0) acting on decoded picture hash SEI message |
---|
| 240 | Int m_bufferingPeriodSEIEnabled; |
---|
| 241 | Int m_pictureTimingSEIEnabled; |
---|
| 242 | Int m_recoveryPointSEIEnabled; |
---|
| 243 | Bool m_toneMappingInfoSEIEnabled; |
---|
| 244 | Int m_toneMapId; |
---|
| 245 | Bool m_toneMapCancelFlag; |
---|
| 246 | Bool m_toneMapPersistenceFlag; |
---|
| 247 | Int m_codedDataBitDepth; |
---|
| 248 | Int m_targetBitDepth; |
---|
| 249 | Int m_modelId; |
---|
| 250 | Int m_minValue; |
---|
| 251 | Int m_maxValue; |
---|
| 252 | Int m_sigmoidMidpoint; |
---|
| 253 | Int m_sigmoidWidth; |
---|
| 254 | Int m_numPivots; |
---|
| 255 | Int m_cameraIsoSpeedIdc; |
---|
| 256 | Int m_cameraIsoSpeedValue; |
---|
[964] | 257 | Int m_exposureIndexIdc; |
---|
| 258 | Int m_exposureIndexValue; |
---|
[608] | 259 | Int m_exposureCompensationValueSignFlag; |
---|
| 260 | Int m_exposureCompensationValueNumerator; |
---|
| 261 | Int m_exposureCompensationValueDenomIdc; |
---|
| 262 | Int m_refScreenLuminanceWhite; |
---|
| 263 | Int m_extendedRangeWhiteLevel; |
---|
| 264 | Int m_nominalBlackLevelLumaCodeValue; |
---|
| 265 | Int m_nominalWhiteLevelLumaCodeValue; |
---|
| 266 | Int m_extendedWhiteLevelLumaCodeValue; |
---|
| 267 | Int* m_startOfCodedInterval; |
---|
| 268 | Int* m_codedPivotValue; |
---|
| 269 | Int* m_targetPivotValue; |
---|
| 270 | Int m_framePackingSEIEnabled; |
---|
| 271 | Int m_framePackingSEIType; |
---|
| 272 | Int m_framePackingSEIId; |
---|
| 273 | Int m_framePackingSEIQuincunx; |
---|
| 274 | Int m_framePackingSEIInterpretation; |
---|
| 275 | Int m_displayOrientationSEIAngle; |
---|
| 276 | Int m_temporalLevel0IndexSEIEnabled; |
---|
| 277 | Int m_gradualDecodingRefreshInfoEnabled; |
---|
| 278 | Int m_decodingUnitInfoSEIEnabled; |
---|
| 279 | Int m_SOPDescriptionSEIEnabled; |
---|
| 280 | Int m_scalableNestingSEIEnabled; |
---|
[2] | 281 | //====== Weighted Prediction ======== |
---|
[608] | 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 |
---|
[56] | 286 | Int m_useScalingListId; ///< Using quantization matrix i.e. 0=off, 1=default, 2=file. |
---|
[608] | 287 | Char* m_scalingListFile; ///< quantization matrix file name |
---|
| 288 | Int m_TMVPModeId; |
---|
[56] | 289 | Int m_signHideFlag; |
---|
[608] | 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; |
---|
[655] | 297 | |
---|
| 298 | #if KWU_RC_MADPRED_E0227 |
---|
| 299 | UInt m_depthMADPred; |
---|
| 300 | #endif |
---|
| 301 | #if KWU_RC_VIEWRC_E0227 |
---|
| 302 | Bool m_bViewWiseRateCtrl; |
---|
| 303 | #endif |
---|
[608] | 304 | Bool m_TransquantBypassEnableFlag; ///< transquant_bypass_enable_flag setting in PPS. |
---|
[872] | 305 | Bool m_CUTransquantBypassFlagForce; ///< if transquant_bypass_enable_flag, then, if true, all CU transquant bypass flags will be set to true. |
---|
[608] | 306 | #if H_MV |
---|
| 307 | TComVPS* m_cVPS; ///< pointer to VPS, same for all layers |
---|
| 308 | #else |
---|
| 309 | TComVPS m_cVPS; |
---|
[56] | 310 | #endif |
---|
[758] | 311 | |
---|
[773] | 312 | #if H_3D |
---|
[758] | 313 | TComDLT* m_cDLT; |
---|
| 314 | #endif |
---|
| 315 | |
---|
[608] | 316 | Bool m_recalculateQPAccordingToLambda; ///< recalculate QP value according to the lambda value |
---|
| 317 | Int m_activeParameterSetsSEIEnabled; ///< enable active parameter set SEI message |
---|
| 318 | Bool m_vuiParametersPresentFlag; ///< enable generation of VUI parameters |
---|
| 319 | Bool m_aspectRatioInfoPresentFlag; ///< Signals whether aspect_ratio_idc is present |
---|
| 320 | Int m_aspectRatioIdc; ///< aspect_ratio_idc |
---|
| 321 | Int m_sarWidth; ///< horizontal size of the sample aspect ratio |
---|
| 322 | Int m_sarHeight; ///< vertical size of the sample aspect ratio |
---|
| 323 | Bool m_overscanInfoPresentFlag; ///< Signals whether overscan_appropriate_flag is present |
---|
| 324 | Bool m_overscanAppropriateFlag; ///< Indicates whether conformant decoded pictures are suitable for display using overscan |
---|
| 325 | Bool m_videoSignalTypePresentFlag; ///< Signals whether video_format, video_full_range_flag, and colour_description_present_flag are present |
---|
| 326 | Int m_videoFormat; ///< Indicates representation of pictures |
---|
| 327 | Bool m_videoFullRangeFlag; ///< Indicates the black level and range of luma and chroma signals |
---|
| 328 | Bool m_colourDescriptionPresentFlag; ///< Signals whether colour_primaries, transfer_characteristics and matrix_coefficients are present |
---|
| 329 | Int m_colourPrimaries; ///< Indicates chromaticity coordinates of the source primaries |
---|
| 330 | Int m_transferCharacteristics; ///< Indicates the opto-electronic transfer characteristics of the source |
---|
| 331 | Int m_matrixCoefficients; ///< Describes the matrix coefficients used in deriving luma and chroma from RGB primaries |
---|
| 332 | Bool m_chromaLocInfoPresentFlag; ///< Signals whether chroma_sample_loc_type_top_field and chroma_sample_loc_type_bottom_field are present |
---|
| 333 | Int m_chromaSampleLocTypeTopField; ///< Specifies the location of chroma samples for top field |
---|
| 334 | Int m_chromaSampleLocTypeBottomField; ///< Specifies the location of chroma samples for bottom field |
---|
| 335 | Bool m_neutralChromaIndicationFlag; ///< Indicates that the value of all decoded chroma samples is equal to 1<<(BitDepthCr-1) |
---|
| 336 | Window m_defaultDisplayWindow; ///< Represents the default display window parameters |
---|
| 337 | Bool m_frameFieldInfoPresentFlag; ///< Indicates that pic_struct and other field coding related values are present in picture timing SEI messages |
---|
| 338 | Bool m_pocProportionalToTimingFlag; ///< Indicates that the POC value is proportional to the output time w.r.t. first picture in CVS |
---|
| 339 | Int m_numTicksPocDiffOneMinus1; ///< Number of ticks minus 1 that for a POC difference of one |
---|
| 340 | Bool m_bitstreamRestrictionFlag; ///< Signals whether bitstream restriction parameters are present |
---|
| 341 | Bool m_tilesFixedStructureFlag; ///< Indicates that each active picture parameter set has the same values of the syntax elements related to tiles |
---|
| 342 | Bool m_motionVectorsOverPicBoundariesFlag; ///< Indicates that no samples outside the picture boundaries are used for inter prediction |
---|
| 343 | Int m_minSpatialSegmentationIdc; ///< Indicates the maximum size of the spatial segments in the pictures in the coded video sequence |
---|
| 344 | 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 |
---|
| 345 | Int m_maxBitsPerMinCuDenom; ///< Indicates an upper bound for the number of bits of coding_unit() data |
---|
| 346 | Int m_log2MaxMvLengthHorizontal; ///< Indicate the maximum absolute value of a decoded horizontal MV component in quarter-pel luma units |
---|
| 347 | Int m_log2MaxMvLengthVertical; ///< Indicate the maximum absolute value of a decoded vertical MV component in quarter-pel luma units |
---|
[2] | 348 | |
---|
[608] | 349 | Bool m_useStrongIntraSmoothing; ///< enable the use of strong intra smoothing (bi_linear interpolation) for 32x32 blocks when reference samples are flat. |
---|
[884] | 350 | #if H_MV |
---|
[872] | 351 | Bool m_subBistreamPropSEIEnabled; |
---|
| 352 | Int m_numAdditionalSubStreams; |
---|
| 353 | std::vector<Int> m_subBitstreamMode; |
---|
| 354 | std::vector<Int> m_outputLayerSetIdxToVps; |
---|
| 355 | std::vector<Int> m_highestSublayerId; |
---|
| 356 | std::vector<Int> m_avgBitRate; |
---|
| 357 | std::vector<Int> m_maxBitRate; |
---|
| 358 | #endif |
---|
[210] | 359 | |
---|
[608] | 360 | #if H_MV |
---|
| 361 | Int m_layerId; |
---|
| 362 | Int m_layerIdInVps; |
---|
| 363 | Int m_viewId; |
---|
[622] | 364 | Int m_viewIndex; |
---|
[608] | 365 | #endif |
---|
[115] | 366 | |
---|
[608] | 367 | #if H_3D |
---|
| 368 | Bool m_isDepth; |
---|
[56] | 369 | |
---|
[608] | 370 | //====== Camera Parameters ====== |
---|
| 371 | UInt m_uiCamParPrecision; |
---|
| 372 | Bool m_bCamParInSliceHeader; |
---|
| 373 | Int** m_aaiCodedScale; |
---|
| 374 | Int** m_aaiCodedOffset; |
---|
| 375 | TAppComCamPara* m_cameraParameters; |
---|
| 376 | |
---|
| 377 | #if H_3D_VSO |
---|
| 378 | //====== View Synthesis Optimization ====== |
---|
| 379 | TRenModSetupStrParser* m_renderModelParameters; |
---|
| 380 | Bool m_bUseVSO; |
---|
| 381 | Bool m_bForceLambdaScale; |
---|
| 382 | Bool m_bAllowNegDist; |
---|
| 383 | Double m_dLambdaScaleVSO; |
---|
| 384 | UInt m_uiVSOMode; |
---|
| 385 | // LGE_WVSO_A0119 |
---|
| 386 | Bool m_bUseWVSO; |
---|
| 387 | Int m_iVSOWeight; |
---|
| 388 | Int m_iVSDWeight; |
---|
| 389 | Int m_iDWeight; |
---|
| 390 | // SAIT_VSO_EST_A0033 |
---|
| 391 | Bool m_bUseEstimatedVSD; |
---|
| 392 | Double m_dDispCoeff; |
---|
[5] | 393 | #endif |
---|
[608] | 394 | #if H_3D_ARP |
---|
| 395 | UInt m_uiUseAdvResPred; |
---|
| 396 | UInt m_uiARPStepNum; |
---|
[5] | 397 | #endif |
---|
[773] | 398 | #if H_3D_SPIVMP |
---|
[724] | 399 | Int m_iSubPULog2Size; |
---|
[833] | 400 | Int m_iSubPUMPILog2Size; |
---|
| 401 | #endif |
---|
[608] | 402 | #if H_3D_IC |
---|
| 403 | Bool m_bUseIC; |
---|
[950] | 404 | Bool m_bUseICLowLatencyEnc; |
---|
[5] | 405 | #endif |
---|
[655] | 406 | #if H_3D_INTER_SDC |
---|
[608] | 407 | bool m_bInterSDC; |
---|
[443] | 408 | #endif |
---|
[833] | 409 | #if H_3D_DBBP |
---|
| 410 | Bool m_bUseDBBP; |
---|
| 411 | #endif |
---|
[608] | 412 | //====== Depth Intra Modes ====== |
---|
| 413 | #if H_3D_DIM |
---|
| 414 | Bool m_useDMM; |
---|
[1039] | 415 | Bool m_useIVP; |
---|
[608] | 416 | Bool m_useSDC; |
---|
| 417 | Bool m_useDLT; |
---|
[443] | 418 | #endif |
---|
[1084] | 419 | #if H_3D_SINGLE_DEPTH |
---|
[1039] | 420 | Bool m_useSingleDepthMode; |
---|
| 421 | #endif |
---|
[773] | 422 | #if H_3D_IV_MERGE |
---|
[724] | 423 | Bool m_useMPI; |
---|
| 424 | #endif |
---|
[608] | 425 | #if H_3D_QTLPC |
---|
| 426 | Bool m_bUseQTL; |
---|
[443] | 427 | #endif |
---|
[608] | 428 | #endif |
---|
| 429 | public: |
---|
| 430 | TEncCfg() |
---|
[1084] | 431 | : m_tileColumnWidth() |
---|
| 432 | , m_tileRowHeight() |
---|
[608] | 433 | #if H_MV |
---|
| 434 | , m_layerId(-1) |
---|
| 435 | , m_layerIdInVps(-1) |
---|
| 436 | , m_viewId(-1) |
---|
[622] | 437 | , m_viewIndex(-1) |
---|
[608] | 438 | #if H_3D |
---|
| 439 | , m_isDepth(false) |
---|
| 440 | , m_bUseVSO(false) |
---|
| 441 | #endif |
---|
| 442 | #endif |
---|
| 443 | {} |
---|
[443] | 444 | |
---|
[56] | 445 | virtual ~TEncCfg() |
---|
[1084] | 446 | {} |
---|
[56] | 447 | |
---|
[608] | 448 | Void setProfile(Profile::Name profile) { m_profile = profile; } |
---|
| 449 | Void setLevel(Level::Tier tier, Level::Name level) { m_levelTier = tier; m_level = level; } |
---|
| 450 | |
---|
[2] | 451 | Void setFrameRate ( Int i ) { m_iFrameRate = i; } |
---|
[608] | 452 | Void setFrameSkip ( UInt i ) { m_FrameSkip = i; } |
---|
[2] | 453 | Void setSourceWidth ( Int i ) { m_iSourceWidth = i; } |
---|
| 454 | Void setSourceHeight ( Int i ) { m_iSourceHeight = i; } |
---|
[608] | 455 | |
---|
| 456 | Window &getConformanceWindow() { return m_conformanceWindow; } |
---|
| 457 | Void setConformanceWindow (Int confLeft, Int confRight, Int confTop, Int confBottom ) { m_conformanceWindow.setWindow (confLeft, confRight, confTop, confBottom); } |
---|
| 458 | |
---|
| 459 | Void setFramesToBeEncoded ( Int i ) { m_framesToBeEncoded = i; } |
---|
[56] | 460 | |
---|
[608] | 461 | #if H_MV |
---|
| 462 | Void setLayerId ( Int layerId ) { m_layerId = layerId; } |
---|
| 463 | Int getLayerId () { return m_layerId; } |
---|
| 464 | Int getLayerIdInVps () { return m_layerIdInVps; } |
---|
| 465 | Void setLayerIdInVps ( Int layerIdInVps) { m_layerIdInVps = layerIdInVps; } |
---|
| 466 | Void setViewId ( Int viewId ) { m_viewId = viewId; } |
---|
| 467 | Int getViewId () { return m_viewId; } |
---|
[622] | 468 | Void setViewIndex ( Int viewIndex ) { m_viewIndex = viewIndex; } |
---|
| 469 | Int getViewIndex () { return m_viewIndex; } |
---|
[608] | 470 | #if H_3D |
---|
| 471 | Void setIsDepth ( Bool isDepth ) { m_isDepth = isDepth; } |
---|
| 472 | Bool getIsDepth () { return m_isDepth; } |
---|
| 473 | #endif |
---|
| 474 | #endif |
---|
[2] | 475 | //====== Coding Structure ======== |
---|
[56] | 476 | Void setIntraPeriod ( Int i ) { m_uiIntraPeriod = (UInt)i; } |
---|
[2] | 477 | Void setDecodingRefreshType ( Int i ) { m_uiDecodingRefreshType = (UInt)i; } |
---|
[56] | 478 | Void setGOPSize ( Int i ) { m_iGOPSize = i; } |
---|
[608] | 479 | #if H_MV |
---|
| 480 | Void setGopList ( GOPEntry* GOPList ) { for ( Int i = 0; i < MAX_GOP+1; i++ ) m_GOPList[i] = GOPList[i]; } |
---|
| 481 | #else |
---|
| 482 | Void setGopList ( GOPEntry* GOPList ) { for ( Int i = 0; i < MAX_GOP; i++ ) m_GOPList[i] = GOPList[i]; } |
---|
| 483 | #endif |
---|
[56] | 484 | Void setExtraRPSs ( Int i ) { m_extraRPSs = i; } |
---|
[608] | 485 | GOPEntry getGOPEntry ( Int i ) { return m_GOPList[i]; } |
---|
[56] | 486 | Void setMaxDecPicBuffering ( UInt u, UInt tlayer ) { m_maxDecPicBuffering[tlayer] = u; } |
---|
| 487 | Void setNumReorderPics ( Int i, UInt tlayer ) { m_numReorderPics[tlayer] = i; } |
---|
| 488 | |
---|
| 489 | Void setQP ( Int i ) { m_iQP = i; } |
---|
| 490 | |
---|
| 491 | Void setPad ( Int* iPad ) { for ( Int i = 0; i < 2; i++ ) m_aiPad[i] = iPad[i]; } |
---|
| 492 | |
---|
| 493 | Int getMaxRefPicNum () { return m_iMaxRefPicNum; } |
---|
| 494 | Void setMaxRefPicNum ( Int iMaxRefPicNum ) { m_iMaxRefPicNum = iMaxRefPicNum; } |
---|
[2] | 495 | |
---|
[964] | 496 | Int getMaxTempLayer () { return m_maxTempLayer; } |
---|
[56] | 497 | Void setMaxTempLayer ( Int maxTempLayer ) { m_maxTempLayer = maxTempLayer; } |
---|
[2] | 498 | |
---|
[608] | 499 | #if H_3D_ARP |
---|
| 500 | UInt getUseAdvRP ( ) { return m_uiUseAdvResPred; } |
---|
| 501 | Void setUseAdvRP ( UInt u ) { m_uiUseAdvResPred = u; } |
---|
| 502 | |
---|
| 503 | UInt getARPStepNum () { return m_uiARPStepNum; } |
---|
| 504 | Void setARPStepNum ( UInt u ) { m_uiARPStepNum = u; } |
---|
[5] | 505 | #endif |
---|
[773] | 506 | #if H_3D_SPIVMP |
---|
[724] | 507 | Int getSubPULog2Size () { return m_iSubPULog2Size;} |
---|
| 508 | Void setSubPULog2Size (Int u) { m_iSubPULog2Size = u; } |
---|
[833] | 509 | Int getSubPUMPILog2Size () { return m_iSubPUMPILog2Size;} |
---|
| 510 | Void setSubPUMPILog2Size (Int u) { m_iSubPUMPILog2Size = u; } |
---|
| 511 | #endif |
---|
[608] | 512 | #if H_3D_IC |
---|
| 513 | Void setUseIC ( Bool bVal ) { m_bUseIC = bVal; } |
---|
| 514 | Bool getUseIC () { return m_bUseIC; } |
---|
[950] | 515 | Void setUseICLowLatencyEnc ( Bool bVal ) { m_bUseICLowLatencyEnc = bVal; } |
---|
| 516 | Bool getUseICLowLatencyEnc () { return m_bUseICLowLatencyEnc; } |
---|
[5] | 517 | #endif |
---|
[655] | 518 | #if H_3D_INTER_SDC |
---|
[608] | 519 | Void setInterSDCEnable ( Bool bVal ) { m_bInterSDC = bVal; } |
---|
| 520 | Bool getInterSDCEnable () { return m_bInterSDC; } |
---|
[5] | 521 | #endif |
---|
[833] | 522 | #if H_3D_DBBP |
---|
| 523 | Void setUseDBBP ( Bool b ) { m_bUseDBBP = b; } |
---|
| 524 | Bool getUseDBBP() { return m_bUseDBBP; } |
---|
| 525 | #endif |
---|
[2] | 526 | //======== Transform ============= |
---|
| 527 | Void setQuadtreeTULog2MaxSize ( UInt u ) { m_uiQuadtreeTULog2MaxSize = u; } |
---|
| 528 | Void setQuadtreeTULog2MinSize ( UInt u ) { m_uiQuadtreeTULog2MinSize = u; } |
---|
| 529 | Void setQuadtreeTUMaxDepthInter ( UInt u ) { m_uiQuadtreeTUMaxDepthInter = u; } |
---|
| 530 | Void setQuadtreeTUMaxDepthIntra ( UInt u ) { m_uiQuadtreeTUMaxDepthIntra = u; } |
---|
[56] | 531 | |
---|
| 532 | Void setUseAMP( Bool b ) { m_useAMP = b; } |
---|
| 533 | |
---|
[2] | 534 | //====== Loop/Deblock Filter ======== |
---|
| 535 | Void setLoopFilterDisable ( Bool b ) { m_bLoopFilterDisable = b; } |
---|
[608] | 536 | Void setLoopFilterOffsetInPPS ( Bool b ) { m_loopFilterOffsetInPPS = b; } |
---|
[56] | 537 | Void setLoopFilterBetaOffset ( Int i ) { m_loopFilterBetaOffsetDiv2 = i; } |
---|
| 538 | Void setLoopFilterTcOffset ( Int i ) { m_loopFilterTcOffsetDiv2 = i; } |
---|
| 539 | Void setDeblockingFilterControlPresent ( Bool b ) { m_DeblockingFilterControlPresent = b; } |
---|
[608] | 540 | Void setDeblockingFilterMetric ( Bool b ) { m_DeblockingFilterMetric = b; } |
---|
[2] | 541 | |
---|
| 542 | //====== Motion search ======== |
---|
| 543 | Void setFastSearch ( Int i ) { m_iFastSearch = i; } |
---|
| 544 | Void setSearchRange ( Int i ) { m_iSearchRange = i; } |
---|
| 545 | Void setBipredSearchRange ( Int i ) { m_bipredSearchRange = i; } |
---|
[56] | 546 | |
---|
| 547 | //====== Quality control ======== |
---|
| 548 | Void setMaxDeltaQP ( Int i ) { m_iMaxDeltaQP = i; } |
---|
| 549 | Void setMaxCuDQPDepth ( Int i ) { m_iMaxCuDQPDepth = i; } |
---|
| 550 | |
---|
[608] | 551 | Void setChromaCbQpOffset ( Int i ) { m_chromaCbQpOffset = i; } |
---|
| 552 | Void setChromaCrQpOffset ( Int i ) { m_chromaCrQpOffset = i; } |
---|
[56] | 553 | |
---|
| 554 | #if ADAPTIVE_QP_SELECTION |
---|
| 555 | Void setUseAdaptQpSelect ( Bool i ) { m_bUseAdaptQpSelect = i; } |
---|
| 556 | Bool getUseAdaptQpSelect () { return m_bUseAdaptQpSelect; } |
---|
| 557 | #endif |
---|
| 558 | |
---|
| 559 | Void setUseAdaptiveQP ( Bool b ) { m_bUseAdaptiveQP = b; } |
---|
| 560 | Void setQPAdaptationRange ( Int i ) { m_iQPAdaptationRange = i; } |
---|
| 561 | |
---|
[2] | 562 | //====== Sequence ======== |
---|
| 563 | Int getFrameRate () { return m_iFrameRate; } |
---|
[608] | 564 | UInt getFrameSkip () { return m_FrameSkip; } |
---|
[2] | 565 | Int getSourceWidth () { return m_iSourceWidth; } |
---|
| 566 | Int getSourceHeight () { return m_iSourceHeight; } |
---|
[608] | 567 | Int getFramesToBeEncoded () { return m_framesToBeEncoded; } |
---|
[56] | 568 | void setLambdaModifier ( UInt uiIndex, Double dValue ) { m_adLambdaModifier[ uiIndex ] = dValue; } |
---|
| 569 | Double getLambdaModifier ( UInt uiIndex ) const { return m_adLambdaModifier[ uiIndex ]; } |
---|
[2] | 570 | |
---|
| 571 | //==== Coding Structure ======== |
---|
[56] | 572 | UInt getIntraPeriod () { return m_uiIntraPeriod; } |
---|
[2] | 573 | UInt getDecodingRefreshType () { return m_uiDecodingRefreshType; } |
---|
[56] | 574 | Int getGOPSize () { return m_iGOPSize; } |
---|
| 575 | Int getMaxDecPicBuffering (UInt tlayer) { return m_maxDecPicBuffering[tlayer]; } |
---|
| 576 | Int getNumReorderPics (UInt tlayer) { return m_numReorderPics[tlayer]; } |
---|
[2] | 577 | Int getQP () { return m_iQP; } |
---|
[56] | 578 | |
---|
[2] | 579 | Int getPad ( Int i ) { assert (i < 2 ); return m_aiPad[i]; } |
---|
[56] | 580 | |
---|
[2] | 581 | //======== Transform ============= |
---|
| 582 | UInt getQuadtreeTULog2MaxSize () const { return m_uiQuadtreeTULog2MaxSize; } |
---|
| 583 | UInt getQuadtreeTULog2MinSize () const { return m_uiQuadtreeTULog2MinSize; } |
---|
| 584 | UInt getQuadtreeTUMaxDepthInter () const { return m_uiQuadtreeTUMaxDepthInter; } |
---|
| 585 | UInt getQuadtreeTUMaxDepthIntra () const { return m_uiQuadtreeTUMaxDepthIntra; } |
---|
[56] | 586 | |
---|
[2] | 587 | //==== Loop/Deblock Filter ======== |
---|
| 588 | Bool getLoopFilterDisable () { return m_bLoopFilterDisable; } |
---|
[608] | 589 | Bool getLoopFilterOffsetInPPS () { return m_loopFilterOffsetInPPS; } |
---|
[56] | 590 | Int getLoopFilterBetaOffset () { return m_loopFilterBetaOffsetDiv2; } |
---|
| 591 | Int getLoopFilterTcOffset () { return m_loopFilterTcOffsetDiv2; } |
---|
| 592 | Bool getDeblockingFilterControlPresent() { return m_DeblockingFilterControlPresent; } |
---|
[608] | 593 | Bool getDeblockingFilterMetric () { return m_DeblockingFilterMetric; } |
---|
[2] | 594 | |
---|
| 595 | //==== Motion search ======== |
---|
| 596 | Int getFastSearch () { return m_iFastSearch; } |
---|
| 597 | Int getSearchRange () { return m_iSearchRange; } |
---|
| 598 | |
---|
[56] | 599 | //==== Quality control ======== |
---|
| 600 | Int getMaxDeltaQP () { return m_iMaxDeltaQP; } |
---|
| 601 | Int getMaxCuDQPDepth () { return m_iMaxCuDQPDepth; } |
---|
| 602 | Bool getUseAdaptiveQP () { return m_bUseAdaptiveQP; } |
---|
| 603 | Int getQPAdaptationRange () { return m_iQPAdaptationRange; } |
---|
| 604 | |
---|
[2] | 605 | //==== Tool list ======== |
---|
| 606 | Void setUseASR ( Bool b ) { m_bUseASR = b; } |
---|
| 607 | Void setUseHADME ( Bool b ) { m_bUseHADME = b; } |
---|
[608] | 608 | Void setUseRDOQ ( Bool b ) { m_useRDOQ = b; } |
---|
| 609 | Void setUseRDOQTS ( Bool b ) { m_useRDOQTS = b; } |
---|
| 610 | Void setRDpenalty ( UInt b ) { m_rdPenalty = b; } |
---|
[56] | 611 | Void setUseFastEnc ( Bool b ) { m_bUseFastEnc = b; } |
---|
| 612 | Void setUseEarlyCU ( Bool b ) { m_bUseEarlyCU = b; } |
---|
| 613 | Void setUseFastDecisionForMerge ( Bool b ) { m_useFastDecisionForMerge = b; } |
---|
| 614 | Void setUseCbfFastMode ( Bool b ) { m_bUseCbfFastMode = b; } |
---|
[608] | 615 | Void setUseEarlySkipDetection ( Bool b ) { m_useEarlySkipDetection = b; } |
---|
[2] | 616 | Void setUseConstrainedIntraPred ( Bool b ) { m_bUseConstrainedIntraPred = b; } |
---|
[56] | 617 | Void setPCMInputBitDepthFlag ( Bool b ) { m_bPCMInputBitDepthFlag = b; } |
---|
| 618 | Void setPCMFilterDisableFlag ( Bool b ) { m_bPCMFilterDisableFlag = b; } |
---|
| 619 | Void setUsePCM ( Bool b ) { m_usePCM = b; } |
---|
| 620 | Void setPCMLog2MaxSize ( UInt u ) { m_pcmLog2MaxSize = u; } |
---|
| 621 | Void setPCMLog2MinSize ( UInt u ) { m_uiPCMLog2MinSize = u; } |
---|
[2] | 622 | Void setdQPs ( Int* p ) { m_aidQP = p; } |
---|
| 623 | Void setDeltaQpRD ( UInt u ) {m_uiDeltaQpRD = u; } |
---|
| 624 | Bool getUseASR () { return m_bUseASR; } |
---|
| 625 | Bool getUseHADME () { return m_bUseHADME; } |
---|
[608] | 626 | Bool getUseRDOQ () { return m_useRDOQ; } |
---|
| 627 | Bool getUseRDOQTS () { return m_useRDOQTS; } |
---|
| 628 | Int getRDpenalty () { return m_rdPenalty; } |
---|
[56] | 629 | Bool getUseFastEnc () { return m_bUseFastEnc; } |
---|
| 630 | Bool getUseEarlyCU () { return m_bUseEarlyCU; } |
---|
| 631 | Bool getUseFastDecisionForMerge () { return m_useFastDecisionForMerge; } |
---|
| 632 | Bool getUseCbfFastMode () { return m_bUseCbfFastMode; } |
---|
[608] | 633 | Bool getUseEarlySkipDetection () { return m_useEarlySkipDetection; } |
---|
[2] | 634 | Bool getUseConstrainedIntraPred () { return m_bUseConstrainedIntraPred; } |
---|
[608] | 635 | Bool getPCMInputBitDepthFlag () { return m_bPCMInputBitDepthFlag; } |
---|
[56] | 636 | Bool getPCMFilterDisableFlag () { return m_bPCMFilterDisableFlag; } |
---|
| 637 | Bool getUsePCM () { return m_usePCM; } |
---|
| 638 | UInt getPCMLog2MaxSize () { return m_pcmLog2MaxSize; } |
---|
| 639 | UInt getPCMLog2MinSize () { return m_uiPCMLog2MinSize; } |
---|
| 640 | |
---|
[608] | 641 | Bool getUseTransformSkip () { return m_useTransformSkip; } |
---|
| 642 | Void setUseTransformSkip ( Bool b ) { m_useTransformSkip = b; } |
---|
| 643 | Bool getUseTransformSkipFast () { return m_useTransformSkipFast; } |
---|
| 644 | Void setUseTransformSkipFast ( Bool b ) { m_useTransformSkipFast = b; } |
---|
[2] | 645 | Int* getdQPs () { return m_aidQP; } |
---|
| 646 | UInt getDeltaQpRD () { return m_uiDeltaQpRD; } |
---|
[56] | 647 | |
---|
[2] | 648 | //====== Slice ======== |
---|
[608] | 649 | Void setSliceMode ( Int i ) { m_sliceMode = i; } |
---|
| 650 | Void setSliceArgument ( Int i ) { m_sliceArgument = i; } |
---|
| 651 | Int getSliceMode () { return m_sliceMode; } |
---|
| 652 | Int getSliceArgument () { return m_sliceArgument; } |
---|
| 653 | //====== Dependent Slice ======== |
---|
| 654 | Void setSliceSegmentMode ( Int i ) { m_sliceSegmentMode = i; } |
---|
| 655 | Void setSliceSegmentArgument ( Int i ) { m_sliceSegmentArgument = i; } |
---|
| 656 | Int getSliceSegmentMode () { return m_sliceSegmentMode; } |
---|
| 657 | Int getSliceSegmentArgument () { return m_sliceSegmentArgument;} |
---|
| 658 | Void setLFCrossSliceBoundaryFlag ( Bool bValue ) { m_bLFCrossSliceBoundaryFlag = bValue; } |
---|
| 659 | Bool getLFCrossSliceBoundaryFlag () { return m_bLFCrossSliceBoundaryFlag; } |
---|
[56] | 660 | |
---|
[608] | 661 | Void setUseSAO (Bool bVal) {m_bUseSAO = bVal;} |
---|
| 662 | Bool getUseSAO () {return m_bUseSAO;} |
---|
[56] | 663 | Void setMaxNumOffsetsPerPic (Int iVal) { m_maxNumOffsetsPerPic = iVal; } |
---|
| 664 | Int getMaxNumOffsetsPerPic () { return m_maxNumOffsetsPerPic; } |
---|
[443] | 665 | Void setSaoLcuBoundary (Bool val) { m_saoLcuBoundary = val; } |
---|
| 666 | Bool getSaoLcuBoundary () { return m_saoLcuBoundary; } |
---|
[608] | 667 | Void setLFCrossTileBoundaryFlag ( Bool val ) { m_loopFilterAcrossTilesEnabledFlag = val; } |
---|
| 668 | Bool getLFCrossTileBoundaryFlag () { return m_loopFilterAcrossTilesEnabledFlag; } |
---|
[1084] | 669 | Void setTileUniformSpacingFlag ( Bool b ) { m_tileUniformSpacingFlag = b; } |
---|
| 670 | Bool getTileUniformSpacingFlag () { return m_tileUniformSpacingFlag; } |
---|
[56] | 671 | Void setNumColumnsMinus1 ( Int i ) { m_iNumColumnsMinus1 = i; } |
---|
| 672 | Int getNumColumnsMinus1 () { return m_iNumColumnsMinus1; } |
---|
[1084] | 673 | Void setColumnWidth ( const std::vector<Int>& columnWidth ) { m_tileColumnWidth = columnWidth; } |
---|
| 674 | UInt getColumnWidth ( UInt columnIdx ) { return m_tileColumnWidth[columnIdx]; } |
---|
[56] | 675 | Void setNumRowsMinus1 ( Int i ) { m_iNumRowsMinus1 = i; } |
---|
| 676 | Int getNumRowsMinus1 () { return m_iNumRowsMinus1; } |
---|
[1084] | 677 | Void setRowHeight ( const std::vector<Int>& rowHeight) { m_tileRowHeight = rowHeight; } |
---|
| 678 | UInt getRowHeight ( UInt rowIdx ) { return m_tileRowHeight[rowIdx]; } |
---|
[56] | 679 | Void xCheckGSParameters(); |
---|
| 680 | Void setWaveFrontSynchro(Int iWaveFrontSynchro) { m_iWaveFrontSynchro = iWaveFrontSynchro; } |
---|
| 681 | Int getWaveFrontsynchro() { return m_iWaveFrontSynchro; } |
---|
| 682 | Void setWaveFrontSubstreams(Int iWaveFrontSubstreams) { m_iWaveFrontSubstreams = iWaveFrontSubstreams; } |
---|
| 683 | Int getWaveFrontSubstreams() { return m_iWaveFrontSubstreams; } |
---|
[608] | 684 | Void setDecodedPictureHashSEIEnabled(Int b) { m_decodedPictureHashSEIEnabled = b; } |
---|
| 685 | Int getDecodedPictureHashSEIEnabled() { return m_decodedPictureHashSEIEnabled; } |
---|
| 686 | Void setBufferingPeriodSEIEnabled(Int b) { m_bufferingPeriodSEIEnabled = b; } |
---|
| 687 | Int getBufferingPeriodSEIEnabled() { return m_bufferingPeriodSEIEnabled; } |
---|
| 688 | Void setPictureTimingSEIEnabled(Int b) { m_pictureTimingSEIEnabled = b; } |
---|
| 689 | Int getPictureTimingSEIEnabled() { return m_pictureTimingSEIEnabled; } |
---|
| 690 | Void setRecoveryPointSEIEnabled(Int b) { m_recoveryPointSEIEnabled = b; } |
---|
| 691 | Int getRecoveryPointSEIEnabled() { return m_recoveryPointSEIEnabled; } |
---|
| 692 | Void setToneMappingInfoSEIEnabled(Bool b) { m_toneMappingInfoSEIEnabled = b; } |
---|
| 693 | Bool getToneMappingInfoSEIEnabled() { return m_toneMappingInfoSEIEnabled; } |
---|
| 694 | Void setTMISEIToneMapId(Int b) { m_toneMapId = b; } |
---|
| 695 | Int getTMISEIToneMapId() { return m_toneMapId; } |
---|
| 696 | Void setTMISEIToneMapCancelFlag(Bool b) { m_toneMapCancelFlag=b; } |
---|
| 697 | Bool getTMISEIToneMapCancelFlag() { return m_toneMapCancelFlag; } |
---|
| 698 | Void setTMISEIToneMapPersistenceFlag(Bool b) { m_toneMapPersistenceFlag = b; } |
---|
| 699 | Bool getTMISEIToneMapPersistenceFlag() { return m_toneMapPersistenceFlag; } |
---|
| 700 | Void setTMISEICodedDataBitDepth(Int b) { m_codedDataBitDepth = b; } |
---|
| 701 | Int getTMISEICodedDataBitDepth() { return m_codedDataBitDepth; } |
---|
| 702 | Void setTMISEITargetBitDepth(Int b) { m_targetBitDepth = b; } |
---|
| 703 | Int getTMISEITargetBitDepth() { return m_targetBitDepth; } |
---|
| 704 | Void setTMISEIModelID(Int b) { m_modelId = b; } |
---|
| 705 | Int getTMISEIModelID() { return m_modelId; } |
---|
| 706 | Void setTMISEIMinValue(Int b) { m_minValue = b; } |
---|
| 707 | Int getTMISEIMinValue() { return m_minValue; } |
---|
| 708 | Void setTMISEIMaxValue(Int b) { m_maxValue = b; } |
---|
| 709 | Int getTMISEIMaxValue() { return m_maxValue; } |
---|
| 710 | Void setTMISEISigmoidMidpoint(Int b) { m_sigmoidMidpoint = b; } |
---|
| 711 | Int getTMISEISigmoidMidpoint() { return m_sigmoidMidpoint; } |
---|
| 712 | Void setTMISEISigmoidWidth(Int b) { m_sigmoidWidth = b; } |
---|
| 713 | Int getTMISEISigmoidWidth() { return m_sigmoidWidth; } |
---|
| 714 | Void setTMISEIStartOfCodedInterva( Int* p ) { m_startOfCodedInterval = p; } |
---|
| 715 | Int* getTMISEIStartOfCodedInterva() { return m_startOfCodedInterval; } |
---|
| 716 | Void setTMISEINumPivots(Int b) { m_numPivots = b; } |
---|
| 717 | Int getTMISEINumPivots() { return m_numPivots; } |
---|
| 718 | Void setTMISEICodedPivotValue( Int* p ) { m_codedPivotValue = p; } |
---|
| 719 | Int* getTMISEICodedPivotValue() { return m_codedPivotValue; } |
---|
| 720 | Void setTMISEITargetPivotValue( Int* p ) { m_targetPivotValue = p; } |
---|
| 721 | Int* getTMISEITargetPivotValue() { return m_targetPivotValue; } |
---|
| 722 | Void setTMISEICameraIsoSpeedIdc(Int b) { m_cameraIsoSpeedIdc = b; } |
---|
| 723 | Int getTMISEICameraIsoSpeedIdc() { return m_cameraIsoSpeedIdc; } |
---|
| 724 | Void setTMISEICameraIsoSpeedValue(Int b) { m_cameraIsoSpeedValue = b; } |
---|
| 725 | Int getTMISEICameraIsoSpeedValue() { return m_cameraIsoSpeedValue; } |
---|
[964] | 726 | Void setTMISEIExposureIndexIdc(Int b) { m_exposureIndexIdc = b; } |
---|
| 727 | Int getTMISEIExposurIndexIdc() { return m_exposureIndexIdc; } |
---|
| 728 | Void setTMISEIExposureIndexValue(Int b) { m_exposureIndexValue = b; } |
---|
| 729 | Int getTMISEIExposurIndexValue() { return m_exposureIndexValue; } |
---|
[608] | 730 | Void setTMISEIExposureCompensationValueSignFlag(Int b) { m_exposureCompensationValueSignFlag = b; } |
---|
| 731 | Int getTMISEIExposureCompensationValueSignFlag() { return m_exposureCompensationValueSignFlag; } |
---|
| 732 | Void setTMISEIExposureCompensationValueNumerator(Int b) { m_exposureCompensationValueNumerator = b; } |
---|
| 733 | Int getTMISEIExposureCompensationValueNumerator() { return m_exposureCompensationValueNumerator; } |
---|
| 734 | Void setTMISEIExposureCompensationValueDenomIdc(Int b) { m_exposureCompensationValueDenomIdc =b; } |
---|
| 735 | Int getTMISEIExposureCompensationValueDenomIdc() { return m_exposureCompensationValueDenomIdc; } |
---|
| 736 | Void setTMISEIRefScreenLuminanceWhite(Int b) { m_refScreenLuminanceWhite = b; } |
---|
| 737 | Int getTMISEIRefScreenLuminanceWhite() { return m_refScreenLuminanceWhite; } |
---|
| 738 | Void setTMISEIExtendedRangeWhiteLevel(Int b) { m_extendedRangeWhiteLevel = b; } |
---|
| 739 | Int getTMISEIExtendedRangeWhiteLevel() { return m_extendedRangeWhiteLevel; } |
---|
| 740 | Void setTMISEINominalBlackLevelLumaCodeValue(Int b) { m_nominalBlackLevelLumaCodeValue = b; } |
---|
| 741 | Int getTMISEINominalBlackLevelLumaCodeValue() { return m_nominalBlackLevelLumaCodeValue; } |
---|
| 742 | Void setTMISEINominalWhiteLevelLumaCodeValue(Int b) { m_nominalWhiteLevelLumaCodeValue = b; } |
---|
| 743 | Int getTMISEINominalWhiteLevelLumaCodeValue() { return m_nominalWhiteLevelLumaCodeValue; } |
---|
| 744 | Void setTMISEIExtendedWhiteLevelLumaCodeValue(Int b) { m_extendedWhiteLevelLumaCodeValue =b; } |
---|
| 745 | Int getTMISEIExtendedWhiteLevelLumaCodeValue() { return m_extendedWhiteLevelLumaCodeValue; } |
---|
| 746 | Void setFramePackingArrangementSEIEnabled(Int b) { m_framePackingSEIEnabled = b; } |
---|
| 747 | Int getFramePackingArrangementSEIEnabled() { return m_framePackingSEIEnabled; } |
---|
| 748 | Void setFramePackingArrangementSEIType(Int b) { m_framePackingSEIType = b; } |
---|
| 749 | Int getFramePackingArrangementSEIType() { return m_framePackingSEIType; } |
---|
| 750 | Void setFramePackingArrangementSEIId(Int b) { m_framePackingSEIId = b; } |
---|
| 751 | Int getFramePackingArrangementSEIId() { return m_framePackingSEIId; } |
---|
| 752 | Void setFramePackingArrangementSEIQuincunx(Int b) { m_framePackingSEIQuincunx = b; } |
---|
| 753 | Int getFramePackingArrangementSEIQuincunx() { return m_framePackingSEIQuincunx; } |
---|
| 754 | Void setFramePackingArrangementSEIInterpretation(Int b) { m_framePackingSEIInterpretation = b; } |
---|
| 755 | Int getFramePackingArrangementSEIInterpretation() { return m_framePackingSEIInterpretation; } |
---|
| 756 | Void setDisplayOrientationSEIAngle(Int b) { m_displayOrientationSEIAngle = b; } |
---|
| 757 | Int getDisplayOrientationSEIAngle() { return m_displayOrientationSEIAngle; } |
---|
| 758 | Void setTemporalLevel0IndexSEIEnabled(Int b) { m_temporalLevel0IndexSEIEnabled = b; } |
---|
| 759 | Int getTemporalLevel0IndexSEIEnabled() { return m_temporalLevel0IndexSEIEnabled; } |
---|
| 760 | Void setGradualDecodingRefreshInfoEnabled(Int b) { m_gradualDecodingRefreshInfoEnabled = b; } |
---|
| 761 | Int getGradualDecodingRefreshInfoEnabled() { return m_gradualDecodingRefreshInfoEnabled; } |
---|
| 762 | Void setDecodingUnitInfoSEIEnabled(Int b) { m_decodingUnitInfoSEIEnabled = b; } |
---|
| 763 | Int getDecodingUnitInfoSEIEnabled() { return m_decodingUnitInfoSEIEnabled; } |
---|
| 764 | Void setSOPDescriptionSEIEnabled(Int b) { m_SOPDescriptionSEIEnabled = b; } |
---|
| 765 | Int getSOPDescriptionSEIEnabled() { return m_SOPDescriptionSEIEnabled; } |
---|
| 766 | Void setScalableNestingSEIEnabled(Int b) { m_scalableNestingSEIEnabled = b; } |
---|
| 767 | Int getScalableNestingSEIEnabled() { return m_scalableNestingSEIEnabled; } |
---|
[872] | 768 | |
---|
[884] | 769 | #if H_MV |
---|
[872] | 770 | Bool getSubBitstreamPropSEIEnabled() { return m_subBistreamPropSEIEnabled;} |
---|
| 771 | Void setSubBitstreamPropSEIEnabled(Bool x) { m_subBistreamPropSEIEnabled = x;} |
---|
| 772 | |
---|
| 773 | Int getNumAdditionalSubStreams() { return m_numAdditionalSubStreams;} |
---|
| 774 | Void setNumAdditionalSubStreams(Int x) { m_numAdditionalSubStreams = x;} |
---|
| 775 | |
---|
| 776 | std::vector<Int> const &getSubBitstreamMode() { return m_subBitstreamMode;} |
---|
| 777 | Int getSubBitstreamMode(Int idx) { return m_subBitstreamMode[idx];} |
---|
| 778 | Void setSubBitstreamMode(std::vector<Int> &x) { m_subBitstreamMode = x;} |
---|
| 779 | |
---|
| 780 | std::vector<Int> const &getOutputLayerSetIdxToVps() { return m_outputLayerSetIdxToVps;} |
---|
| 781 | Int getOutputLayerSetIdxToVps(Int idx) { return m_outputLayerSetIdxToVps[idx];} |
---|
| 782 | Void setOutputLayerSetIdxToVps(std::vector<Int> &x) { m_outputLayerSetIdxToVps = x;} |
---|
| 783 | |
---|
| 784 | std::vector<Int> const &getHighestSublayerId() { return m_highestSublayerId;} |
---|
| 785 | Int getHighestSublayerId(Int idx) { return m_highestSublayerId[idx];} |
---|
| 786 | Void setHighestSublayerId(std::vector<Int> &x) { m_highestSublayerId = x;} |
---|
| 787 | |
---|
| 788 | std::vector<Int> const &getAvgBitRate() { return m_avgBitRate;} |
---|
| 789 | Int getAvgBitRate(Int idx) { return m_avgBitRate[idx];} |
---|
| 790 | Void setAvgBitRate(std::vector<Int> &x) { m_avgBitRate = x;} |
---|
| 791 | |
---|
| 792 | std::vector<Int> const &getMaxBitRate() { return m_maxBitRate;} |
---|
| 793 | Int getMaxBitRate(Int idx) { return m_maxBitRate[idx];} |
---|
| 794 | Void setMaxBitRate(std::vector<Int> &x) { m_maxBitRate = x;} |
---|
| 795 | |
---|
| 796 | #endif |
---|
[608] | 797 | Void setUseWP ( Bool b ) { m_useWeightedPred = b; } |
---|
| 798 | Void setWPBiPred ( Bool b ) { m_useWeightedBiPred = b; } |
---|
| 799 | Bool getUseWP () { return m_useWeightedPred; } |
---|
| 800 | Bool getWPBiPred () { return m_useWeightedBiPred; } |
---|
| 801 | Void setLog2ParallelMergeLevelMinus2 ( UInt u ) { m_log2ParallelMergeLevelMinus2 = u; } |
---|
| 802 | UInt getLog2ParallelMergeLevelMinus2 () { return m_log2ParallelMergeLevelMinus2; } |
---|
| 803 | Void setMaxNumMergeCand ( UInt u ) { m_maxNumMergeCand = u; } |
---|
| 804 | UInt getMaxNumMergeCand () { return m_maxNumMergeCand; } |
---|
[56] | 805 | Void setUseScalingListId ( Int u ) { m_useScalingListId = u; } |
---|
| 806 | Int getUseScalingListId () { return m_useScalingListId; } |
---|
[608] | 807 | Void setScalingListFile ( Char* pch ){ m_scalingListFile = pch; } |
---|
| 808 | Char* getScalingListFile () { return m_scalingListFile; } |
---|
| 809 | Void setTMVPModeId ( Int u ) { m_TMVPModeId = u; } |
---|
| 810 | Int getTMVPModeId () { return m_TMVPModeId; } |
---|
| 811 | Void setSignHideFlag( Int signHideFlag ) { m_signHideFlag = signHideFlag; } |
---|
[56] | 812 | Int getSignHideFlag() { return m_signHideFlag; } |
---|
[608] | 813 | Bool getUseRateCtrl () { return m_RCEnableRateControl; } |
---|
| 814 | Void setUseRateCtrl ( Bool b ) { m_RCEnableRateControl = b; } |
---|
| 815 | Int getTargetBitrate () { return m_RCTargetBitrate; } |
---|
| 816 | Void setTargetBitrate ( Int bitrate ) { m_RCTargetBitrate = bitrate; } |
---|
| 817 | Int getKeepHierBit () { return m_RCKeepHierarchicalBit; } |
---|
| 818 | Void setKeepHierBit ( Int i ) { m_RCKeepHierarchicalBit = i; } |
---|
| 819 | Bool getLCULevelRC () { return m_RCLCULevelRC; } |
---|
| 820 | Void setLCULevelRC ( Bool b ) { m_RCLCULevelRC = b; } |
---|
| 821 | Bool getUseLCUSeparateModel () { return m_RCUseLCUSeparateModel; } |
---|
| 822 | Void setUseLCUSeparateModel ( Bool b ) { m_RCUseLCUSeparateModel = b; } |
---|
| 823 | Int getInitialQP () { return m_RCInitialQP; } |
---|
| 824 | Void setInitialQP ( Int QP ) { m_RCInitialQP = QP; } |
---|
| 825 | Bool getForceIntraQP () { return m_RCForceIntraQP; } |
---|
| 826 | Void setForceIntraQP ( Bool b ) { m_RCForceIntraQP = b; } |
---|
[655] | 827 | |
---|
| 828 | #if KWU_RC_MADPRED_E0227 |
---|
| 829 | UInt getUseDepthMADPred () { return m_depthMADPred; } |
---|
| 830 | Void setUseDepthMADPred (UInt b) { m_depthMADPred = b; } |
---|
| 831 | #endif |
---|
| 832 | #if KWU_RC_VIEWRC_E0227 |
---|
| 833 | Bool getUseViewWiseRateCtrl () { return m_bViewWiseRateCtrl; } |
---|
| 834 | Void setUseViewWiseRateCtrl (Bool b) { m_bViewWiseRateCtrl = b; } |
---|
| 835 | #endif |
---|
[608] | 836 | Bool getTransquantBypassEnableFlag() { return m_TransquantBypassEnableFlag; } |
---|
| 837 | Void setTransquantBypassEnableFlag(Bool flag) { m_TransquantBypassEnableFlag = flag; } |
---|
[872] | 838 | Bool getCUTransquantBypassFlagForceValue() { return m_CUTransquantBypassFlagForce; } |
---|
| 839 | Void setCUTransquantBypassFlagForceValue(Bool flag) { m_CUTransquantBypassFlagForce = flag; } |
---|
[608] | 840 | #if H_MV |
---|
| 841 | Void setVPS ( TComVPS *p ) { m_cVPS = p; } |
---|
| 842 | TComVPS* getVPS () { return m_cVPS; } |
---|
| 843 | #else |
---|
| 844 | Void setVPS(TComVPS *p) { m_cVPS = *p; } |
---|
| 845 | TComVPS *getVPS() { return &m_cVPS; } |
---|
[210] | 846 | #endif |
---|
[758] | 847 | |
---|
[773] | 848 | #if H_3D |
---|
[758] | 849 | Void setDLT ( TComDLT *p ) { m_cDLT = p; } |
---|
| 850 | TComDLT* getDLT () { return m_cDLT; } |
---|
| 851 | #endif |
---|
| 852 | |
---|
[608] | 853 | Void setUseRecalculateQPAccordingToLambda ( Bool b ) { m_recalculateQPAccordingToLambda = b; } |
---|
| 854 | Bool getUseRecalculateQPAccordingToLambda () { return m_recalculateQPAccordingToLambda; } |
---|
[210] | 855 | |
---|
[608] | 856 | Void setUseStrongIntraSmoothing ( Bool b ) { m_useStrongIntraSmoothing = b; } |
---|
| 857 | Bool getUseStrongIntraSmoothing () { return m_useStrongIntraSmoothing; } |
---|
| 858 | |
---|
| 859 | Void setActiveParameterSetsSEIEnabled ( Int b ) { m_activeParameterSetsSEIEnabled = b; } |
---|
| 860 | Int getActiveParameterSetsSEIEnabled () { return m_activeParameterSetsSEIEnabled; } |
---|
| 861 | Bool getVuiParametersPresentFlag() { return m_vuiParametersPresentFlag; } |
---|
| 862 | Void setVuiParametersPresentFlag(Bool i) { m_vuiParametersPresentFlag = i; } |
---|
| 863 | Bool getAspectRatioInfoPresentFlag() { return m_aspectRatioInfoPresentFlag; } |
---|
| 864 | Void setAspectRatioInfoPresentFlag(Bool i) { m_aspectRatioInfoPresentFlag = i; } |
---|
| 865 | Int getAspectRatioIdc() { return m_aspectRatioIdc; } |
---|
| 866 | Void setAspectRatioIdc(Int i) { m_aspectRatioIdc = i; } |
---|
| 867 | Int getSarWidth() { return m_sarWidth; } |
---|
| 868 | Void setSarWidth(Int i) { m_sarWidth = i; } |
---|
| 869 | Int getSarHeight() { return m_sarHeight; } |
---|
| 870 | Void setSarHeight(Int i) { m_sarHeight = i; } |
---|
| 871 | Bool getOverscanInfoPresentFlag() { return m_overscanInfoPresentFlag; } |
---|
| 872 | Void setOverscanInfoPresentFlag(Bool i) { m_overscanInfoPresentFlag = i; } |
---|
| 873 | Bool getOverscanAppropriateFlag() { return m_overscanAppropriateFlag; } |
---|
| 874 | Void setOverscanAppropriateFlag(Bool i) { m_overscanAppropriateFlag = i; } |
---|
| 875 | Bool getVideoSignalTypePresentFlag() { return m_videoSignalTypePresentFlag; } |
---|
| 876 | Void setVideoSignalTypePresentFlag(Bool i) { m_videoSignalTypePresentFlag = i; } |
---|
| 877 | Int getVideoFormat() { return m_videoFormat; } |
---|
| 878 | Void setVideoFormat(Int i) { m_videoFormat = i; } |
---|
| 879 | Bool getVideoFullRangeFlag() { return m_videoFullRangeFlag; } |
---|
| 880 | Void setVideoFullRangeFlag(Bool i) { m_videoFullRangeFlag = i; } |
---|
| 881 | Bool getColourDescriptionPresentFlag() { return m_colourDescriptionPresentFlag; } |
---|
| 882 | Void setColourDescriptionPresentFlag(Bool i) { m_colourDescriptionPresentFlag = i; } |
---|
| 883 | Int getColourPrimaries() { return m_colourPrimaries; } |
---|
| 884 | Void setColourPrimaries(Int i) { m_colourPrimaries = i; } |
---|
| 885 | Int getTransferCharacteristics() { return m_transferCharacteristics; } |
---|
| 886 | Void setTransferCharacteristics(Int i) { m_transferCharacteristics = i; } |
---|
| 887 | Int getMatrixCoefficients() { return m_matrixCoefficients; } |
---|
| 888 | Void setMatrixCoefficients(Int i) { m_matrixCoefficients = i; } |
---|
| 889 | Bool getChromaLocInfoPresentFlag() { return m_chromaLocInfoPresentFlag; } |
---|
| 890 | Void setChromaLocInfoPresentFlag(Bool i) { m_chromaLocInfoPresentFlag = i; } |
---|
| 891 | Int getChromaSampleLocTypeTopField() { return m_chromaSampleLocTypeTopField; } |
---|
| 892 | Void setChromaSampleLocTypeTopField(Int i) { m_chromaSampleLocTypeTopField = i; } |
---|
| 893 | Int getChromaSampleLocTypeBottomField() { return m_chromaSampleLocTypeBottomField; } |
---|
| 894 | Void setChromaSampleLocTypeBottomField(Int i) { m_chromaSampleLocTypeBottomField = i; } |
---|
| 895 | Bool getNeutralChromaIndicationFlag() { return m_neutralChromaIndicationFlag; } |
---|
| 896 | Void setNeutralChromaIndicationFlag(Bool i) { m_neutralChromaIndicationFlag = i; } |
---|
| 897 | Window &getDefaultDisplayWindow() { return m_defaultDisplayWindow; } |
---|
| 898 | Void setDefaultDisplayWindow (Int offsetLeft, Int offsetRight, Int offsetTop, Int offsetBottom ) { m_defaultDisplayWindow.setWindow (offsetLeft, offsetRight, offsetTop, offsetBottom); } |
---|
| 899 | Bool getFrameFieldInfoPresentFlag() { return m_frameFieldInfoPresentFlag; } |
---|
| 900 | Void setFrameFieldInfoPresentFlag(Bool i) { m_frameFieldInfoPresentFlag = i; } |
---|
| 901 | Bool getPocProportionalToTimingFlag() { return m_pocProportionalToTimingFlag; } |
---|
| 902 | Void setPocProportionalToTimingFlag(Bool x) { m_pocProportionalToTimingFlag = x; } |
---|
| 903 | Int getNumTicksPocDiffOneMinus1() { return m_numTicksPocDiffOneMinus1; } |
---|
| 904 | Void setNumTicksPocDiffOneMinus1(Int x) { m_numTicksPocDiffOneMinus1 = x; } |
---|
| 905 | Bool getBitstreamRestrictionFlag() { return m_bitstreamRestrictionFlag; } |
---|
| 906 | Void setBitstreamRestrictionFlag(Bool i) { m_bitstreamRestrictionFlag = i; } |
---|
| 907 | Bool getTilesFixedStructureFlag() { return m_tilesFixedStructureFlag; } |
---|
| 908 | Void setTilesFixedStructureFlag(Bool i) { m_tilesFixedStructureFlag = i; } |
---|
| 909 | Bool getMotionVectorsOverPicBoundariesFlag() { return m_motionVectorsOverPicBoundariesFlag; } |
---|
| 910 | Void setMotionVectorsOverPicBoundariesFlag(Bool i) { m_motionVectorsOverPicBoundariesFlag = i; } |
---|
| 911 | Int getMinSpatialSegmentationIdc() { return m_minSpatialSegmentationIdc; } |
---|
| 912 | Void setMinSpatialSegmentationIdc(Int i) { m_minSpatialSegmentationIdc = i; } |
---|
| 913 | Int getMaxBytesPerPicDenom() { return m_maxBytesPerPicDenom; } |
---|
| 914 | Void setMaxBytesPerPicDenom(Int i) { m_maxBytesPerPicDenom = i; } |
---|
| 915 | Int getMaxBitsPerMinCuDenom() { return m_maxBitsPerMinCuDenom; } |
---|
| 916 | Void setMaxBitsPerMinCuDenom(Int i) { m_maxBitsPerMinCuDenom = i; } |
---|
| 917 | Int getLog2MaxMvLengthHorizontal() { return m_log2MaxMvLengthHorizontal; } |
---|
| 918 | Void setLog2MaxMvLengthHorizontal(Int i) { m_log2MaxMvLengthHorizontal = i; } |
---|
| 919 | Int getLog2MaxMvLengthVertical() { return m_log2MaxMvLengthVertical; } |
---|
| 920 | Void setLog2MaxMvLengthVertical(Int i) { m_log2MaxMvLengthVertical = i; } |
---|
[189] | 921 | |
---|
[608] | 922 | Bool getProgressiveSourceFlag() const { return m_progressiveSourceFlag; } |
---|
| 923 | Void setProgressiveSourceFlag(Bool b) { m_progressiveSourceFlag = b; } |
---|
| 924 | |
---|
| 925 | Bool getInterlacedSourceFlag() const { return m_interlacedSourceFlag; } |
---|
| 926 | Void setInterlacedSourceFlag(Bool b) { m_interlacedSourceFlag = b; } |
---|
| 927 | |
---|
| 928 | Bool getNonPackedConstraintFlag() const { return m_nonPackedConstraintFlag; } |
---|
| 929 | Void setNonPackedConstraintFlag(Bool b) { m_nonPackedConstraintFlag = b; } |
---|
| 930 | |
---|
| 931 | Bool getFrameOnlyConstraintFlag() const { return m_frameOnlyConstraintFlag; } |
---|
| 932 | Void setFrameOnlyConstraintFlag(Bool b) { m_frameOnlyConstraintFlag = b; } |
---|
| 933 | #if H_3D |
---|
| 934 | /// 3D Tools |
---|
[115] | 935 | |
---|
[608] | 936 | //==== CAMERA PARAMETERS ========== |
---|
[56] | 937 | Void setCamParPrecision ( UInt u ) { m_uiCamParPrecision = u; } |
---|
| 938 | Void setCamParInSliceHeader ( Bool b ) { m_bCamParInSliceHeader = b; } |
---|
| 939 | Void setCodedScale ( Int** p ) { m_aaiCodedScale = p; } |
---|
| 940 | Void setCodedOffset ( Int** p ) { m_aaiCodedOffset = p; } |
---|
[608] | 941 | Void setCameraParameters ( TAppComCamPara* c) { m_cameraParameters = c; } |
---|
[56] | 942 | |
---|
[608] | 943 | #if H_3D_VSO |
---|
| 944 | //==== VSO ========== |
---|
| 945 | Void setRenderModelParameters ( TRenModSetupStrParser* c ) { m_renderModelParameters = c; } |
---|
| 946 | Bool getUseVSO () { return m_bUseVSO; } |
---|
| 947 | Void setUseVSO ( Bool b ) { m_bUseVSO = b; } |
---|
| 948 | UInt getVSOMode () { return m_uiVSOMode; } |
---|
| 949 | Void setVSOMode ( UInt ui ) { m_uiVSOMode = ui; } |
---|
| 950 | Bool getForceLambdaScaleVSO () { return m_bForceLambdaScale; } |
---|
| 951 | Void setForceLambdaScaleVSO ( Bool b ) { m_bForceLambdaScale = b; }; |
---|
| 952 | Double getLambdaScaleVSO () { return m_dLambdaScaleVSO; } |
---|
| 953 | Void setLambdaScaleVSO ( Double d ) { m_dLambdaScaleVSO = d; }; |
---|
| 954 | Bool getAllowNegDist () { return m_bAllowNegDist; } |
---|
| 955 | Void setAllowNegDist ( Bool b ) { m_bAllowNegDist = b; }; |
---|
[443] | 956 | |
---|
[608] | 957 | // LGE_WVSO_A0119 |
---|
| 958 | Bool getUseWVSO () { return m_bUseWVSO; } |
---|
| 959 | Void setUseWVSO ( Bool b ) { m_bUseWVSO = b; } |
---|
| 960 | Int getVSOWeight () { return m_iVSOWeight; } |
---|
| 961 | Void setVSOWeight ( Int i ) { m_iVSOWeight = i; } |
---|
| 962 | Int getVSDWeight () { return m_iVSDWeight; } |
---|
| 963 | Void setVSDWeight ( Int i ) { m_iVSDWeight = i; } |
---|
| 964 | Int getDWeight () { return m_iDWeight; } |
---|
| 965 | Void setDWeight ( Int i ) { m_iDWeight = i; } |
---|
[443] | 966 | |
---|
[608] | 967 | // SAIT_VSO_EST_A0033 |
---|
| 968 | Bool getUseEstimatedVSD () { return m_bUseEstimatedVSD; } |
---|
| 969 | Void setUseEstimatedVSD ( Bool b ) { m_bUseEstimatedVSD = b; } |
---|
| 970 | Double getDispCoeff () { return m_dDispCoeff; } |
---|
| 971 | Void setDispCoeff ( Double d ) { m_dDispCoeff = d; } |
---|
| 972 | #endif // H_3D_VSO |
---|
[443] | 973 | |
---|
[608] | 974 | //==== DIM ========== |
---|
| 975 | #if H_3D_DIM |
---|
| 976 | Bool getUseDMM () { return m_useDMM; } |
---|
| 977 | Void setUseDMM ( Bool b) { m_useDMM = b; } |
---|
[1039] | 978 | Bool getUseIVP () { return m_useIVP; } |
---|
| 979 | Void setUseIVP ( Bool b) { m_useIVP = b; } |
---|
[608] | 980 | Bool getUseSDC () { return m_useSDC; } |
---|
| 981 | Void setUseSDC ( Bool b) { m_useSDC = b; } |
---|
| 982 | Bool getUseDLT () { return m_useDLT; } |
---|
| 983 | Void setUseDLT ( Bool b) { m_useDLT = b; } |
---|
[443] | 984 | #endif |
---|
[1084] | 985 | #if H_3D_SINGLE_DEPTH |
---|
[1039] | 986 | Void setUseSingleDepthMode ( Bool bVal ) { m_useSingleDepthMode = bVal; } |
---|
| 987 | Bool getUseSingleDepthMode () { return m_useSingleDepthMode; } |
---|
| 988 | #endif |
---|
[608] | 989 | #if H_3D_QTLPC |
---|
| 990 | Void setUseQTL ( Bool b ) { m_bUseQTL = b; } |
---|
| 991 | Bool getUseQTL () { return m_bUseQTL; } |
---|
| 992 | #endif |
---|
[773] | 993 | #if H_3D_IV_MERGE |
---|
[724] | 994 | Void setUseMPI ( Bool b ) { m_useMPI = b; } |
---|
| 995 | Bool getUseMPI () { return m_useMPI; } |
---|
| 996 | #endif |
---|
[608] | 997 | #endif // H_3D |
---|
[2] | 998 | }; |
---|
| 999 | |
---|
[56] | 1000 | //! \} |
---|
| 1001 | |
---|
[2] | 1002 | #endif // !defined(AFX_TENCCFG_H__6B99B797_F4DA_4E46_8E78_7656339A6C41__INCLUDED_) |
---|