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