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