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