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