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