[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 |
---|
[1029] | 4 | * granted under this license. |
---|
[313] | 5 | * |
---|
[595] | 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]; |
---|
[1029] | 71 | Bool m_isEncoded; |
---|
[313] | 72 | GOPEntry() |
---|
| 73 | : m_POC(-1) |
---|
| 74 | , m_QPOffset(0) |
---|
| 75 | , m_QPFactor(0) |
---|
| 76 | , m_tcOffsetDiv2(0) |
---|
| 77 | , m_betaOffsetDiv2(0) |
---|
| 78 | , m_temporalId(0) |
---|
| 79 | , m_refPic(false) |
---|
| 80 | , m_numRefPicsActive(0) |
---|
| 81 | , m_sliceType('P') |
---|
| 82 | , m_numRefPics(0) |
---|
| 83 | , m_interRPSPrediction(false) |
---|
| 84 | , m_deltaRPS(0) |
---|
| 85 | , m_numRefIdc(0) |
---|
[1029] | 86 | , m_isEncoded(false) |
---|
[313] | 87 | { |
---|
| 88 | ::memset( m_referencePics, 0, sizeof(m_referencePics) ); |
---|
| 89 | ::memset( m_usedByCurrPic, 0, sizeof(m_usedByCurrPic) ); |
---|
| 90 | ::memset( m_refIdc, 0, sizeof(m_refIdc) ); |
---|
| 91 | } |
---|
| 92 | }; |
---|
| 93 | |
---|
| 94 | std::istringstream &operator>>(std::istringstream &in, GOPEntry &entry); //input |
---|
| 95 | //! \ingroup TLibEncoder |
---|
| 96 | //! \{ |
---|
| 97 | |
---|
| 98 | // ==================================================================================================================== |
---|
| 99 | // Class definition |
---|
| 100 | // ==================================================================================================================== |
---|
| 101 | |
---|
| 102 | /// encoder configuration class |
---|
| 103 | class TEncCfg |
---|
| 104 | { |
---|
| 105 | protected: |
---|
| 106 | //==== File I/O ======== |
---|
| 107 | Int m_iFrameRate; |
---|
| 108 | Int m_FrameSkip; |
---|
| 109 | Int m_iSourceWidth; |
---|
| 110 | Int m_iSourceHeight; |
---|
| 111 | Window m_conformanceWindow; |
---|
| 112 | Int m_framesToBeEncoded; |
---|
| 113 | Double m_adLambdaModifier[ MAX_TLAYER ]; |
---|
| 114 | |
---|
[1029] | 115 | Bool m_printMSEBasedSequencePSNR; |
---|
| 116 | Bool m_printFrameMSE; |
---|
| 117 | Bool m_printSequenceMSE; |
---|
| 118 | Bool m_cabacZeroWordPaddingEnabled; |
---|
| 119 | |
---|
[313] | 120 | /* profile & level */ |
---|
| 121 | Profile::Name m_profile; |
---|
| 122 | Level::Tier m_levelTier; |
---|
| 123 | Level::Name m_level; |
---|
| 124 | Bool m_progressiveSourceFlag; |
---|
| 125 | Bool m_interlacedSourceFlag; |
---|
| 126 | Bool m_nonPackedConstraintFlag; |
---|
| 127 | Bool m_frameOnlyConstraintFlag; |
---|
[1029] | 128 | UInt m_bitDepthConstraintValue; |
---|
| 129 | ChromaFormat m_chromaFormatConstraintValue; |
---|
| 130 | Bool m_intraConstraintFlag; |
---|
| 131 | Bool m_lowerBitRateConstraintFlag; |
---|
[313] | 132 | |
---|
| 133 | //====== Coding Structure ======== |
---|
| 134 | UInt m_uiIntraPeriod; |
---|
| 135 | UInt m_uiDecodingRefreshType; ///< the type of decoding refresh employed for the random access. |
---|
| 136 | Int m_iGOPSize; |
---|
| 137 | GOPEntry m_GOPList[MAX_GOP]; |
---|
| 138 | Int m_extraRPSs; |
---|
| 139 | Int m_maxDecPicBuffering[MAX_TLAYER]; |
---|
| 140 | Int m_numReorderPics[MAX_TLAYER]; |
---|
[1029] | 141 | |
---|
[313] | 142 | Int m_iQP; // if (AdaptiveQP == OFF) |
---|
[1029] | 143 | |
---|
[313] | 144 | Int m_aiPad[2]; |
---|
| 145 | |
---|
[1029] | 146 | |
---|
[313] | 147 | Int m_iMaxRefPicNum; ///< this is used to mimic the sliding mechanism used by the decoder |
---|
| 148 | // TODO: We need to have a common sliding mechanism used by both the encoder and decoder |
---|
| 149 | |
---|
| 150 | Int m_maxTempLayer; ///< Max temporal layer |
---|
| 151 | Bool m_useAMP; |
---|
| 152 | //======= Transform ============= |
---|
| 153 | UInt m_uiQuadtreeTULog2MaxSize; |
---|
| 154 | UInt m_uiQuadtreeTULog2MinSize; |
---|
| 155 | UInt m_uiQuadtreeTUMaxDepthInter; |
---|
| 156 | UInt m_uiQuadtreeTUMaxDepthIntra; |
---|
[1029] | 157 | |
---|
[313] | 158 | //====== Loop/Deblock Filter ======== |
---|
| 159 | Bool m_bLoopFilterDisable; |
---|
| 160 | Bool m_loopFilterOffsetInPPS; |
---|
| 161 | Int m_loopFilterBetaOffsetDiv2; |
---|
| 162 | Int m_loopFilterTcOffsetDiv2; |
---|
| 163 | Bool m_DeblockingFilterControlPresent; |
---|
| 164 | Bool m_DeblockingFilterMetric; |
---|
| 165 | Bool m_bUseSAO; |
---|
| 166 | Int m_maxNumOffsetsPerPic; |
---|
[1029] | 167 | Bool m_saoCtuBoundary; |
---|
| 168 | |
---|
[313] | 169 | //====== Motion search ======== |
---|
| 170 | Int m_iFastSearch; // 0:Full search 1:Diamond 2:PMVFAST |
---|
| 171 | Int m_iSearchRange; // 0:Full frame |
---|
| 172 | Int m_bipredSearchRange; |
---|
| 173 | |
---|
| 174 | //====== Quality control ======== |
---|
| 175 | Int m_iMaxDeltaQP; // Max. absolute delta QP (1:default) |
---|
| 176 | Int m_iMaxCuDQPDepth; // Max. depth for a minimum CuDQP (0:default) |
---|
[1029] | 177 | Int m_maxCUChromaQpAdjustmentDepth; |
---|
[313] | 178 | |
---|
| 179 | Int m_chromaCbQpOffset; // Chroma Cb QP Offset (0:default) |
---|
| 180 | Int m_chromaCrQpOffset; // Chroma Cr Qp Offset (0:default) |
---|
[1029] | 181 | ChromaFormat m_chromaFormatIDC; |
---|
[313] | 182 | |
---|
| 183 | #if ADAPTIVE_QP_SELECTION |
---|
| 184 | Bool m_bUseAdaptQpSelect; |
---|
| 185 | #endif |
---|
[1029] | 186 | Bool m_useExtendedPrecision; |
---|
| 187 | Bool m_useHighPrecisionPredictionWeighting; |
---|
[313] | 188 | Bool m_bUseAdaptiveQP; |
---|
| 189 | Int m_iQPAdaptationRange; |
---|
[1029] | 190 | |
---|
[313] | 191 | //====== Tool list ======== |
---|
| 192 | Bool m_bUseASR; |
---|
| 193 | Bool m_bUseHADME; |
---|
| 194 | Bool m_useRDOQ; |
---|
| 195 | Bool m_useRDOQTS; |
---|
| 196 | UInt m_rdPenalty; |
---|
| 197 | Bool m_bUseFastEnc; |
---|
| 198 | Bool m_bUseEarlyCU; |
---|
| 199 | Bool m_useFastDecisionForMerge; |
---|
| 200 | Bool m_bUseCbfFastMode; |
---|
| 201 | Bool m_useEarlySkipDetection; |
---|
[1029] | 202 | Bool m_useCrossComponentPrediction; |
---|
| 203 | Bool m_reconBasedCrossCPredictionEstimate; |
---|
| 204 | UInt m_saoOffsetBitShift[MAX_NUM_CHANNEL_TYPE]; |
---|
[313] | 205 | Bool m_useTransformSkip; |
---|
| 206 | Bool m_useTransformSkipFast; |
---|
[1029] | 207 | UInt m_transformSkipLog2MaxSize; |
---|
| 208 | Bool m_useResidualRotation; |
---|
| 209 | Bool m_useSingleSignificanceMapContext; |
---|
| 210 | Bool m_useGolombRiceParameterAdaptation; |
---|
| 211 | Bool m_alignCABACBeforeBypass; |
---|
| 212 | Bool m_useResidualDPCM[NUMBER_OF_RDPCM_SIGNALLING_MODES]; |
---|
[313] | 213 | Int* m_aidQP; |
---|
| 214 | UInt m_uiDeltaQpRD; |
---|
[1029] | 215 | |
---|
[313] | 216 | Bool m_bUseConstrainedIntraPred; |
---|
| 217 | Bool m_usePCM; |
---|
| 218 | UInt m_pcmLog2MaxSize; |
---|
| 219 | UInt m_uiPCMLog2MinSize; |
---|
| 220 | //====== Slice ======== |
---|
[1029] | 221 | SliceConstraint m_sliceMode; |
---|
| 222 | Int m_sliceArgument; |
---|
[313] | 223 | //====== Dependent Slice ======== |
---|
[1029] | 224 | SliceConstraint m_sliceSegmentMode; |
---|
[313] | 225 | Int m_sliceSegmentArgument; |
---|
| 226 | Bool m_bLFCrossSliceBoundaryFlag; |
---|
| 227 | |
---|
| 228 | Bool m_bPCMInputBitDepthFlag; |
---|
| 229 | UInt m_uiPCMBitDepthLuma; |
---|
| 230 | UInt m_uiPCMBitDepthChroma; |
---|
| 231 | Bool m_bPCMFilterDisableFlag; |
---|
[1029] | 232 | Bool m_disableIntraReferenceSmoothing; |
---|
[313] | 233 | Bool m_loopFilterAcrossTilesEnabledFlag; |
---|
[823] | 234 | Bool m_tileUniformSpacingFlag; |
---|
[313] | 235 | Int m_iNumColumnsMinus1; |
---|
| 236 | Int m_iNumRowsMinus1; |
---|
[823] | 237 | std::vector<Int> m_tileColumnWidth; |
---|
| 238 | std::vector<Int> m_tileRowHeight; |
---|
[313] | 239 | |
---|
| 240 | Int m_iWaveFrontSynchro; |
---|
| 241 | |
---|
| 242 | Int m_decodedPictureHashSEIEnabled; ///< Checksum(3)/CRC(2)/MD5(1)/disable(0) acting on decoded picture hash SEI message |
---|
| 243 | Int m_bufferingPeriodSEIEnabled; |
---|
| 244 | Int m_pictureTimingSEIEnabled; |
---|
| 245 | Int m_recoveryPointSEIEnabled; |
---|
| 246 | Bool m_toneMappingInfoSEIEnabled; |
---|
| 247 | Int m_toneMapId; |
---|
| 248 | Bool m_toneMapCancelFlag; |
---|
| 249 | Bool m_toneMapPersistenceFlag; |
---|
| 250 | Int m_codedDataBitDepth; |
---|
| 251 | Int m_targetBitDepth; |
---|
[1029] | 252 | Int m_modelId; |
---|
[313] | 253 | Int m_minValue; |
---|
| 254 | Int m_maxValue; |
---|
| 255 | Int m_sigmoidMidpoint; |
---|
| 256 | Int m_sigmoidWidth; |
---|
| 257 | Int m_numPivots; |
---|
| 258 | Int m_cameraIsoSpeedIdc; |
---|
| 259 | Int m_cameraIsoSpeedValue; |
---|
[713] | 260 | Int m_exposureIndexIdc; |
---|
| 261 | Int m_exposureIndexValue; |
---|
[1230] | 262 | Bool m_exposureCompensationValueSignFlag; |
---|
[313] | 263 | Int m_exposureCompensationValueNumerator; |
---|
| 264 | Int m_exposureCompensationValueDenomIdc; |
---|
| 265 | Int m_refScreenLuminanceWhite; |
---|
| 266 | Int m_extendedRangeWhiteLevel; |
---|
| 267 | Int m_nominalBlackLevelLumaCodeValue; |
---|
| 268 | Int m_nominalWhiteLevelLumaCodeValue; |
---|
| 269 | Int m_extendedWhiteLevelLumaCodeValue; |
---|
| 270 | Int* m_startOfCodedInterval; |
---|
| 271 | Int* m_codedPivotValue; |
---|
| 272 | Int* m_targetPivotValue; |
---|
| 273 | Int m_framePackingSEIEnabled; |
---|
| 274 | Int m_framePackingSEIType; |
---|
| 275 | Int m_framePackingSEIId; |
---|
| 276 | Int m_framePackingSEIQuincunx; |
---|
| 277 | Int m_framePackingSEIInterpretation; |
---|
[1029] | 278 | Int m_segmentedRectFramePackingSEIEnabled; |
---|
| 279 | Bool m_segmentedRectFramePackingSEICancel; |
---|
| 280 | Int m_segmentedRectFramePackingSEIType; |
---|
| 281 | Bool m_segmentedRectFramePackingSEIPersistence; |
---|
[313] | 282 | Int m_displayOrientationSEIAngle; |
---|
| 283 | Int m_temporalLevel0IndexSEIEnabled; |
---|
| 284 | Int m_gradualDecodingRefreshInfoEnabled; |
---|
[1029] | 285 | Int m_noDisplaySEITLayer; |
---|
[313] | 286 | Int m_decodingUnitInfoSEIEnabled; |
---|
| 287 | Int m_SOPDescriptionSEIEnabled; |
---|
| 288 | Int m_scalableNestingSEIEnabled; |
---|
[1029] | 289 | Bool m_tmctsSEIEnabled; |
---|
| 290 | Bool m_timeCodeSEIEnabled; |
---|
| 291 | Int m_timeCodeSEINumTs; |
---|
| 292 | TComSEITimeSet m_timeSetArray[MAX_TIMECODE_SEI_SETS]; |
---|
| 293 | Bool m_kneeSEIEnabled; |
---|
| 294 | Int m_kneeSEIId; |
---|
| 295 | Bool m_kneeSEICancelFlag; |
---|
| 296 | Bool m_kneeSEIPersistenceFlag; |
---|
| 297 | Int m_kneeSEIInputDrange; |
---|
| 298 | Int m_kneeSEIInputDispLuminance; |
---|
| 299 | Int m_kneeSEIOutputDrange; |
---|
| 300 | Int m_kneeSEIOutputDispLuminance; |
---|
| 301 | Int m_kneeSEINumKneePointsMinus1; |
---|
| 302 | Int* m_kneeSEIInputKneePoint; |
---|
| 303 | Int* m_kneeSEIOutputKneePoint; |
---|
| 304 | TComSEIMasteringDisplay m_masteringDisplay; |
---|
[313] | 305 | //====== Weighted Prediction ======== |
---|
| 306 | Bool m_useWeightedPred; //< Use of Weighting Prediction (P_SLICE) |
---|
| 307 | Bool m_useWeightedBiPred; //< Use of Bi-directional Weighting Prediction (B_SLICE) |
---|
| 308 | UInt m_log2ParallelMergeLevelMinus2; ///< Parallel merge estimation region |
---|
| 309 | UInt m_maxNumMergeCand; ///< Maximum number of merge candidates |
---|
[1029] | 310 | ScalingListMode m_useScalingListId; ///< Using quantization matrix i.e. 0=off, 1=default, 2=file. |
---|
[313] | 311 | Char* m_scalingListFile; ///< quantization matrix file name |
---|
| 312 | Int m_TMVPModeId; |
---|
[1230] | 313 | Bool m_signHideFlag; |
---|
[313] | 314 | Bool m_RCEnableRateControl; |
---|
| 315 | Int m_RCTargetBitrate; |
---|
| 316 | Int m_RCKeepHierarchicalBit; |
---|
| 317 | Bool m_RCLCULevelRC; |
---|
| 318 | Bool m_RCUseLCUSeparateModel; |
---|
| 319 | Int m_RCInitialQP; |
---|
| 320 | Bool m_RCForceIntraQP; |
---|
| 321 | Bool m_TransquantBypassEnableFlag; ///< transquant_bypass_enable_flag setting in PPS. |
---|
[595] | 322 | Bool m_CUTransquantBypassFlagForce; ///< if transquant_bypass_enable_flag, then, if true, all CU transquant bypass flags will be set to true. |
---|
[1029] | 323 | |
---|
| 324 | CostMode m_costMode; ///< The cost function to use, primarily when considering lossless coding. |
---|
[313] | 325 | #if SVC_EXTENSION |
---|
[1029] | 326 | static TComVPS m_cVPS; |
---|
[313] | 327 | #else |
---|
[1029] | 328 | TComVPS m_cVPS; |
---|
[313] | 329 | #endif |
---|
| 330 | Bool m_recalculateQPAccordingToLambda; ///< recalculate QP value according to the lambda value |
---|
[1029] | 331 | Int m_activeParameterSetsSEIEnabled; ///< enable active parameter set SEI message |
---|
[313] | 332 | Bool m_vuiParametersPresentFlag; ///< enable generation of VUI parameters |
---|
| 333 | Bool m_aspectRatioInfoPresentFlag; ///< Signals whether aspect_ratio_idc is present |
---|
[1029] | 334 | Bool m_chromaSamplingFilterHintEnabled; ///< Signals whether chroma sampling filter hint data is present |
---|
| 335 | Int m_chromaSamplingHorFilterIdc; ///< Specifies the Index of filter to use |
---|
| 336 | Int m_chromaSamplingVerFilterIdc; ///< Specifies the Index of filter to use |
---|
[313] | 337 | Int m_aspectRatioIdc; ///< aspect_ratio_idc |
---|
| 338 | Int m_sarWidth; ///< horizontal size of the sample aspect ratio |
---|
| 339 | Int m_sarHeight; ///< vertical size of the sample aspect ratio |
---|
| 340 | Bool m_overscanInfoPresentFlag; ///< Signals whether overscan_appropriate_flag is present |
---|
| 341 | Bool m_overscanAppropriateFlag; ///< Indicates whether conformant decoded pictures are suitable for display using overscan |
---|
| 342 | Bool m_videoSignalTypePresentFlag; ///< Signals whether video_format, video_full_range_flag, and colour_description_present_flag are present |
---|
| 343 | Int m_videoFormat; ///< Indicates representation of pictures |
---|
| 344 | Bool m_videoFullRangeFlag; ///< Indicates the black level and range of luma and chroma signals |
---|
| 345 | Bool m_colourDescriptionPresentFlag; ///< Signals whether colour_primaries, transfer_characteristics and matrix_coefficients are present |
---|
| 346 | Int m_colourPrimaries; ///< Indicates chromaticity coordinates of the source primaries |
---|
| 347 | Int m_transferCharacteristics; ///< Indicates the opto-electronic transfer characteristics of the source |
---|
| 348 | Int m_matrixCoefficients; ///< Describes the matrix coefficients used in deriving luma and chroma from RGB primaries |
---|
| 349 | Bool m_chromaLocInfoPresentFlag; ///< Signals whether chroma_sample_loc_type_top_field and chroma_sample_loc_type_bottom_field are present |
---|
| 350 | Int m_chromaSampleLocTypeTopField; ///< Specifies the location of chroma samples for top field |
---|
| 351 | Int m_chromaSampleLocTypeBottomField; ///< Specifies the location of chroma samples for bottom field |
---|
| 352 | Bool m_neutralChromaIndicationFlag; ///< Indicates that the value of all decoded chroma samples is equal to 1<<(BitDepthCr-1) |
---|
| 353 | Window m_defaultDisplayWindow; ///< Represents the default display window parameters |
---|
| 354 | Bool m_frameFieldInfoPresentFlag; ///< Indicates that pic_struct and other field coding related values are present in picture timing SEI messages |
---|
| 355 | Bool m_pocProportionalToTimingFlag; ///< Indicates that the POC value is proportional to the output time w.r.t. first picture in CVS |
---|
| 356 | Int m_numTicksPocDiffOneMinus1; ///< Number of ticks minus 1 that for a POC difference of one |
---|
| 357 | Bool m_bitstreamRestrictionFlag; ///< Signals whether bitstream restriction parameters are present |
---|
| 358 | Bool m_tilesFixedStructureFlag; ///< Indicates that each active picture parameter set has the same values of the syntax elements related to tiles |
---|
| 359 | Bool m_motionVectorsOverPicBoundariesFlag; ///< Indicates that no samples outside the picture boundaries are used for inter prediction |
---|
| 360 | Int m_minSpatialSegmentationIdc; ///< Indicates the maximum size of the spatial segments in the pictures in the coded video sequence |
---|
| 361 | 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 |
---|
| 362 | Int m_maxBitsPerMinCuDenom; ///< Indicates an upper bound for the number of bits of coding_unit() data |
---|
| 363 | Int m_log2MaxMvLengthHorizontal; ///< Indicate the maximum absolute value of a decoded horizontal MV component in quarter-pel luma units |
---|
| 364 | Int m_log2MaxMvLengthVertical; ///< Indicate the maximum absolute value of a decoded vertical MV component in quarter-pel luma units |
---|
| 365 | |
---|
| 366 | Bool m_useStrongIntraSmoothing; ///< enable the use of strong intra smoothing (bi_linear interpolation) for 32x32 blocks when reference samples are flat. |
---|
| 367 | #if SVC_EXTENSION |
---|
| 368 | UInt m_layerId; |
---|
| 369 | UInt m_numLayer; |
---|
[442] | 370 | Int m_elRapSliceBEnabled; |
---|
| 371 | Int m_adaptiveResolutionChange; |
---|
[1150] | 372 | Int m_layerSwitchOffBegin; |
---|
| 373 | Int m_layerSwitchOffEnd; |
---|
[540] | 374 | Bool m_altOutputLayerFlag; |
---|
| 375 | Int m_skipPictureAtArcSwitch; |
---|
| 376 | Bool m_crossLayerBLAFlag; |
---|
[1148] | 377 | |
---|
[595] | 378 | Int m_numDirectRefLayers; |
---|
[1048] | 379 | Int m_refLayerId[MAX_VPS_LAYER_IDX_PLUS1]; |
---|
[595] | 380 | |
---|
| 381 | Int m_numActiveRefLayers; |
---|
[1057] | 382 | Int m_predLayerIdx[MAX_VPS_LAYER_IDX_PLUS1]; |
---|
[595] | 383 | Int m_numSamplePredRefLayers; |
---|
[1048] | 384 | Int m_samplePredRefLayerId[MAX_VPS_LAYER_IDX_PLUS1]; |
---|
[595] | 385 | Int m_numMotionPredRefLayers; |
---|
[1048] | 386 | Int m_motionPredRefLayerId[MAX_VPS_LAYER_IDX_PLUS1]; |
---|
| 387 | Bool m_samplePredEnabledFlag[MAX_VPS_LAYER_IDX_PLUS1]; |
---|
| 388 | Bool m_motionPredEnabledFlag[MAX_VPS_LAYER_IDX_PLUS1]; |
---|
[1148] | 389 | |
---|
[595] | 390 | Int m_maxTidIlRefPicsPlus1; |
---|
| 391 | #if FAST_INTRA_SHVC |
---|
| 392 | Bool m_useFastIntraScalable; |
---|
| 393 | #endif |
---|
| 394 | #if LAYERS_NOT_PRESENT_SEI |
---|
| 395 | Int m_layersNotPresentSEIEnabled; |
---|
| 396 | #endif |
---|
| 397 | #if N0383_IL_CONSTRAINED_TILE_SETS_SEI |
---|
| 398 | Bool m_interLayerConstrainedTileSetsSEIEnabled; |
---|
| 399 | UInt m_ilNumSetsInMessage; |
---|
| 400 | Bool m_skippedTileSetPresentFlag; |
---|
| 401 | UInt m_topLeftTileIndex[1024]; |
---|
| 402 | UInt m_bottomRightTileIndex[1024]; |
---|
| 403 | UInt m_ilcIdc[1024]; |
---|
| 404 | #endif |
---|
[1212] | 405 | #if CGS_3D_ASYMLUT |
---|
[1037] | 406 | Int m_nCGSFlag; |
---|
| 407 | Int m_nCGSMaxOctantDepth; |
---|
| 408 | Int m_nCGSMaxYPartNumLog2; |
---|
| 409 | Int m_nCGSLUTBit; |
---|
| 410 | Int m_nCGSAdaptiveChroma; |
---|
[877] | 411 | #if R0179_ENC_OPT_3DLUT_SIZE |
---|
[1037] | 412 | Int m_nCGSLutSizeRDO; |
---|
[825] | 413 | #endif |
---|
[877] | 414 | #endif |
---|
[1037] | 415 | #if P0123_ALPHA_CHANNEL_SEI |
---|
| 416 | Bool m_alphaSEIEnabled; |
---|
| 417 | Bool m_alphaCancelFlag; |
---|
| 418 | Int m_alphaUseIdc; |
---|
| 419 | Int m_alphaBitDepthMinus8; |
---|
| 420 | Int m_alphaTransparentValue; |
---|
| 421 | Int m_alphaOpaqueValue; |
---|
| 422 | Bool m_alphaIncrementFlag; |
---|
| 423 | Int m_alphaClipFlag; |
---|
| 424 | Int m_alphaClipTypeFlag; |
---|
| 425 | #endif |
---|
[912] | 426 | #if Q0096_OVERLAY_SEI |
---|
| 427 | Bool m_overlaySEIEnabled; |
---|
| 428 | Bool m_overlayInfoCancelFlag; |
---|
| 429 | UInt m_overlayContentAuxIdMinus128; |
---|
| 430 | UInt m_overlayLabelAuxIdMinus128; |
---|
| 431 | UInt m_overlayAlphaAuxIdMinus128; |
---|
| 432 | UInt m_overlayElementLabelValueLengthMinus8; |
---|
| 433 | UInt m_numOverlaysMinus1; |
---|
| 434 | std::vector<UInt> m_overlayIdx; |
---|
| 435 | std::vector<Bool> m_overlayLanguagePresentFlag; |
---|
| 436 | std::vector<UInt> m_overlayContentLayerId; |
---|
| 437 | std::vector<Bool> m_overlayLabelPresentFlag; |
---|
| 438 | std::vector<UInt> m_overlayLabelLayerId; |
---|
| 439 | std::vector<Bool> m_overlayAlphaPresentFlag; |
---|
| 440 | std::vector<UInt> m_overlayAlphaLayerId; |
---|
| 441 | std::vector<UInt> m_numOverlayElementsMinus1; |
---|
| 442 | std::vector< std::vector<UInt> > m_overlayElementLabelMin; |
---|
| 443 | std::vector< std::vector<UInt> > m_overlayElementLabelMax; |
---|
| 444 | std::vector<string> m_overlayLanguage; |
---|
| 445 | std::vector<string> m_overlayName; |
---|
| 446 | std::vector< std::vector<string> > m_overlayElementName; |
---|
| 447 | Bool m_overlayInfoPersistenceFlag; |
---|
| 448 | #endif |
---|
[823] | 449 | #if Q0189_TMVP_CONSTRAINTS |
---|
| 450 | Int m_TMVPConstraintsSEIEnabled; |
---|
| 451 | #endif |
---|
[595] | 452 | #endif //SVC_EXTENSION |
---|
[856] | 453 | #if Q0074_COLOUR_REMAPPING_SEI |
---|
[1089] | 454 | Char* m_colourRemapSEIFileRoot; ///< SEI Colour Remapping File (initialized from external file) |
---|
[856] | 455 | #endif |
---|
[313] | 456 | |
---|
| 457 | public: |
---|
| 458 | TEncCfg() |
---|
[823] | 459 | : m_tileColumnWidth() |
---|
| 460 | , m_tileRowHeight() |
---|
[1029] | 461 | #if Q0074_COLOUR_REMAPPING_SEI |
---|
[1089] | 462 | , m_colourRemapSEIFileRoot(NULL) |
---|
[1029] | 463 | #endif |
---|
[313] | 464 | {} |
---|
| 465 | |
---|
| 466 | virtual ~TEncCfg() |
---|
[823] | 467 | {} |
---|
[1029] | 468 | |
---|
[313] | 469 | Void setProfile(Profile::Name profile) { m_profile = profile; } |
---|
| 470 | Void setLevel(Level::Tier tier, Level::Name level) { m_levelTier = tier; m_level = level; } |
---|
| 471 | |
---|
| 472 | Void setFrameRate ( Int i ) { m_iFrameRate = i; } |
---|
| 473 | Void setFrameSkip ( UInt i ) { m_FrameSkip = i; } |
---|
| 474 | Void setSourceWidth ( Int i ) { m_iSourceWidth = i; } |
---|
| 475 | Void setSourceHeight ( Int i ) { m_iSourceHeight = i; } |
---|
| 476 | |
---|
| 477 | Window &getConformanceWindow() { return m_conformanceWindow; } |
---|
| 478 | Void setConformanceWindow (Int confLeft, Int confRight, Int confTop, Int confBottom ) { m_conformanceWindow.setWindow (confLeft, confRight, confTop, confBottom); } |
---|
| 479 | |
---|
| 480 | Void setFramesToBeEncoded ( Int i ) { m_framesToBeEncoded = i; } |
---|
[1029] | 481 | |
---|
| 482 | Bool getPrintMSEBasedSequencePSNR () const { return m_printMSEBasedSequencePSNR; } |
---|
| 483 | Void setPrintMSEBasedSequencePSNR (Bool value) { m_printMSEBasedSequencePSNR = value; } |
---|
| 484 | |
---|
| 485 | Bool getPrintFrameMSE () const { return m_printFrameMSE; } |
---|
| 486 | Void setPrintFrameMSE (Bool value) { m_printFrameMSE = value; } |
---|
| 487 | |
---|
| 488 | Bool getPrintSequenceMSE () const { return m_printSequenceMSE; } |
---|
| 489 | Void setPrintSequenceMSE (Bool value) { m_printSequenceMSE = value; } |
---|
| 490 | |
---|
| 491 | Bool getCabacZeroWordPaddingEnabled() const { return m_cabacZeroWordPaddingEnabled; } |
---|
| 492 | Void setCabacZeroWordPaddingEnabled(Bool value) { m_cabacZeroWordPaddingEnabled = value; } |
---|
| 493 | |
---|
[313] | 494 | //====== Coding Structure ======== |
---|
| 495 | Void setIntraPeriod ( Int i ) { m_uiIntraPeriod = (UInt)i; } |
---|
| 496 | Void setDecodingRefreshType ( Int i ) { m_uiDecodingRefreshType = (UInt)i; } |
---|
| 497 | Void setGOPSize ( Int i ) { m_iGOPSize = i; } |
---|
| 498 | Void setGopList ( GOPEntry* GOPList ) { for ( Int i = 0; i < MAX_GOP; i++ ) m_GOPList[i] = GOPList[i]; } |
---|
| 499 | Void setExtraRPSs ( Int i ) { m_extraRPSs = i; } |
---|
| 500 | GOPEntry getGOPEntry ( Int i ) { return m_GOPList[i]; } |
---|
[1029] | 501 | Void setEncodedFlag ( Int i, Bool value ) { m_GOPList[i].m_isEncoded = value; } |
---|
[313] | 502 | Void setMaxDecPicBuffering ( UInt u, UInt tlayer ) { m_maxDecPicBuffering[tlayer] = u; } |
---|
| 503 | Void setNumReorderPics ( Int i, UInt tlayer ) { m_numReorderPics[tlayer] = i; } |
---|
[1029] | 504 | |
---|
[313] | 505 | Void setQP ( Int i ) { m_iQP = i; } |
---|
[1029] | 506 | |
---|
[313] | 507 | Void setPad ( Int* iPad ) { for ( Int i = 0; i < 2; i++ ) m_aiPad[i] = iPad[i]; } |
---|
[1029] | 508 | |
---|
[313] | 509 | Int getMaxRefPicNum () { return m_iMaxRefPicNum; } |
---|
| 510 | Void setMaxRefPicNum ( Int iMaxRefPicNum ) { m_iMaxRefPicNum = iMaxRefPicNum; } |
---|
| 511 | |
---|
[823] | 512 | Int getMaxTempLayer () { return m_maxTempLayer; } |
---|
[313] | 513 | Void setMaxTempLayer ( Int maxTempLayer ) { m_maxTempLayer = maxTempLayer; } |
---|
| 514 | //======== Transform ============= |
---|
| 515 | Void setQuadtreeTULog2MaxSize ( UInt u ) { m_uiQuadtreeTULog2MaxSize = u; } |
---|
| 516 | Void setQuadtreeTULog2MinSize ( UInt u ) { m_uiQuadtreeTULog2MinSize = u; } |
---|
| 517 | Void setQuadtreeTUMaxDepthInter ( UInt u ) { m_uiQuadtreeTUMaxDepthInter = u; } |
---|
| 518 | Void setQuadtreeTUMaxDepthIntra ( UInt u ) { m_uiQuadtreeTUMaxDepthIntra = u; } |
---|
[1029] | 519 | |
---|
[313] | 520 | Void setUseAMP( Bool b ) { m_useAMP = b; } |
---|
[1029] | 521 | |
---|
[313] | 522 | //====== Loop/Deblock Filter ======== |
---|
| 523 | Void setLoopFilterDisable ( Bool b ) { m_bLoopFilterDisable = b; } |
---|
| 524 | Void setLoopFilterOffsetInPPS ( Bool b ) { m_loopFilterOffsetInPPS = b; } |
---|
| 525 | Void setLoopFilterBetaOffset ( Int i ) { m_loopFilterBetaOffsetDiv2 = i; } |
---|
| 526 | Void setLoopFilterTcOffset ( Int i ) { m_loopFilterTcOffsetDiv2 = i; } |
---|
| 527 | Void setDeblockingFilterControlPresent ( Bool b ) { m_DeblockingFilterControlPresent = b; } |
---|
| 528 | Void setDeblockingFilterMetric ( Bool b ) { m_DeblockingFilterMetric = b; } |
---|
| 529 | |
---|
| 530 | //====== Motion search ======== |
---|
| 531 | Void setFastSearch ( Int i ) { m_iFastSearch = i; } |
---|
| 532 | Void setSearchRange ( Int i ) { m_iSearchRange = i; } |
---|
| 533 | Void setBipredSearchRange ( Int i ) { m_bipredSearchRange = i; } |
---|
| 534 | |
---|
| 535 | //====== Quality control ======== |
---|
| 536 | Void setMaxDeltaQP ( Int i ) { m_iMaxDeltaQP = i; } |
---|
| 537 | Void setMaxCuDQPDepth ( Int i ) { m_iMaxCuDQPDepth = i; } |
---|
| 538 | |
---|
[1029] | 539 | Int getMaxCUChromaQpAdjustmentDepth () const { return m_maxCUChromaQpAdjustmentDepth; } |
---|
| 540 | Void setMaxCUChromaQpAdjustmentDepth (Int value) { m_maxCUChromaQpAdjustmentDepth = value; } |
---|
| 541 | |
---|
[313] | 542 | Void setChromaCbQpOffset ( Int i ) { m_chromaCbQpOffset = i; } |
---|
| 543 | Void setChromaCrQpOffset ( Int i ) { m_chromaCrQpOffset = i; } |
---|
| 544 | |
---|
[1029] | 545 | Void setChromaFormatIdc ( ChromaFormat cf ) { m_chromaFormatIDC = cf; } |
---|
| 546 | ChromaFormat getChromaFormatIdc ( ) { return m_chromaFormatIDC; } |
---|
| 547 | |
---|
[313] | 548 | #if ADAPTIVE_QP_SELECTION |
---|
| 549 | Void setUseAdaptQpSelect ( Bool i ) { m_bUseAdaptQpSelect = i; } |
---|
| 550 | Bool getUseAdaptQpSelect () { return m_bUseAdaptQpSelect; } |
---|
| 551 | #endif |
---|
| 552 | |
---|
[1029] | 553 | Bool getUseExtendedPrecision () const { return m_useExtendedPrecision; } |
---|
| 554 | Void setUseExtendedPrecision (Bool value) { m_useExtendedPrecision = value; } |
---|
| 555 | |
---|
| 556 | Bool getUseHighPrecisionPredictionWeighting() const { return m_useHighPrecisionPredictionWeighting; } |
---|
| 557 | Void setUseHighPrecisionPredictionWeighting(Bool value) { m_useHighPrecisionPredictionWeighting = value; } |
---|
| 558 | |
---|
[313] | 559 | Void setUseAdaptiveQP ( Bool b ) { m_bUseAdaptiveQP = b; } |
---|
| 560 | Void setQPAdaptationRange ( Int i ) { m_iQPAdaptationRange = i; } |
---|
[1029] | 561 | |
---|
[313] | 562 | //====== Sequence ======== |
---|
| 563 | Int getFrameRate () { return m_iFrameRate; } |
---|
| 564 | UInt getFrameSkip () { return m_FrameSkip; } |
---|
| 565 | Int getSourceWidth () { return m_iSourceWidth; } |
---|
| 566 | Int getSourceHeight () { return m_iSourceHeight; } |
---|
| 567 | Int getFramesToBeEncoded () { return m_framesToBeEncoded; } |
---|
[1029] | 568 | Void setLambdaModifier ( UInt uiIndex, Double dValue ) { m_adLambdaModifier[ uiIndex ] = dValue; } |
---|
[313] | 569 | Double getLambdaModifier ( UInt uiIndex ) const { return m_adLambdaModifier[ uiIndex ]; } |
---|
| 570 | |
---|
| 571 | //==== Coding Structure ======== |
---|
| 572 | UInt getIntraPeriod () { return m_uiIntraPeriod; } |
---|
| 573 | UInt getDecodingRefreshType () { return m_uiDecodingRefreshType; } |
---|
| 574 | Int getGOPSize () { return m_iGOPSize; } |
---|
| 575 | Int getMaxDecPicBuffering (UInt tlayer) { return m_maxDecPicBuffering[tlayer]; } |
---|
| 576 | Int getNumReorderPics (UInt tlayer) { return m_numReorderPics[tlayer]; } |
---|
| 577 | Int getQP () { return m_iQP; } |
---|
[1029] | 578 | |
---|
[313] | 579 | Int getPad ( Int i ) { assert (i < 2 ); return m_aiPad[i]; } |
---|
[1029] | 580 | |
---|
[313] | 581 | //======== Transform ============= |
---|
| 582 | UInt getQuadtreeTULog2MaxSize () const { return m_uiQuadtreeTULog2MaxSize; } |
---|
| 583 | UInt getQuadtreeTULog2MinSize () const { return m_uiQuadtreeTULog2MinSize; } |
---|
| 584 | UInt getQuadtreeTUMaxDepthInter () const { return m_uiQuadtreeTUMaxDepthInter; } |
---|
| 585 | UInt getQuadtreeTUMaxDepthIntra () const { return m_uiQuadtreeTUMaxDepthIntra; } |
---|
[1029] | 586 | |
---|
[313] | 587 | //==== Loop/Deblock Filter ======== |
---|
| 588 | Bool getLoopFilterDisable () { return m_bLoopFilterDisable; } |
---|
| 589 | Bool getLoopFilterOffsetInPPS () { return m_loopFilterOffsetInPPS; } |
---|
| 590 | Int getLoopFilterBetaOffset () { return m_loopFilterBetaOffsetDiv2; } |
---|
| 591 | Int getLoopFilterTcOffset () { return m_loopFilterTcOffsetDiv2; } |
---|
| 592 | Bool getDeblockingFilterControlPresent() { return m_DeblockingFilterControlPresent; } |
---|
| 593 | Bool getDeblockingFilterMetric () { return m_DeblockingFilterMetric; } |
---|
| 594 | |
---|
| 595 | //==== Motion search ======== |
---|
| 596 | Int getFastSearch () { return m_iFastSearch; } |
---|
| 597 | Int getSearchRange () { return m_iSearchRange; } |
---|
| 598 | |
---|
| 599 | //==== Quality control ======== |
---|
| 600 | Int getMaxDeltaQP () { return m_iMaxDeltaQP; } |
---|
| 601 | Int getMaxCuDQPDepth () { return m_iMaxCuDQPDepth; } |
---|
| 602 | Bool getUseAdaptiveQP () { return m_bUseAdaptiveQP; } |
---|
| 603 | Int getQPAdaptationRange () { return m_iQPAdaptationRange; } |
---|
[1029] | 604 | |
---|
[313] | 605 | //==== Tool list ======== |
---|
| 606 | Void setUseASR ( Bool b ) { m_bUseASR = b; } |
---|
| 607 | Void setUseHADME ( Bool b ) { m_bUseHADME = b; } |
---|
| 608 | Void setUseRDOQ ( Bool b ) { m_useRDOQ = b; } |
---|
| 609 | Void setUseRDOQTS ( Bool b ) { m_useRDOQTS = b; } |
---|
| 610 | Void setRDpenalty ( UInt b ) { m_rdPenalty = b; } |
---|
| 611 | Void setUseFastEnc ( Bool b ) { m_bUseFastEnc = b; } |
---|
| 612 | Void setUseEarlyCU ( Bool b ) { m_bUseEarlyCU = b; } |
---|
| 613 | Void setUseFastDecisionForMerge ( Bool b ) { m_useFastDecisionForMerge = b; } |
---|
| 614 | Void setUseCbfFastMode ( Bool b ) { m_bUseCbfFastMode = b; } |
---|
| 615 | Void setUseEarlySkipDetection ( Bool b ) { m_useEarlySkipDetection = b; } |
---|
| 616 | Void setUseConstrainedIntraPred ( Bool b ) { m_bUseConstrainedIntraPred = b; } |
---|
| 617 | Void setPCMInputBitDepthFlag ( Bool b ) { m_bPCMInputBitDepthFlag = b; } |
---|
| 618 | Void setPCMFilterDisableFlag ( Bool b ) { m_bPCMFilterDisableFlag = b; } |
---|
| 619 | Void setUsePCM ( Bool b ) { m_usePCM = b; } |
---|
| 620 | Void setPCMLog2MaxSize ( UInt u ) { m_pcmLog2MaxSize = u; } |
---|
| 621 | Void setPCMLog2MinSize ( UInt u ) { m_uiPCMLog2MinSize = u; } |
---|
| 622 | Void setdQPs ( Int* p ) { m_aidQP = p; } |
---|
| 623 | Void setDeltaQpRD ( UInt u ) {m_uiDeltaQpRD = u; } |
---|
| 624 | Bool getUseASR () { return m_bUseASR; } |
---|
| 625 | Bool getUseHADME () { return m_bUseHADME; } |
---|
| 626 | Bool getUseRDOQ () { return m_useRDOQ; } |
---|
| 627 | Bool getUseRDOQTS () { return m_useRDOQTS; } |
---|
[1029] | 628 | Int getRDpenalty () { return m_rdPenalty; } |
---|
[313] | 629 | Bool getUseFastEnc () { return m_bUseFastEnc; } |
---|
| 630 | Bool getUseEarlyCU () { return m_bUseEarlyCU; } |
---|
| 631 | Bool getUseFastDecisionForMerge () { return m_useFastDecisionForMerge; } |
---|
[1029] | 632 | Bool getUseCbfFastMode () { return m_bUseCbfFastMode; } |
---|
[313] | 633 | Bool getUseEarlySkipDetection () { return m_useEarlySkipDetection; } |
---|
| 634 | Bool getUseConstrainedIntraPred () { return m_bUseConstrainedIntraPred; } |
---|
| 635 | Bool getPCMInputBitDepthFlag () { return m_bPCMInputBitDepthFlag; } |
---|
[1029] | 636 | Bool getPCMFilterDisableFlag () { return m_bPCMFilterDisableFlag; } |
---|
[313] | 637 | Bool getUsePCM () { return m_usePCM; } |
---|
| 638 | UInt getPCMLog2MaxSize () { return m_pcmLog2MaxSize; } |
---|
| 639 | UInt getPCMLog2MinSize () { return m_uiPCMLog2MinSize; } |
---|
| 640 | |
---|
[1029] | 641 | Bool getUseCrossComponentPrediction () const { return m_useCrossComponentPrediction; } |
---|
| 642 | Void setUseCrossComponentPrediction (const Bool value) { m_useCrossComponentPrediction = value; } |
---|
| 643 | Bool getUseReconBasedCrossCPredictionEstimate () const { return m_reconBasedCrossCPredictionEstimate; } |
---|
| 644 | Void setUseReconBasedCrossCPredictionEstimate (const Bool value) { m_reconBasedCrossCPredictionEstimate = value; } |
---|
| 645 | Void setSaoOffsetBitShift(ChannelType type, UInt uiBitShift) { m_saoOffsetBitShift[type] = uiBitShift; } |
---|
| 646 | |
---|
[313] | 647 | Bool getUseTransformSkip () { return m_useTransformSkip; } |
---|
| 648 | Void setUseTransformSkip ( Bool b ) { m_useTransformSkip = b; } |
---|
[1029] | 649 | Bool getUseResidualRotation () const { return m_useResidualRotation; } |
---|
| 650 | Void setUseResidualRotation (const Bool value) { m_useResidualRotation = value; } |
---|
| 651 | Bool getUseSingleSignificanceMapContext () const { return m_useSingleSignificanceMapContext; } |
---|
| 652 | Void setUseSingleSignificanceMapContext (const Bool value) { m_useSingleSignificanceMapContext = value; } |
---|
| 653 | Bool getUseGolombRiceParameterAdaptation () const { return m_useGolombRiceParameterAdaptation; } |
---|
| 654 | Void setUseGolombRiceParameterAdaptation (const Bool value) { m_useGolombRiceParameterAdaptation = value; } |
---|
| 655 | Bool getAlignCABACBeforeBypass () const { return m_alignCABACBeforeBypass; } |
---|
| 656 | Void setAlignCABACBeforeBypass (const Bool value) { m_alignCABACBeforeBypass = value; } |
---|
| 657 | Bool getUseResidualDPCM (const RDPCMSignallingMode signallingMode) const { return m_useResidualDPCM[signallingMode]; } |
---|
| 658 | Void setUseResidualDPCM (const RDPCMSignallingMode signallingMode, const Bool value) { m_useResidualDPCM[signallingMode] = value; } |
---|
[313] | 659 | Bool getUseTransformSkipFast () { return m_useTransformSkipFast; } |
---|
| 660 | Void setUseTransformSkipFast ( Bool b ) { m_useTransformSkipFast = b; } |
---|
[1029] | 661 | UInt getTransformSkipLog2MaxSize () const { return m_transformSkipLog2MaxSize; } |
---|
| 662 | Void setTransformSkipLog2MaxSize ( UInt u ) { m_transformSkipLog2MaxSize = u; } |
---|
| 663 | Void setDisableIntraReferenceSmoothing (Bool bValue) { m_disableIntraReferenceSmoothing=bValue; } |
---|
| 664 | Bool getDisableIntraReferenceSmoothing () const { return m_disableIntraReferenceSmoothing; } |
---|
| 665 | |
---|
[313] | 666 | Int* getdQPs () { return m_aidQP; } |
---|
| 667 | UInt getDeltaQpRD () { return m_uiDeltaQpRD; } |
---|
| 668 | |
---|
| 669 | //====== Slice ======== |
---|
[1029] | 670 | Void setSliceMode ( SliceConstraint i ) { m_sliceMode = i; } |
---|
| 671 | Void setSliceArgument ( Int i ) { m_sliceArgument = i; } |
---|
| 672 | SliceConstraint getSliceMode () const { return m_sliceMode; } |
---|
| 673 | Int getSliceArgument () { return m_sliceArgument; } |
---|
[313] | 674 | //====== Dependent Slice ======== |
---|
[1029] | 675 | Void setSliceSegmentMode ( SliceConstraint i ) { m_sliceSegmentMode = i; } |
---|
| 676 | Void setSliceSegmentArgument ( Int i ) { m_sliceSegmentArgument = i; } |
---|
| 677 | SliceConstraint getSliceSegmentMode () const { return m_sliceSegmentMode; } |
---|
| 678 | Int getSliceSegmentArgument () { return m_sliceSegmentArgument;} |
---|
| 679 | Void setLFCrossSliceBoundaryFlag ( Bool bValue ) { m_bLFCrossSliceBoundaryFlag = bValue; } |
---|
| 680 | Bool getLFCrossSliceBoundaryFlag () { return m_bLFCrossSliceBoundaryFlag; } |
---|
[313] | 681 | |
---|
[1029] | 682 | Void setUseSAO (Bool bVal) { m_bUseSAO = bVal; } |
---|
| 683 | Bool getUseSAO () { return m_bUseSAO; } |
---|
| 684 | Void setMaxNumOffsetsPerPic (Int iVal) { m_maxNumOffsetsPerPic = iVal; } |
---|
| 685 | Int getMaxNumOffsetsPerPic () { return m_maxNumOffsetsPerPic; } |
---|
| 686 | Void setSaoCtuBoundary (Bool val) { m_saoCtuBoundary = val; } |
---|
| 687 | Bool getSaoCtuBoundary () { return m_saoCtuBoundary; } |
---|
| 688 | Void setLFCrossTileBoundaryFlag ( Bool val ) { m_loopFilterAcrossTilesEnabledFlag = val; } |
---|
| 689 | Bool getLFCrossTileBoundaryFlag () { return m_loopFilterAcrossTilesEnabledFlag; } |
---|
| 690 | Void setTileUniformSpacingFlag ( Bool b ) { m_tileUniformSpacingFlag = b; } |
---|
| 691 | Bool getTileUniformSpacingFlag () { return m_tileUniformSpacingFlag; } |
---|
| 692 | Void setNumColumnsMinus1 ( Int i ) { m_iNumColumnsMinus1 = i; } |
---|
| 693 | Int getNumColumnsMinus1 () { return m_iNumColumnsMinus1; } |
---|
| 694 | Void setColumnWidth ( const std::vector<Int>& columnWidth ) { m_tileColumnWidth = columnWidth; } |
---|
| 695 | UInt getColumnWidth ( UInt columnIdx ) { return m_tileColumnWidth[columnIdx]; } |
---|
| 696 | Void setNumRowsMinus1 ( Int i ) { m_iNumRowsMinus1 = i; } |
---|
| 697 | Int getNumRowsMinus1 () { return m_iNumRowsMinus1; } |
---|
| 698 | Void setRowHeight ( const std::vector<Int>& rowHeight) { m_tileRowHeight = rowHeight; } |
---|
| 699 | UInt getRowHeight ( UInt rowIdx ) { return m_tileRowHeight[rowIdx]; } |
---|
[313] | 700 | Void xCheckGSParameters(); |
---|
[1029] | 701 | Void setWaveFrontSynchro(Int iWaveFrontSynchro) { m_iWaveFrontSynchro = iWaveFrontSynchro; } |
---|
| 702 | Int getWaveFrontsynchro() { return m_iWaveFrontSynchro; } |
---|
| 703 | Void setDecodedPictureHashSEIEnabled(Int b) { m_decodedPictureHashSEIEnabled = b; } |
---|
| 704 | Int getDecodedPictureHashSEIEnabled() { return m_decodedPictureHashSEIEnabled; } |
---|
| 705 | Void setBufferingPeriodSEIEnabled(Int b) { m_bufferingPeriodSEIEnabled = b; } |
---|
| 706 | Int getBufferingPeriodSEIEnabled() { return m_bufferingPeriodSEIEnabled; } |
---|
| 707 | Void setPictureTimingSEIEnabled(Int b) { m_pictureTimingSEIEnabled = b; } |
---|
| 708 | Int getPictureTimingSEIEnabled() { return m_pictureTimingSEIEnabled; } |
---|
| 709 | Void setRecoveryPointSEIEnabled(Int b) { m_recoveryPointSEIEnabled = b; } |
---|
| 710 | Int getRecoveryPointSEIEnabled() { return m_recoveryPointSEIEnabled; } |
---|
| 711 | Void setToneMappingInfoSEIEnabled(Bool b) { m_toneMappingInfoSEIEnabled = b; } |
---|
| 712 | Bool getToneMappingInfoSEIEnabled() { return m_toneMappingInfoSEIEnabled; } |
---|
| 713 | Void setTMISEIToneMapId(Int b) { m_toneMapId = b; } |
---|
| 714 | Int getTMISEIToneMapId() { return m_toneMapId; } |
---|
| 715 | Void setTMISEIToneMapCancelFlag(Bool b) { m_toneMapCancelFlag=b; } |
---|
| 716 | Bool getTMISEIToneMapCancelFlag() { return m_toneMapCancelFlag; } |
---|
| 717 | Void setTMISEIToneMapPersistenceFlag(Bool b) { m_toneMapPersistenceFlag = b; } |
---|
| 718 | Bool getTMISEIToneMapPersistenceFlag() { return m_toneMapPersistenceFlag; } |
---|
| 719 | Void setTMISEICodedDataBitDepth(Int b) { m_codedDataBitDepth = b; } |
---|
| 720 | Int getTMISEICodedDataBitDepth() { return m_codedDataBitDepth; } |
---|
| 721 | Void setTMISEITargetBitDepth(Int b) { m_targetBitDepth = b; } |
---|
| 722 | Int getTMISEITargetBitDepth() { return m_targetBitDepth; } |
---|
| 723 | Void setTMISEIModelID(Int b) { m_modelId = b; } |
---|
| 724 | Int getTMISEIModelID() { return m_modelId; } |
---|
| 725 | Void setTMISEIMinValue(Int b) { m_minValue = b; } |
---|
| 726 | Int getTMISEIMinValue() { return m_minValue; } |
---|
| 727 | Void setTMISEIMaxValue(Int b) { m_maxValue = b; } |
---|
| 728 | Int getTMISEIMaxValue() { return m_maxValue; } |
---|
| 729 | Void setTMISEISigmoidMidpoint(Int b) { m_sigmoidMidpoint = b; } |
---|
| 730 | Int getTMISEISigmoidMidpoint() { return m_sigmoidMidpoint; } |
---|
| 731 | Void setTMISEISigmoidWidth(Int b) { m_sigmoidWidth = b; } |
---|
| 732 | Int getTMISEISigmoidWidth() { return m_sigmoidWidth; } |
---|
| 733 | Void setTMISEIStartOfCodedInterva( Int* p ) { m_startOfCodedInterval = p; } |
---|
| 734 | Int* getTMISEIStartOfCodedInterva() { return m_startOfCodedInterval; } |
---|
| 735 | Void setTMISEINumPivots(Int b) { m_numPivots = b; } |
---|
| 736 | Int getTMISEINumPivots() { return m_numPivots; } |
---|
| 737 | Void setTMISEICodedPivotValue( Int* p ) { m_codedPivotValue = p; } |
---|
| 738 | Int* getTMISEICodedPivotValue() { return m_codedPivotValue; } |
---|
| 739 | Void setTMISEITargetPivotValue( Int* p ) { m_targetPivotValue = p; } |
---|
| 740 | Int* getTMISEITargetPivotValue() { return m_targetPivotValue; } |
---|
| 741 | Void setTMISEICameraIsoSpeedIdc(Int b) { m_cameraIsoSpeedIdc = b; } |
---|
| 742 | Int getTMISEICameraIsoSpeedIdc() { return m_cameraIsoSpeedIdc; } |
---|
| 743 | Void setTMISEICameraIsoSpeedValue(Int b) { m_cameraIsoSpeedValue = b; } |
---|
| 744 | Int getTMISEICameraIsoSpeedValue() { return m_cameraIsoSpeedValue; } |
---|
| 745 | Void setTMISEIExposureIndexIdc(Int b) { m_exposureIndexIdc = b; } |
---|
| 746 | Int getTMISEIExposurIndexIdc() { return m_exposureIndexIdc; } |
---|
| 747 | Void setTMISEIExposureIndexValue(Int b) { m_exposureIndexValue = b; } |
---|
| 748 | Int getTMISEIExposurIndexValue() { return m_exposureIndexValue; } |
---|
[1230] | 749 | Void setTMISEIExposureCompensationValueSignFlag(Bool b) { m_exposureCompensationValueSignFlag = b; } |
---|
| 750 | Bool getTMISEIExposureCompensationValueSignFlag() { return m_exposureCompensationValueSignFlag; } |
---|
[1029] | 751 | Void setTMISEIExposureCompensationValueNumerator(Int b) { m_exposureCompensationValueNumerator = b; } |
---|
| 752 | Int getTMISEIExposureCompensationValueNumerator() { return m_exposureCompensationValueNumerator; } |
---|
| 753 | Void setTMISEIExposureCompensationValueDenomIdc(Int b) { m_exposureCompensationValueDenomIdc =b; } |
---|
| 754 | Int getTMISEIExposureCompensationValueDenomIdc() { return m_exposureCompensationValueDenomIdc; } |
---|
| 755 | Void setTMISEIRefScreenLuminanceWhite(Int b) { m_refScreenLuminanceWhite = b; } |
---|
| 756 | Int getTMISEIRefScreenLuminanceWhite() { return m_refScreenLuminanceWhite; } |
---|
| 757 | Void setTMISEIExtendedRangeWhiteLevel(Int b) { m_extendedRangeWhiteLevel = b; } |
---|
| 758 | Int getTMISEIExtendedRangeWhiteLevel() { return m_extendedRangeWhiteLevel; } |
---|
| 759 | Void setTMISEINominalBlackLevelLumaCodeValue(Int b) { m_nominalBlackLevelLumaCodeValue = b; } |
---|
| 760 | Int getTMISEINominalBlackLevelLumaCodeValue() { return m_nominalBlackLevelLumaCodeValue; } |
---|
| 761 | Void setTMISEINominalWhiteLevelLumaCodeValue(Int b) { m_nominalWhiteLevelLumaCodeValue = b; } |
---|
| 762 | Int getTMISEINominalWhiteLevelLumaCodeValue() { return m_nominalWhiteLevelLumaCodeValue; } |
---|
| 763 | Void setTMISEIExtendedWhiteLevelLumaCodeValue(Int b) { m_extendedWhiteLevelLumaCodeValue =b; } |
---|
| 764 | Int getTMISEIExtendedWhiteLevelLumaCodeValue() { return m_extendedWhiteLevelLumaCodeValue; } |
---|
| 765 | Void setFramePackingArrangementSEIEnabled(Int b) { m_framePackingSEIEnabled = b; } |
---|
| 766 | Int getFramePackingArrangementSEIEnabled() { return m_framePackingSEIEnabled; } |
---|
| 767 | Void setFramePackingArrangementSEIType(Int b) { m_framePackingSEIType = b; } |
---|
| 768 | Int getFramePackingArrangementSEIType() { return m_framePackingSEIType; } |
---|
| 769 | Void setFramePackingArrangementSEIId(Int b) { m_framePackingSEIId = b; } |
---|
| 770 | Int getFramePackingArrangementSEIId() { return m_framePackingSEIId; } |
---|
| 771 | Void setFramePackingArrangementSEIQuincunx(Int b) { m_framePackingSEIQuincunx = b; } |
---|
| 772 | Int getFramePackingArrangementSEIQuincunx() { return m_framePackingSEIQuincunx; } |
---|
| 773 | Void setFramePackingArrangementSEIInterpretation(Int b) { m_framePackingSEIInterpretation = b; } |
---|
| 774 | Int getFramePackingArrangementSEIInterpretation() { return m_framePackingSEIInterpretation; } |
---|
| 775 | Void setSegmentedRectFramePackingArrangementSEIEnabled(Int b) { m_segmentedRectFramePackingSEIEnabled = b; } |
---|
| 776 | Int getSegmentedRectFramePackingArrangementSEIEnabled() { return m_segmentedRectFramePackingSEIEnabled; } |
---|
| 777 | Void setSegmentedRectFramePackingArrangementSEICancel(Int b) { m_segmentedRectFramePackingSEICancel = b; } |
---|
| 778 | Int getSegmentedRectFramePackingArrangementSEICancel() { return m_segmentedRectFramePackingSEICancel; } |
---|
| 779 | Void setSegmentedRectFramePackingArrangementSEIType(Int b) { m_segmentedRectFramePackingSEIType = b; } |
---|
| 780 | Int getSegmentedRectFramePackingArrangementSEIType() { return m_segmentedRectFramePackingSEIType; } |
---|
| 781 | Void setSegmentedRectFramePackingArrangementSEIPersistence(Int b) { m_segmentedRectFramePackingSEIPersistence = b; } |
---|
| 782 | Int getSegmentedRectFramePackingArrangementSEIPersistence() { return m_segmentedRectFramePackingSEIPersistence; } |
---|
| 783 | Void setDisplayOrientationSEIAngle(Int b) { m_displayOrientationSEIAngle = b; } |
---|
| 784 | Int getDisplayOrientationSEIAngle() { return m_displayOrientationSEIAngle; } |
---|
| 785 | Void setTemporalLevel0IndexSEIEnabled(Int b) { m_temporalLevel0IndexSEIEnabled = b; } |
---|
| 786 | Int getTemporalLevel0IndexSEIEnabled() { return m_temporalLevel0IndexSEIEnabled; } |
---|
| 787 | Void setGradualDecodingRefreshInfoEnabled(Int b) { m_gradualDecodingRefreshInfoEnabled = b; } |
---|
| 788 | Int getGradualDecodingRefreshInfoEnabled() { return m_gradualDecodingRefreshInfoEnabled; } |
---|
| 789 | Void setNoDisplaySEITLayer(Int b) { m_noDisplaySEITLayer = b; } |
---|
| 790 | Int getNoDisplaySEITLayer() { return m_noDisplaySEITLayer; } |
---|
| 791 | Void setDecodingUnitInfoSEIEnabled(Int b) { m_decodingUnitInfoSEIEnabled = b; } |
---|
| 792 | Int getDecodingUnitInfoSEIEnabled() { return m_decodingUnitInfoSEIEnabled; } |
---|
| 793 | Void setSOPDescriptionSEIEnabled(Int b) { m_SOPDescriptionSEIEnabled = b; } |
---|
| 794 | Int getSOPDescriptionSEIEnabled() { return m_SOPDescriptionSEIEnabled; } |
---|
| 795 | Void setScalableNestingSEIEnabled(Int b) { m_scalableNestingSEIEnabled = b; } |
---|
| 796 | Int getScalableNestingSEIEnabled() { return m_scalableNestingSEIEnabled; } |
---|
| 797 | Void setTMCTSSEIEnabled(Bool b) { m_tmctsSEIEnabled = b; } |
---|
| 798 | Bool getTMCTSSEIEnabled() { return m_tmctsSEIEnabled; } |
---|
| 799 | Void setTimeCodeSEIEnabled(Bool b) { m_timeCodeSEIEnabled = b; } |
---|
| 800 | Bool getTimeCodeSEIEnabled() { return m_timeCodeSEIEnabled; } |
---|
| 801 | Void setNumberOfTimeSets(Int value) { m_timeCodeSEINumTs = value; } |
---|
| 802 | Int getNumberOfTimesets() { return m_timeCodeSEINumTs; } |
---|
| 803 | Void setTimeSet(TComSEITimeSet element, Int index) { m_timeSetArray[index] = element; } |
---|
| 804 | TComSEITimeSet &getTimeSet(Int index) { return m_timeSetArray[index]; } |
---|
| 805 | const TComSEITimeSet &getTimeSet(Int index) const { return m_timeSetArray[index]; } |
---|
| 806 | Void setKneeSEIEnabled(Int b) { m_kneeSEIEnabled = b; } |
---|
| 807 | Bool getKneeSEIEnabled() { return m_kneeSEIEnabled; } |
---|
| 808 | Void setKneeSEIId(Int b) { m_kneeSEIId = b; } |
---|
| 809 | Int getKneeSEIId() { return m_kneeSEIId; } |
---|
| 810 | Void setKneeSEICancelFlag(Bool b) { m_kneeSEICancelFlag=b; } |
---|
| 811 | Bool getKneeSEICancelFlag() { return m_kneeSEICancelFlag; } |
---|
| 812 | Void setKneeSEIPersistenceFlag(Bool b) { m_kneeSEIPersistenceFlag = b; } |
---|
| 813 | Bool getKneeSEIPersistenceFlag() { return m_kneeSEIPersistenceFlag; } |
---|
| 814 | Void setKneeSEIInputDrange(Int b) { m_kneeSEIInputDrange = b; } |
---|
| 815 | Int getKneeSEIInputDrange() { return m_kneeSEIInputDrange; } |
---|
| 816 | Void setKneeSEIInputDispLuminance(Int b) { m_kneeSEIInputDispLuminance = b; } |
---|
| 817 | Int getKneeSEIInputDispLuminance() { return m_kneeSEIInputDispLuminance; } |
---|
| 818 | Void setKneeSEIOutputDrange(Int b) { m_kneeSEIOutputDrange = b; } |
---|
| 819 | Int getKneeSEIOutputDrange() { return m_kneeSEIOutputDrange; } |
---|
| 820 | Void setKneeSEIOutputDispLuminance(Int b) { m_kneeSEIOutputDispLuminance = b; } |
---|
| 821 | Int getKneeSEIOutputDispLuminance() { return m_kneeSEIOutputDispLuminance; } |
---|
| 822 | Void setKneeSEINumKneePointsMinus1(Int b) { m_kneeSEINumKneePointsMinus1 = b; } |
---|
| 823 | Int getKneeSEINumKneePointsMinus1() { return m_kneeSEINumKneePointsMinus1; } |
---|
| 824 | Void setKneeSEIInputKneePoint(Int *p) { m_kneeSEIInputKneePoint = p; } |
---|
| 825 | Int* getKneeSEIInputKneePoint() { return m_kneeSEIInputKneePoint; } |
---|
| 826 | Void setKneeSEIOutputKneePoint(Int *p) { m_kneeSEIOutputKneePoint = p; } |
---|
| 827 | Int* getKneeSEIOutputKneePoint() { return m_kneeSEIOutputKneePoint; } |
---|
| 828 | Void setMasteringDisplaySEI(const TComSEIMasteringDisplay &src) { m_masteringDisplay = src; } |
---|
| 829 | const TComSEIMasteringDisplay &getMasteringDisplaySEI() const { return m_masteringDisplay; } |
---|
| 830 | Void setUseWP ( Bool b ) { m_useWeightedPred = b; } |
---|
| 831 | Void setWPBiPred ( Bool b ) { m_useWeightedBiPred = b; } |
---|
| 832 | Bool getUseWP () { return m_useWeightedPred; } |
---|
| 833 | Bool getWPBiPred () { return m_useWeightedBiPred; } |
---|
| 834 | Void setLog2ParallelMergeLevelMinus2 ( UInt u ) { m_log2ParallelMergeLevelMinus2 = u; } |
---|
| 835 | UInt getLog2ParallelMergeLevelMinus2 () { return m_log2ParallelMergeLevelMinus2; } |
---|
| 836 | Void setMaxNumMergeCand ( UInt u ) { m_maxNumMergeCand = u; } |
---|
| 837 | UInt getMaxNumMergeCand () { return m_maxNumMergeCand; } |
---|
| 838 | Void setUseScalingListId ( ScalingListMode u ) { m_useScalingListId = u; } |
---|
| 839 | ScalingListMode getUseScalingListId () { return m_useScalingListId; } |
---|
| 840 | Void setScalingListFile ( Char* pch ) { m_scalingListFile = pch; } |
---|
| 841 | Char* getScalingListFile () { return m_scalingListFile; } |
---|
| 842 | Void setTMVPModeId ( Int u ) { m_TMVPModeId = u; } |
---|
| 843 | Int getTMVPModeId () { return m_TMVPModeId; } |
---|
[1230] | 844 | Void setSignHideFlag( Bool signHideFlag ) { m_signHideFlag = signHideFlag; } |
---|
| 845 | Bool getSignHideFlag() { return m_signHideFlag; } |
---|
[1029] | 846 | Bool getUseRateCtrl () { return m_RCEnableRateControl; } |
---|
| 847 | Void setUseRateCtrl ( Bool b ) { m_RCEnableRateControl = b; } |
---|
| 848 | Int getTargetBitrate () { return m_RCTargetBitrate; } |
---|
| 849 | Void setTargetBitrate ( Int bitrate ) { m_RCTargetBitrate = bitrate; } |
---|
| 850 | Int getKeepHierBit () { return m_RCKeepHierarchicalBit; } |
---|
| 851 | Void setKeepHierBit ( Int i ) { m_RCKeepHierarchicalBit = i; } |
---|
| 852 | Bool getLCULevelRC () { return m_RCLCULevelRC; } |
---|
| 853 | Void setLCULevelRC ( Bool b ) { m_RCLCULevelRC = b; } |
---|
| 854 | Bool getUseLCUSeparateModel () { return m_RCUseLCUSeparateModel; } |
---|
| 855 | Void setUseLCUSeparateModel ( Bool b ) { m_RCUseLCUSeparateModel = b; } |
---|
| 856 | Int getInitialQP () { return m_RCInitialQP; } |
---|
| 857 | Void setInitialQP ( Int QP ) { m_RCInitialQP = QP; } |
---|
| 858 | Bool getForceIntraQP () { return m_RCForceIntraQP; } |
---|
| 859 | Void setForceIntraQP ( Bool b ) { m_RCForceIntraQP = b; } |
---|
| 860 | Bool getTransquantBypassEnableFlag() { return m_TransquantBypassEnableFlag; } |
---|
| 861 | Void setTransquantBypassEnableFlag(Bool flag) { m_TransquantBypassEnableFlag = flag; } |
---|
| 862 | Bool getCUTransquantBypassFlagForceValue() { return m_CUTransquantBypassFlagForce; } |
---|
| 863 | Void setCUTransquantBypassFlagForceValue(Bool flag) { m_CUTransquantBypassFlagForce = flag; } |
---|
| 864 | CostMode getCostMode( ) { return m_costMode; } |
---|
| 865 | Void setCostMode(CostMode m ) { m_costMode = m; } |
---|
| 866 | |
---|
| 867 | Void setVPS(TComVPS *p) { m_cVPS = *p; } |
---|
| 868 | TComVPS * getVPS() { return &m_cVPS; } |
---|
| 869 | Void setUseRecalculateQPAccordingToLambda (Bool b) { m_recalculateQPAccordingToLambda = b; } |
---|
| 870 | Bool getUseRecalculateQPAccordingToLambda () { return m_recalculateQPAccordingToLambda; } |
---|
| 871 | |
---|
| 872 | Void setUseStrongIntraSmoothing ( Bool b ) { m_useStrongIntraSmoothing = b; } |
---|
| 873 | Bool getUseStrongIntraSmoothing () { return m_useStrongIntraSmoothing; } |
---|
| 874 | |
---|
| 875 | Void setActiveParameterSetsSEIEnabled ( Int b ) { m_activeParameterSetsSEIEnabled = b; } |
---|
| 876 | Int getActiveParameterSetsSEIEnabled () { return m_activeParameterSetsSEIEnabled; } |
---|
| 877 | Bool getVuiParametersPresentFlag() { return m_vuiParametersPresentFlag; } |
---|
| 878 | Void setVuiParametersPresentFlag(Bool i) { m_vuiParametersPresentFlag = i; } |
---|
| 879 | Bool getAspectRatioInfoPresentFlag() { return m_aspectRatioInfoPresentFlag; } |
---|
| 880 | Void setAspectRatioInfoPresentFlag(Bool i) { m_aspectRatioInfoPresentFlag = i; } |
---|
| 881 | Int getAspectRatioIdc() { return m_aspectRatioIdc; } |
---|
| 882 | Void setAspectRatioIdc(Int i) { m_aspectRatioIdc = i; } |
---|
| 883 | Int getSarWidth() { return m_sarWidth; } |
---|
| 884 | Void setSarWidth(Int i) { m_sarWidth = i; } |
---|
| 885 | Int getSarHeight() { return m_sarHeight; } |
---|
| 886 | Void setSarHeight(Int i) { m_sarHeight = i; } |
---|
| 887 | Bool getOverscanInfoPresentFlag() { return m_overscanInfoPresentFlag; } |
---|
| 888 | Void setOverscanInfoPresentFlag(Bool i) { m_overscanInfoPresentFlag = i; } |
---|
| 889 | Bool getOverscanAppropriateFlag() { return m_overscanAppropriateFlag; } |
---|
| 890 | Void setOverscanAppropriateFlag(Bool i) { m_overscanAppropriateFlag = i; } |
---|
| 891 | Bool getVideoSignalTypePresentFlag() { return m_videoSignalTypePresentFlag; } |
---|
| 892 | Void setVideoSignalTypePresentFlag(Bool i) { m_videoSignalTypePresentFlag = i; } |
---|
| 893 | Int getVideoFormat() { return m_videoFormat; } |
---|
| 894 | Void setVideoFormat(Int i) { m_videoFormat = i; } |
---|
| 895 | Bool getVideoFullRangeFlag() { return m_videoFullRangeFlag; } |
---|
| 896 | Void setVideoFullRangeFlag(Bool i) { m_videoFullRangeFlag = i; } |
---|
| 897 | Bool getColourDescriptionPresentFlag() { return m_colourDescriptionPresentFlag; } |
---|
| 898 | Void setColourDescriptionPresentFlag(Bool i) { m_colourDescriptionPresentFlag = i; } |
---|
| 899 | Int getColourPrimaries() { return m_colourPrimaries; } |
---|
| 900 | Void setColourPrimaries(Int i) { m_colourPrimaries = i; } |
---|
| 901 | Int getTransferCharacteristics() { return m_transferCharacteristics; } |
---|
| 902 | Void setTransferCharacteristics(Int i) { m_transferCharacteristics = i; } |
---|
| 903 | Int getMatrixCoefficients() { return m_matrixCoefficients; } |
---|
| 904 | Void setMatrixCoefficients(Int i) { m_matrixCoefficients = i; } |
---|
| 905 | Bool getChromaLocInfoPresentFlag() { return m_chromaLocInfoPresentFlag; } |
---|
| 906 | Void setChromaLocInfoPresentFlag(Bool i) { m_chromaLocInfoPresentFlag = i; } |
---|
| 907 | Int getChromaSampleLocTypeTopField() { return m_chromaSampleLocTypeTopField; } |
---|
| 908 | Void setChromaSampleLocTypeTopField(Int i) { m_chromaSampleLocTypeTopField = i; } |
---|
| 909 | Int getChromaSampleLocTypeBottomField() { return m_chromaSampleLocTypeBottomField; } |
---|
| 910 | Void setChromaSampleLocTypeBottomField(Int i) { m_chromaSampleLocTypeBottomField = i; } |
---|
| 911 | Bool getNeutralChromaIndicationFlag() { return m_neutralChromaIndicationFlag; } |
---|
| 912 | Void setNeutralChromaIndicationFlag(Bool i) { m_neutralChromaIndicationFlag = i; } |
---|
| 913 | Window &getDefaultDisplayWindow() { return m_defaultDisplayWindow; } |
---|
| 914 | Void setDefaultDisplayWindow (Int offsetLeft, Int offsetRight, Int offsetTop, Int offsetBottom ) { m_defaultDisplayWindow.setWindow (offsetLeft, offsetRight, offsetTop, offsetBottom); } |
---|
| 915 | Bool getFrameFieldInfoPresentFlag() { return m_frameFieldInfoPresentFlag; } |
---|
| 916 | Void setFrameFieldInfoPresentFlag(Bool i) { m_frameFieldInfoPresentFlag = i; } |
---|
| 917 | Bool getPocProportionalToTimingFlag() { return m_pocProportionalToTimingFlag; } |
---|
| 918 | Void setPocProportionalToTimingFlag(Bool x) { m_pocProportionalToTimingFlag = x; } |
---|
| 919 | Int getNumTicksPocDiffOneMinus1() { return m_numTicksPocDiffOneMinus1; } |
---|
| 920 | Void setNumTicksPocDiffOneMinus1(Int x) { m_numTicksPocDiffOneMinus1 = x; } |
---|
| 921 | Bool getBitstreamRestrictionFlag() { return m_bitstreamRestrictionFlag; } |
---|
| 922 | Void setBitstreamRestrictionFlag(Bool i) { m_bitstreamRestrictionFlag = i; } |
---|
| 923 | Bool getTilesFixedStructureFlag() { return m_tilesFixedStructureFlag; } |
---|
| 924 | Void setTilesFixedStructureFlag(Bool i) { m_tilesFixedStructureFlag = i; } |
---|
| 925 | Bool getMotionVectorsOverPicBoundariesFlag() { return m_motionVectorsOverPicBoundariesFlag; } |
---|
| 926 | Void setMotionVectorsOverPicBoundariesFlag(Bool i) { m_motionVectorsOverPicBoundariesFlag = i; } |
---|
| 927 | Int getMinSpatialSegmentationIdc() { return m_minSpatialSegmentationIdc; } |
---|
| 928 | Void setMinSpatialSegmentationIdc(Int i) { m_minSpatialSegmentationIdc = i; } |
---|
| 929 | Int getMaxBytesPerPicDenom() { return m_maxBytesPerPicDenom; } |
---|
| 930 | Void setMaxBytesPerPicDenom(Int i) { m_maxBytesPerPicDenom = i; } |
---|
| 931 | Int getMaxBitsPerMinCuDenom() { return m_maxBitsPerMinCuDenom; } |
---|
| 932 | Void setMaxBitsPerMinCuDenom(Int i) { m_maxBitsPerMinCuDenom = i; } |
---|
| 933 | Int getLog2MaxMvLengthHorizontal() { return m_log2MaxMvLengthHorizontal; } |
---|
| 934 | Void setLog2MaxMvLengthHorizontal(Int i) { m_log2MaxMvLengthHorizontal = i; } |
---|
| 935 | Int getLog2MaxMvLengthVertical() { return m_log2MaxMvLengthVertical; } |
---|
| 936 | Void setLog2MaxMvLengthVertical(Int i) { m_log2MaxMvLengthVertical = i; } |
---|
| 937 | |
---|
| 938 | Bool getProgressiveSourceFlag() const { return m_progressiveSourceFlag; } |
---|
| 939 | Void setProgressiveSourceFlag(Bool b) { m_progressiveSourceFlag = b; } |
---|
| 940 | |
---|
| 941 | Bool getInterlacedSourceFlag() const { return m_interlacedSourceFlag; } |
---|
| 942 | Void setInterlacedSourceFlag(Bool b) { m_interlacedSourceFlag = b; } |
---|
| 943 | |
---|
| 944 | Bool getNonPackedConstraintFlag() const { return m_nonPackedConstraintFlag; } |
---|
| 945 | Void setNonPackedConstraintFlag(Bool b) { m_nonPackedConstraintFlag = b; } |
---|
| 946 | |
---|
| 947 | Bool getFrameOnlyConstraintFlag() const { return m_frameOnlyConstraintFlag; } |
---|
| 948 | Void setFrameOnlyConstraintFlag(Bool b) { m_frameOnlyConstraintFlag = b; } |
---|
| 949 | |
---|
| 950 | UInt getBitDepthConstraintValue() const { return m_bitDepthConstraintValue; } |
---|
| 951 | Void setBitDepthConstraintValue(UInt v) { m_bitDepthConstraintValue=v; } |
---|
| 952 | |
---|
| 953 | ChromaFormat getChromaFormatConstraintValue() const { return m_chromaFormatConstraintValue; } |
---|
| 954 | Void setChromaFormatConstraintValue(ChromaFormat v) { m_chromaFormatConstraintValue=v; } |
---|
| 955 | |
---|
| 956 | Bool getIntraConstraintFlag() const { return m_intraConstraintFlag; } |
---|
| 957 | Void setIntraConstraintFlag(Bool b) { m_intraConstraintFlag=b; } |
---|
| 958 | |
---|
| 959 | Bool getLowerBitRateConstraintFlag() const { return m_lowerBitRateConstraintFlag; } |
---|
| 960 | Void setLowerBitRateConstraintFlag(Bool b) { m_lowerBitRateConstraintFlag=b; } |
---|
| 961 | Bool getChromaSamplingFilterHintEnabled() { return m_chromaSamplingFilterHintEnabled;} |
---|
| 962 | Void setChromaSamplingFilterHintEnabled(Bool i) { m_chromaSamplingFilterHintEnabled = i;} |
---|
| 963 | Int getChromaSamplingHorFilterIdc() { return m_chromaSamplingHorFilterIdc;} |
---|
| 964 | Void setChromaSamplingHorFilterIdc(Int i) { m_chromaSamplingHorFilterIdc = i;} |
---|
| 965 | Int getChromaSamplingVerFilterIdc() { return m_chromaSamplingVerFilterIdc;} |
---|
| 966 | Void setChromaSamplingVerFilterIdc(Int i) { m_chromaSamplingVerFilterIdc = i;} |
---|
| 967 | |
---|
| 968 | #if Q0189_TMVP_CONSTRAINTS |
---|
[1037] | 969 | Void setTMVPConstraintsSEIEnabled(Int b) { m_TMVPConstraintsSEIEnabled = b; } |
---|
| 970 | Int getTMVPConstraintsSEIEnabled() { return m_TMVPConstraintsSEIEnabled; } |
---|
[1029] | 971 | |
---|
[815] | 972 | #endif |
---|
[1037] | 973 | #if P0123_ALPHA_CHANNEL_SEI |
---|
| 974 | Void setAlphaSEIEnabled(Bool b) { m_alphaSEIEnabled = b; } |
---|
| 975 | Bool getAlphaSEIEnabled() { return m_alphaSEIEnabled; } |
---|
| 976 | Void setAlphaCancelFlag(Bool b) { m_alphaCancelFlag = b; } |
---|
| 977 | Bool getAlphaCancelFlag() { return m_alphaCancelFlag; } |
---|
| 978 | Void setAlphaUseIdc(Int idc) { m_alphaUseIdc = idc; } |
---|
| 979 | Int getAlphaUseIdc() { return m_alphaUseIdc; } |
---|
| 980 | Void setAlphaBitDepthMinus8(Int d) { m_alphaBitDepthMinus8 = d; } |
---|
| 981 | Int getAlphaBitDepthMinus8() { return m_alphaBitDepthMinus8; } |
---|
| 982 | Void setAlphaTransparentValue(Int v) { m_alphaTransparentValue = v; } |
---|
| 983 | Int getAlphaTransparentValue() { return m_alphaTransparentValue; } |
---|
| 984 | Void setAlphaOpaqueValue(Int v) { m_alphaOpaqueValue = v; } |
---|
| 985 | Int getAlphaOpaqueValue() { return m_alphaOpaqueValue; } |
---|
| 986 | Void setAlphaIncrementFlag(Bool b) { m_alphaIncrementFlag = b; } |
---|
| 987 | Int getAlphaIncrementFlag() { return m_alphaIncrementFlag; } |
---|
| 988 | Void setAlphaClipFlag(Bool b) { m_alphaClipFlag = b; } |
---|
| 989 | Bool getAlphaClipFlag() { return m_alphaClipFlag; } |
---|
| 990 | Void setAlphaClipTypeFlag(Bool b) { m_alphaClipTypeFlag = b; } |
---|
| 991 | Bool getAlphaClipTypeFlag() { return m_alphaClipTypeFlag; } |
---|
| 992 | #endif |
---|
[856] | 993 | #if Q0074_COLOUR_REMAPPING_SEI |
---|
[1089] | 994 | Void setCRISEIFileRoot( Char* pch ) { m_colourRemapSEIFileRoot = pch; } |
---|
| 995 | Char* getCRISEIFileRoot() { return m_colourRemapSEIFileRoot; } |
---|
[713] | 996 | #endif |
---|
[313] | 997 | #if SVC_EXTENSION |
---|
[1130] | 998 | UInt getLayerId() { return m_layerId; } |
---|
| 999 | Void setLayerId( UInt layer ) { m_layerId = layer; } |
---|
| 1000 | UInt getNumLayer() { return m_numLayer; } |
---|
| 1001 | Void setNumLayer( UInt uiNum ) { m_numLayer = uiNum; } |
---|
[313] | 1002 | Void setConformanceWindow(Window& conformanceWindow ) { m_conformanceWindow = conformanceWindow; } |
---|
[1130] | 1003 | Void setElRapSliceTypeB(Int bEnabled) { m_elRapSliceBEnabled = bEnabled; } |
---|
| 1004 | Int getElRapSliceTypeB() { return m_elRapSliceBEnabled; } |
---|
| 1005 | Void setAdaptiveResolutionChange(Int x) { m_adaptiveResolutionChange = x; } |
---|
| 1006 | Int getAdaptiveResolutionChange() { return m_adaptiveResolutionChange; } |
---|
[1131] | 1007 | Void setLayerSwitchOffBegin(Int x) { m_layerSwitchOffBegin = x; } |
---|
| 1008 | Int getLayerSwitchOffBegin() { return m_layerSwitchOffBegin; } |
---|
| 1009 | Void setLayerSwitchOffEnd(Int x) { m_layerSwitchOffEnd = x; } |
---|
| 1010 | Int getLayerSwitchOffEnd() { return m_layerSwitchOffEnd; } |
---|
| 1011 | Void setSkipPictureAtArcSwitch(Int x) { m_skipPictureAtArcSwitch = x; } |
---|
| 1012 | Int getSkipPictureAtArcSwitch() { return m_skipPictureAtArcSwitch; } |
---|
[494] | 1013 | #if AUXILIARY_PICTURES |
---|
[1131] | 1014 | Void setChromaFormatIDC(ChromaFormat x) { m_chromaFormatIDC = x; } |
---|
| 1015 | ChromaFormat getChromaFormatIDC() { return m_chromaFormatIDC; } |
---|
[442] | 1016 | #endif |
---|
[1131] | 1017 | Bool getAltOuputLayerFlag() const { return m_altOutputLayerFlag; } |
---|
| 1018 | Void setAltOuputLayerFlag(Bool b) { m_altOutputLayerFlag = b; } |
---|
| 1019 | Bool getCrossLayerBLAFlag() const { return m_crossLayerBLAFlag; } |
---|
| 1020 | Void setCrossLayerBLAFlag(Bool b) { m_crossLayerBLAFlag = b; } |
---|
[595] | 1021 | #if FAST_INTRA_SHVC |
---|
[1131] | 1022 | Bool getUseFastIntraScalable () { return m_useFastIntraScalable; } |
---|
| 1023 | Void setUseFastIntraScalable ( Bool b ) { m_useFastIntraScalable = b; } |
---|
[540] | 1024 | #endif |
---|
[1148] | 1025 | |
---|
[595] | 1026 | Int getNumDirectRefLayers () { return m_numDirectRefLayers; } |
---|
| 1027 | Void setNumDirectRefLayers (Int num) { m_numDirectRefLayers = num; } |
---|
| 1028 | |
---|
| 1029 | Int getRefLayerId (Int i) { return m_refLayerId[i]; } |
---|
| 1030 | Void setRefLayerId (Int i, Int refLayerId) { m_refLayerId[i] = refLayerId; } |
---|
| 1031 | |
---|
| 1032 | Int getNumActiveRefLayers () { return m_numActiveRefLayers; } |
---|
| 1033 | Void setNumActiveRefLayers (Int num) { m_numActiveRefLayers = num; } |
---|
| 1034 | |
---|
[1057] | 1035 | Int getPredLayerIdx (Int lyaerIdc) { return m_predLayerIdx[lyaerIdc]; } |
---|
| 1036 | Void setPredLayerIdx (Int lyaerIdc, Int refLayerIdx) { m_predLayerIdx[lyaerIdc] = refLayerIdx; } |
---|
[595] | 1037 | |
---|
| 1038 | Int getNumSamplePredRefLayers () { return m_numSamplePredRefLayers; } |
---|
| 1039 | Void setNumSamplePredRefLayers (Int num) { m_numSamplePredRefLayers = num; } |
---|
| 1040 | |
---|
[1057] | 1041 | Int getSamplePredRefLayerId (Int layerIdc) { return m_samplePredRefLayerId[layerIdc]; } |
---|
| 1042 | Void setSamplePredRefLayerId (Int layerIdc, Int refLayerId) { m_samplePredRefLayerId[layerIdc] = refLayerId; } |
---|
[595] | 1043 | |
---|
| 1044 | Int getNumMotionPredRefLayers () { return m_numMotionPredRefLayers; } |
---|
| 1045 | Void setNumMotionPredRefLayers (Int num) { m_numMotionPredRefLayers = num; } |
---|
| 1046 | |
---|
[1057] | 1047 | Int getMotionPredRefLayerId (Int layerIdc) { return m_motionPredRefLayerId[layerIdc]; } |
---|
| 1048 | Void setMotionPredRefLayerId (Int layerIdc, Int refLayerId) { m_motionPredRefLayerId[layerIdc] = refLayerId; } |
---|
[595] | 1049 | |
---|
[1057] | 1050 | Bool getSamplePredEnabledFlag (Int layerIdx) { return m_samplePredEnabledFlag[layerIdx]; } |
---|
| 1051 | Void setSamplePredEnabledFlag (Int layerIdx, Bool flag) { m_samplePredEnabledFlag[layerIdx] = flag; } |
---|
[595] | 1052 | |
---|
[1057] | 1053 | Bool getMotionPredEnabledFlag (Int layerIdx) { return m_motionPredEnabledFlag[layerIdx]; } |
---|
| 1054 | Void setMotionPredEnabledFlag (Int layerIdx,Bool flag) { m_motionPredEnabledFlag[layerIdx] = flag; } |
---|
[1148] | 1055 | |
---|
[595] | 1056 | Int getMaxTidIlRefPicsPlus1 () { return m_maxTidIlRefPicsPlus1; } |
---|
| 1057 | Void setMaxTidIlRefPicsPlus1 (Int num) { m_maxTidIlRefPicsPlus1 = num; } |
---|
| 1058 | #if LAYERS_NOT_PRESENT_SEI |
---|
| 1059 | Void setLayersNotPresentSEIEnabled(Int b) { m_layersNotPresentSEIEnabled = b; } |
---|
| 1060 | Int getLayersNotPresentSEIEnabled() { return m_layersNotPresentSEIEnabled; } |
---|
| 1061 | #endif |
---|
| 1062 | #if N0383_IL_CONSTRAINED_TILE_SETS_SEI |
---|
| 1063 | Void setInterLayerConstrainedTileSetsSEIEnabled(Bool b) { m_interLayerConstrainedTileSetsSEIEnabled = b; } |
---|
| 1064 | Bool getInterLayerConstrainedTileSetsSEIEnabled() { return m_interLayerConstrainedTileSetsSEIEnabled; } |
---|
| 1065 | Void setIlNumSetsInMessage(UInt b) { m_ilNumSetsInMessage = b; } |
---|
| 1066 | Int getIlNumSetsInMessage() { return m_ilNumSetsInMessage; } |
---|
| 1067 | Void setSkippedTileSetPresentFlag(Bool b) { m_skippedTileSetPresentFlag = b; } |
---|
| 1068 | Bool getSkippedTileSetPresentFlag() { return m_skippedTileSetPresentFlag; } |
---|
| 1069 | Void setTopLeftTileIndex(UInt *b) |
---|
| 1070 | { |
---|
| 1071 | for (UInt i = 0; i < m_ilNumSetsInMessage; i++) |
---|
| 1072 | { |
---|
| 1073 | m_topLeftTileIndex[i] = b[i]; |
---|
| 1074 | } |
---|
| 1075 | } |
---|
| 1076 | UInt getTopLeftTileIndex(UInt b) { return m_topLeftTileIndex[b]; } |
---|
| 1077 | Void setBottomRightTileIndex(UInt *b) |
---|
| 1078 | { |
---|
| 1079 | for (UInt i = 0; i < m_ilNumSetsInMessage; i++) |
---|
| 1080 | { |
---|
| 1081 | m_bottomRightTileIndex[i] = b[i]; |
---|
| 1082 | } |
---|
| 1083 | } |
---|
| 1084 | UInt getBottomRightTileIndex(UInt b) { return m_bottomRightTileIndex[b]; } |
---|
| 1085 | Void setIlcIdc(UInt *b) |
---|
| 1086 | { |
---|
| 1087 | for (UInt i = 0; i < m_ilNumSetsInMessage; i++) |
---|
| 1088 | { |
---|
| 1089 | m_ilcIdc[i] = b[i]; |
---|
| 1090 | } |
---|
| 1091 | } |
---|
| 1092 | UInt getIlcIdc(UInt b) { return m_ilcIdc[b]; } |
---|
| 1093 | #endif |
---|
[912] | 1094 | #if Q0096_OVERLAY_SEI |
---|
| 1095 | Void setOverlaySEIEnabled(Int b) { m_overlaySEIEnabled = b; } |
---|
| 1096 | Bool getOverlaySEIEnabled() { return m_overlaySEIEnabled; } |
---|
| 1097 | Void setOverlaySEICancelFlag(Int b) { m_overlayInfoCancelFlag = b; } |
---|
| 1098 | Bool getOverlaySEICancelFlag() { return m_overlayInfoCancelFlag; } |
---|
| 1099 | Void setOverlaySEIContentAuxIdMinus128(UInt b) { m_overlayContentAuxIdMinus128 = b; } |
---|
| 1100 | UInt getOverlaySEIContentAuxIdMinus128() { return m_overlayContentAuxIdMinus128; } |
---|
| 1101 | Void setOverlaySEILabelAuxIdMinus128(UInt b) { m_overlayLabelAuxIdMinus128 = b; } |
---|
| 1102 | UInt getOverlaySEILabelAuxIdMinus128() { return m_overlayLabelAuxIdMinus128; } |
---|
| 1103 | Void setOverlaySEIAlphaAuxIdMinus128(UInt b) { m_overlayAlphaAuxIdMinus128 = b; } |
---|
| 1104 | UInt getOverlaySEIAlphaAuxIdMinus128() { return m_overlayAlphaAuxIdMinus128; } |
---|
| 1105 | Void setOverlaySEIElementLabelValueLengthMinus8(UInt b) { m_overlayElementLabelValueLengthMinus8 = b; } |
---|
| 1106 | UInt getOverlaySEIElementLabelValueLengthMinus8() { return m_overlayElementLabelValueLengthMinus8; } |
---|
| 1107 | Void setOverlaySEINumOverlaysMinus1(UInt b) { m_numOverlaysMinus1 = b; } |
---|
| 1108 | UInt getOverlaySEINumOverlaysMinus1() { return m_numOverlaysMinus1; } |
---|
| 1109 | Void setOverlaySEIIdx(const std::vector<UInt>& b) { m_overlayIdx = b; } |
---|
| 1110 | std::vector<UInt> getOverlaySEIIdx() { return m_overlayIdx; } |
---|
| 1111 | Void setOverlaySEILanguagePresentFlag(const std::vector<Bool>& b) { m_overlayLanguagePresentFlag = b; } |
---|
| 1112 | std::vector<Bool> getOverlaySEILanguagePresentFlag() { return m_overlayLanguagePresentFlag; } |
---|
| 1113 | Void setOverlaySEIContentLayerId(const std::vector<UInt>& b) { m_overlayContentLayerId = b; } |
---|
| 1114 | std::vector<UInt> getOverlaySEIContentLayerId() { return m_overlayContentLayerId; } |
---|
| 1115 | Void setOverlaySEILabelPresentFlag(const std::vector<Bool>& b) { m_overlayLabelPresentFlag = b; } |
---|
| 1116 | std::vector<Bool> getOverlaySEILabelPresentFlag() { return m_overlayLabelPresentFlag; } |
---|
| 1117 | Void setOverlaySEILabelLayerId(const std::vector<UInt>& b) { m_overlayLabelLayerId = b; } |
---|
| 1118 | std::vector<UInt> getOverlaySEILabelLayerId() { return m_overlayLabelLayerId; } |
---|
| 1119 | Void setOverlaySEIAlphaPresentFlag(const std::vector<Bool>& b) { m_overlayAlphaPresentFlag = b; } |
---|
| 1120 | std::vector<Bool> getOverlaySEIAlphaPresentFlag() { return m_overlayAlphaPresentFlag; } |
---|
| 1121 | Void setOverlaySEIAlphaLayerId(const std::vector<UInt>& b) { m_overlayAlphaLayerId = b; } |
---|
| 1122 | std::vector<UInt> getOverlaySEIAlphaLayerId() { return m_overlayAlphaLayerId; } |
---|
| 1123 | Void setOverlaySEINumElementsMinus1(const std::vector<UInt>& b) { m_numOverlayElementsMinus1 = b; } |
---|
| 1124 | std::vector<UInt> getOverlaySEINumElementsMinus1() { return m_numOverlayElementsMinus1; } |
---|
| 1125 | Void setOverlaySEIElementLabelMin(const std::vector< std::vector<UInt> >& b) { m_overlayElementLabelMin = b; } |
---|
| 1126 | std::vector< std::vector<UInt> > getOverlaySEIElementLabelMin() { return m_overlayElementLabelMin; } |
---|
| 1127 | Void setOverlaySEIElementLabelMax(const std::vector< std::vector<UInt> >& b) { m_overlayElementLabelMax = b; } |
---|
| 1128 | std::vector< std::vector<UInt> > getOverlaySEIElementLabelMax() { return m_overlayElementLabelMax; } |
---|
| 1129 | Void setOverlaySEILanguage(const std::vector<string>& b) { m_overlayLanguage = b; } |
---|
| 1130 | std::vector<string> getOverlaySEILanguage() { return m_overlayLanguage; } |
---|
| 1131 | Void setOverlaySEIName(const std::vector<string>& b) { m_overlayName = b; } |
---|
| 1132 | std::vector<string> getOverlaySEIName() { return m_overlayName; } |
---|
| 1133 | Void setOverlaySEIElementName(const std::vector< std::vector<string> >& b) { m_overlayElementName = b; } |
---|
| 1134 | std::vector< std::vector<string> > getOverlaySEIElementName() { return m_overlayElementName; } |
---|
| 1135 | Void setOverlaySEIPersistenceFlag(Int b) { m_overlayInfoPersistenceFlag = b; } |
---|
| 1136 | Bool getOverlaySEIPersistenceFlag() { return m_overlayInfoPersistenceFlag; } |
---|
| 1137 | #endif |
---|
[1212] | 1138 | #if CGS_3D_ASYMLUT |
---|
[713] | 1139 | Void setCGSFlag(Int n) { m_nCGSFlag = n; } |
---|
| 1140 | Int getCGSFlag() { return m_nCGSFlag; } |
---|
| 1141 | Void setCGSMaxOctantDepth(Int n) { m_nCGSMaxOctantDepth = n; } |
---|
| 1142 | Int getCGSMaxOctantDepth() { return m_nCGSMaxOctantDepth; } |
---|
| 1143 | Void setCGSMaxYPartNumLog2(Int n) { m_nCGSMaxYPartNumLog2 = n; } |
---|
| 1144 | Int getCGSMaxYPartNumLog2() { return m_nCGSMaxYPartNumLog2; } |
---|
| 1145 | Void setCGSLUTBit(Int n) { m_nCGSLUTBit = n; } |
---|
| 1146 | Int getCGSLUTBit() { return m_nCGSLUTBit; } |
---|
[825] | 1147 | Void setCGSAdaptChroma(Int n) { m_nCGSAdaptiveChroma = n; } |
---|
| 1148 | Int getCGSAdaptChroma() { return m_nCGSAdaptiveChroma; } |
---|
[877] | 1149 | #if R0179_ENC_OPT_3DLUT_SIZE |
---|
| 1150 | Void setCGSLutSizeRDO(Int n) { m_nCGSLutSizeRDO = n; } |
---|
| 1151 | Int getCGSLutSizeRDO() { return m_nCGSLutSizeRDO; } |
---|
[713] | 1152 | #endif |
---|
[825] | 1153 | #endif |
---|
[1124] | 1154 | #endif //SVC_EXTENSION |
---|
[313] | 1155 | }; |
---|
| 1156 | |
---|
[595] | 1157 | #if SVC_EXTENSION |
---|
| 1158 | struct RepFormatCfg |
---|
| 1159 | { |
---|
| 1160 | Int m_chromaFormatIdc; |
---|
| 1161 | Bool m_separateColourPlaneFlag; |
---|
| 1162 | Int m_picWidthInLumaSamples; |
---|
| 1163 | Int m_picHeightInLumaSamples; |
---|
| 1164 | Int m_bitDepthLuma; |
---|
| 1165 | Int m_bitDepthChroma; |
---|
| 1166 | RepFormatCfg() |
---|
| 1167 | : m_chromaFormatIdc (CHROMA_420) |
---|
| 1168 | , m_separateColourPlaneFlag (0) |
---|
| 1169 | , m_picWidthInLumaSamples (352) |
---|
| 1170 | , m_picHeightInLumaSamples (288) |
---|
| 1171 | , m_bitDepthLuma (8) |
---|
| 1172 | , m_bitDepthChroma (8) |
---|
| 1173 | {} |
---|
| 1174 | }; |
---|
| 1175 | std::istringstream &operator>>(std::istringstream &in, RepFormatCfg &repFormatCfg); |
---|
| 1176 | #endif //SVC_EXTENSION |
---|
| 1177 | |
---|
[313] | 1178 | //! \} |
---|
| 1179 | |
---|
| 1180 | #endif // !defined(AFX_TENCCFG_H__6B99B797_F4DA_4E46_8E78_7656339A6C41__INCLUDED_) |
---|