[5] | 1 | /* The copyright in this software is being made available under the BSD |
---|
| 2 | * License, included below. This software may be subject to other third party |
---|
| 3 | * and contributor rights, including patent rights, and no such rights are |
---|
[56] | 4 | * granted under this license. |
---|
[5] | 5 | * |
---|
[56] | 6 | * Copyright (c) 2010-2012, ITU/ISO/IEC |
---|
[5] | 7 | * All rights reserved. |
---|
| 8 | * |
---|
| 9 | * Redistribution and use in source and binary forms, with or without |
---|
| 10 | * modification, are permitted provided that the following conditions are met: |
---|
| 11 | * |
---|
| 12 | * * Redistributions of source code must retain the above copyright notice, |
---|
| 13 | * this list of conditions and the following disclaimer. |
---|
| 14 | * * Redistributions in binary form must reproduce the above copyright notice, |
---|
| 15 | * this list of conditions and the following disclaimer in the documentation |
---|
| 16 | * and/or other materials provided with the distribution. |
---|
[56] | 17 | * * Neither the name of the ITU/ISO/IEC nor the names of its contributors may |
---|
[5] | 18 | * be used to endorse or promote products derived from this software without |
---|
| 19 | * specific prior written permission. |
---|
| 20 | * |
---|
| 21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
---|
| 22 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
---|
| 23 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
---|
| 24 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS |
---|
| 25 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
---|
| 26 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
---|
| 27 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
---|
| 28 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
---|
| 29 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
---|
| 30 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF |
---|
| 31 | * THE POSSIBILITY OF SUCH DAMAGE. |
---|
| 32 | */ |
---|
[2] | 33 | |
---|
| 34 | /** \file TEncCfg.h |
---|
| 35 | \brief encoder configuration class (header) |
---|
| 36 | */ |
---|
| 37 | |
---|
| 38 | #ifndef __TENCCFG__ |
---|
| 39 | #define __TENCCFG__ |
---|
| 40 | |
---|
| 41 | #if _MSC_VER > 1000 |
---|
| 42 | #pragma once |
---|
| 43 | #endif // _MSC_VER > 1000 |
---|
| 44 | |
---|
[56] | 45 | #include "TLibCommon/CommonDef.h" |
---|
[2] | 46 | #include <assert.h> |
---|
| 47 | |
---|
[56] | 48 | struct GOPEntryMvc |
---|
| 49 | { |
---|
| 50 | Int m_POC; |
---|
| 51 | Int m_QPOffset; |
---|
| 52 | Double m_QPFactor; |
---|
| 53 | Int m_temporalId; |
---|
| 54 | Bool m_refPic; |
---|
| 55 | Int m_numRefPicsActive; |
---|
| 56 | Char m_sliceType; |
---|
| 57 | Int m_numRefPics; |
---|
| 58 | Int m_referencePics[MAX_NUM_REF_PICS]; |
---|
| 59 | Int m_usedByCurrPic[MAX_NUM_REF_PICS]; |
---|
| 60 | Bool m_interRPSPrediction; |
---|
| 61 | Int m_deltaRIdxMinus1; |
---|
| 62 | Int m_deltaRPS; |
---|
| 63 | Int m_numRefIdc; |
---|
| 64 | Int m_refIdc[MAX_NUM_REF_PICS+1]; |
---|
| 65 | Int m_numInterViewRefPics; |
---|
| 66 | Int m_interViewRefs[MAX_NUM_REF_PICS]; |
---|
| 67 | Int m_interViewRefPosL0[MAX_NUM_REF_PICS]; |
---|
| 68 | Int m_interViewRefPosL1[MAX_NUM_REF_PICS]; |
---|
| 69 | GOPEntryMvc() |
---|
| 70 | : m_POC(-1) |
---|
| 71 | , m_QPOffset() |
---|
| 72 | , m_QPFactor() |
---|
| 73 | , m_temporalId() |
---|
| 74 | , m_refPic() |
---|
| 75 | , m_numRefPicsActive() |
---|
| 76 | , m_sliceType() |
---|
| 77 | , m_numRefPics() |
---|
| 78 | , m_interRPSPrediction() |
---|
| 79 | , m_deltaRIdxMinus1() |
---|
| 80 | , m_deltaRPS() |
---|
| 81 | , m_numRefIdc() |
---|
| 82 | , m_numInterViewRefPics() |
---|
| 83 | { |
---|
| 84 | ::memset( m_referencePics, 0, sizeof(m_referencePics) ); |
---|
| 85 | ::memset( m_usedByCurrPic, 0, sizeof(m_usedByCurrPic) ); |
---|
| 86 | ::memset( m_refIdc, 0, sizeof(m_refIdc) ); |
---|
| 87 | ::memset( m_interViewRefs, 0, sizeof(m_interViewRefs) ); |
---|
| 88 | ::memset( m_interViewRefPosL0, 0, sizeof(m_interViewRefPosL0) ); |
---|
| 89 | ::memset( m_interViewRefPosL1, 0, sizeof(m_interViewRefPosL1) ); |
---|
| 90 | } |
---|
| 91 | }; |
---|
[2] | 92 | |
---|
[56] | 93 | std::istringstream &operator>>(std::istringstream &in, GOPEntryMvc &entry); |
---|
| 94 | |
---|
| 95 | //! \ingroup TLibEncoder |
---|
| 96 | //! \{ |
---|
| 97 | |
---|
[2] | 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; |
---|
[56] | 111 | #if PIC_CROPPING |
---|
| 112 | Int m_croppingMode; |
---|
| 113 | Int m_cropLeft; |
---|
| 114 | Int m_cropRight; |
---|
| 115 | Int m_cropTop; |
---|
| 116 | Int m_cropBottom; |
---|
| 117 | #endif |
---|
[2] | 118 | Int m_iFrameToBeEncoded; |
---|
[56] | 119 | Double m_adLambdaModifier[ MAX_TLAYER ]; |
---|
[2] | 120 | |
---|
| 121 | //====== Coding Structure ======== |
---|
[56] | 122 | UInt m_uiIntraPeriod; |
---|
[2] | 123 | UInt m_uiDecodingRefreshType; ///< the type of decoding refresh employed for the random access. |
---|
[56] | 124 | Int m_iGOPSize; |
---|
| 125 | GOPEntryMvc m_GOPList[MAX_GOP+1]; |
---|
| 126 | Int m_extraRPSs; |
---|
| 127 | #if H0567_DPB_PARAMETERS_PER_TEMPORAL_LAYER |
---|
| 128 | Int m_maxDecPicBuffering[MAX_TLAYER]; |
---|
| 129 | Int m_numReorderPics[MAX_TLAYER]; |
---|
| 130 | #else |
---|
| 131 | Int m_maxNumberOfReferencePictures; |
---|
| 132 | Int m_numReorderFrames; |
---|
[2] | 133 | #endif |
---|
[56] | 134 | |
---|
[2] | 135 | Int m_iQP; // if (AdaptiveQP == OFF) |
---|
[56] | 136 | |
---|
[2] | 137 | Int m_aiTLayerQPOffset[MAX_TLAYER]; |
---|
| 138 | Int m_aiPad[2]; |
---|
[56] | 139 | |
---|
[2] | 140 | |
---|
[56] | 141 | Int m_iMaxRefPicNum; ///< this is used to mimic the sliding mechanism used by the decoder |
---|
| 142 | // TODO: We need to have a common sliding mechanism used by both the encoder and decoder |
---|
| 143 | |
---|
| 144 | #if H0566_TLA |
---|
| 145 | Int m_maxTempLayer; ///< Max temporal layer |
---|
| 146 | #else |
---|
| 147 | Bool m_bTLayering; ///< indicates whether temporal IDs are set based on the hierarchical coding structure |
---|
| 148 | Bool m_abTLayerSwitchingFlag[MAX_TLAYER]; ///< temporal layer switching flags corresponding to temporal layer |
---|
| 149 | #endif |
---|
| 150 | Bool m_bDisInter4x4; |
---|
| 151 | Bool m_useAMP; |
---|
[2] | 152 | //======= Transform ============= |
---|
| 153 | UInt m_uiQuadtreeTULog2MaxSize; |
---|
| 154 | UInt m_uiQuadtreeTULog2MinSize; |
---|
| 155 | UInt m_uiQuadtreeTUMaxDepthInter; |
---|
| 156 | UInt m_uiQuadtreeTUMaxDepthIntra; |
---|
[56] | 157 | |
---|
| 158 | Bool m_useNSQT; |
---|
| 159 | |
---|
[2] | 160 | //====== Loop/Deblock Filter ======== |
---|
| 161 | Bool m_bLoopFilterDisable; |
---|
[56] | 162 | Bool m_loopFilterOffsetInAPS; |
---|
| 163 | Int m_loopFilterBetaOffsetDiv2; |
---|
| 164 | Int m_loopFilterTcOffsetDiv2; |
---|
| 165 | #if DBL_CONTROL |
---|
| 166 | Bool m_DeblockingFilterControlPresent; |
---|
| 167 | #endif |
---|
[2] | 168 | Bool m_bUseSAO; |
---|
[56] | 169 | #if SAO_UNIT_INTERLEAVING |
---|
| 170 | Int m_maxNumOffsetsPerPic; |
---|
| 171 | Bool m_saoInterleavingFlag; |
---|
[2] | 172 | #endif |
---|
| 173 | |
---|
[56] | 174 | //====== Lossless ======== |
---|
| 175 | #if LOSSLESS_CODING |
---|
| 176 | Bool m_useLossless; |
---|
| 177 | #endif |
---|
[2] | 178 | //====== Motion search ======== |
---|
| 179 | Int m_iFastSearch; // 0:Full search 1:Diamond 2:PMVFAST |
---|
| 180 | Int m_iSearchRange; // 0:Full frame |
---|
| 181 | Int m_bipredSearchRange; |
---|
[56] | 182 | |
---|
| 183 | //====== Quality control ======== |
---|
[2] | 184 | Int m_iMaxDeltaQP; // Max. absolute delta QP (1:default) |
---|
[56] | 185 | Int m_iMaxCuDQPDepth; // Max. depth for a minimum CuDQP (0:default) |
---|
[2] | 186 | |
---|
[56] | 187 | Int m_iChromaQpOffset ; // ChromaQpOffset (0:default) |
---|
| 188 | Int m_iChromaQpOffset2nd; // ChromaQpOffset2nd (0:default) |
---|
| 189 | |
---|
| 190 | #if ADAPTIVE_QP_SELECTION |
---|
| 191 | Bool m_bUseAdaptQpSelect; |
---|
| 192 | #endif |
---|
| 193 | |
---|
| 194 | Bool m_bUseAdaptiveQP; |
---|
| 195 | Int m_iQPAdaptationRange; |
---|
| 196 | |
---|
[5] | 197 | #if HHI_VSO |
---|
[2] | 198 | //====== View Synthesis Optimization ====== |
---|
[56] | 199 | Bool m_bUseVSO; |
---|
[2] | 200 | Bool m_bForceLambdaScale; |
---|
[5] | 201 | #if HHI_VSO_DIST_INT |
---|
[2] | 202 | Bool m_bAllowNegDist; |
---|
| 203 | #endif |
---|
| 204 | Double m_dLambdaScaleVSO; |
---|
| 205 | UInt m_uiVSOMode; |
---|
[115] | 206 | #if LGE_WVSO_A0119 |
---|
[120] | 207 | Bool m_bUseWVSO; |
---|
[116] | 208 | Int m_iVSOWeight; |
---|
[115] | 209 | Int m_iVSDWeight; |
---|
[116] | 210 | Int m_iDWeight; |
---|
[5] | 211 | #endif |
---|
[115] | 212 | #endif |
---|
[100] | 213 | #if SAIT_VSO_EST_A0033 |
---|
| 214 | Bool m_bUseEstimatedVSD; |
---|
| 215 | Double m_dDispCoeff; |
---|
| 216 | #endif |
---|
[2] | 217 | |
---|
[100] | 218 | |
---|
[2] | 219 | //====== Tool list ======== |
---|
| 220 | Bool m_bUseSBACRD; |
---|
| 221 | Bool m_bUseALF; |
---|
| 222 | Int m_iALFEncodePassReduction; |
---|
[56] | 223 | |
---|
| 224 | Int m_iALFMaxNumberFilters; |
---|
| 225 | #if LCU_SYNTAX_ALF |
---|
| 226 | Bool m_bALFParamInSlice; |
---|
| 227 | Bool m_bALFPicBasedEncode; |
---|
[2] | 228 | #endif |
---|
[56] | 229 | |
---|
[2] | 230 | Bool m_bUseASR; |
---|
| 231 | Bool m_bUseHADME; |
---|
| 232 | Bool m_bUseLComb; |
---|
| 233 | Bool m_bLCMod; |
---|
| 234 | Bool m_bUseRDOQ; |
---|
[56] | 235 | #if !PIC_CROPPING |
---|
| 236 | Bool m_bUsePAD; |
---|
[2] | 237 | #endif |
---|
| 238 | Bool m_bUseFastEnc; |
---|
[56] | 239 | Bool m_bUseEarlyCU; |
---|
[2] | 240 | |
---|
[56] | 241 | #if FAST_DECISION_FOR_MRG_RD_COST |
---|
| 242 | Bool m_useFastDecisionForMerge; |
---|
[2] | 243 | #endif |
---|
[56] | 244 | Bool m_bUseCbfFastMode; |
---|
| 245 | Bool m_bUseLMChroma; |
---|
| 246 | #if HHI_MPI |
---|
| 247 | Bool m_bUseMVI; |
---|
| 248 | #endif |
---|
[2] | 249 | |
---|
| 250 | Int* m_aidQP; |
---|
| 251 | UInt m_uiDeltaQpRD; |
---|
[56] | 252 | |
---|
[2] | 253 | Bool m_bUseConstrainedIntraPred; |
---|
[56] | 254 | Bool m_usePCM; |
---|
| 255 | UInt m_pcmLog2MaxSize; |
---|
| 256 | UInt m_uiPCMLog2MinSize; |
---|
[2] | 257 | //====== Slice ======== |
---|
| 258 | Int m_iSliceMode; |
---|
[56] | 259 | Int m_iSliceArgument; |
---|
[2] | 260 | //====== Entropy Slice ======== |
---|
| 261 | Int m_iEntropySliceMode; |
---|
| 262 | Int m_iEntropySliceArgument; |
---|
[56] | 263 | Int m_iSliceGranularity; |
---|
[2] | 264 | Bool m_bLFCrossSliceBoundaryFlag; |
---|
| 265 | |
---|
[56] | 266 | Bool m_bPCMInputBitDepthFlag; |
---|
| 267 | UInt m_uiPCMBitDepthLuma; |
---|
| 268 | UInt m_uiPCMBitDepthChroma; |
---|
| 269 | Bool m_bPCMFilterDisableFlag; |
---|
| 270 | Int m_iTileBehaviorControlPresentFlag; |
---|
| 271 | Bool m_bLFCrossTileBoundaryFlag; |
---|
| 272 | Int m_iColumnRowInfoPresent; |
---|
| 273 | Int m_iUniformSpacingIdr; |
---|
[121] | 274 | #if FIX_REMOVE_TILE_DEPENDENCE |
---|
| 275 | #else |
---|
[56] | 276 | Int m_iTileBoundaryIndependenceIdr; |
---|
[121] | 277 | #endif |
---|
[56] | 278 | Int m_iNumColumnsMinus1; |
---|
| 279 | UInt* m_puiColumnWidth; |
---|
| 280 | Int m_iNumRowsMinus1; |
---|
| 281 | UInt* m_puiRowHeight; |
---|
| 282 | Int m_iTileLocationInSliceHeaderFlag; //< enable(1)/disable(0) transmitssion of tile location in slice header |
---|
| 283 | |
---|
| 284 | Int m_iTileMarkerFlag; //< enable(1)/disable(0) transmitssion of light weight tile marker |
---|
| 285 | Int m_iMaxTileMarkerEntryPoints; //< maximum number of tile markers allowed in a slice (controls degree of parallelism) |
---|
| 286 | Double m_dMaxTileMarkerOffset; //< Calculated offset. Light weight tile markers will be transmitted for TileIdx= Offset, 2*Offset, 3*Offset ... |
---|
| 287 | |
---|
| 288 | Int m_iWaveFrontSynchro; |
---|
| 289 | Int m_iWaveFrontFlush; |
---|
| 290 | Int m_iWaveFrontSubstreams; |
---|
| 291 | |
---|
[121] | 292 | Bool m_pictureDigestEnabled; ///< enable(1)/disable(0) md5 computation and SEI signalling |
---|
[2] | 293 | |
---|
| 294 | //====== Weighted Prediction ======== |
---|
[56] | 295 | Bool m_bUseWeightPred; //< Use of Weighting Prediction (P_SLICE) |
---|
| 296 | UInt m_uiBiPredIdc; //< Use of Bi-Directional Weighting Prediction (B_SLICE) |
---|
| 297 | Int m_useScalingListId; ///< Using quantization matrix i.e. 0=off, 1=default, 2=file. |
---|
| 298 | char* m_scalingListFile; ///< quantization matrix file name |
---|
| 299 | |
---|
| 300 | Bool m_bEnableTMVP; |
---|
| 301 | #if MULTIBITS_DATA_HIDING |
---|
| 302 | Int m_signHideFlag; |
---|
| 303 | Int m_signHidingThreshold; |
---|
[2] | 304 | #endif |
---|
| 305 | |
---|
[77] | 306 | #if VIDYO_VPS_INTEGRATION |
---|
| 307 | UInt m_layerId; |
---|
| 308 | #endif |
---|
| 309 | |
---|
[56] | 310 | Int m_viewId; |
---|
| 311 | Bool m_isDepth; |
---|
[2] | 312 | |
---|
[56] | 313 | #if HHI_INTERVIEW_SKIP |
---|
| 314 | Bool m_bInterViewSkip; |
---|
| 315 | #if HHI_INTERVIEW_SKIP_LAMBDA_SCALE |
---|
| 316 | Double m_dInterViewSkipLambdaScale; |
---|
[42] | 317 | #endif |
---|
[56] | 318 | #endif |
---|
| 319 | #if HHI_DMM_WEDGE_INTRA || HHI_DMM_PRED_TEX |
---|
[116] | 320 | Bool m_bUseDMM; |
---|
[56] | 321 | #endif |
---|
[2] | 322 | |
---|
[116] | 323 | #if OL_DEPTHLIMIT_A0044 |
---|
| 324 | Bool m_bDepthPartitionLimiting; |
---|
[115] | 325 | #endif |
---|
| 326 | |
---|
[56] | 327 | Int m_iViewOrderIdx; |
---|
| 328 | |
---|
| 329 | UInt m_uiCamParPrecision; |
---|
| 330 | Bool m_bCamParInSliceHeader; |
---|
| 331 | Int** m_aaiCodedScale; |
---|
| 332 | Int** m_aaiCodedOffset; |
---|
| 333 | |
---|
[5] | 334 | #if DEPTH_MAP_GENERATION |
---|
[56] | 335 | UInt m_uiPredDepthMapGeneration; |
---|
| 336 | UInt m_uiPdmPrecision; |
---|
| 337 | Int** m_aaiPdmScaleNomDelta; |
---|
| 338 | Int** m_aaiPdmOffset; |
---|
[5] | 339 | #endif |
---|
[56] | 340 | |
---|
[5] | 341 | #if HHI_INTER_VIEW_MOTION_PRED |
---|
| 342 | UInt m_uiMultiviewMvPredMode; |
---|
[2] | 343 | UInt m_uiMultiviewMvRegMode; |
---|
| 344 | Double m_dMultiviewMvRegLambdaScale; |
---|
[5] | 345 | #endif |
---|
| 346 | #if HHI_INTER_VIEW_RESIDUAL_PRED |
---|
[2] | 347 | UInt m_uiMultiviewResPredMode; |
---|
[5] | 348 | #endif |
---|
[2] | 349 | |
---|
| 350 | public: |
---|
| 351 | TEncCfg() {} |
---|
[56] | 352 | virtual ~TEncCfg() |
---|
| 353 | { |
---|
| 354 | if( m_iUniformSpacingIdr == 0 ) |
---|
| 355 | { |
---|
| 356 | if( m_iNumColumnsMinus1 ) |
---|
| 357 | { |
---|
| 358 | delete[] m_puiColumnWidth; |
---|
| 359 | m_puiColumnWidth = NULL; |
---|
| 360 | } |
---|
| 361 | if( m_iNumRowsMinus1 ) |
---|
| 362 | { |
---|
| 363 | delete[] m_puiRowHeight; |
---|
| 364 | m_puiRowHeight = NULL; |
---|
| 365 | } |
---|
| 366 | } |
---|
| 367 | m_iTileLocationInSliceHeaderFlag = 0; |
---|
| 368 | m_iTileMarkerFlag = 0; |
---|
| 369 | } |
---|
| 370 | |
---|
[2] | 371 | Void setFrameRate ( Int i ) { m_iFrameRate = i; } |
---|
| 372 | Void setFrameSkip ( unsigned int i ) { m_FrameSkip = i; } |
---|
| 373 | Void setSourceWidth ( Int i ) { m_iSourceWidth = i; } |
---|
| 374 | Void setSourceHeight ( Int i ) { m_iSourceHeight = i; } |
---|
[56] | 375 | #if PIC_CROPPING |
---|
| 376 | Void setCroppingMode ( Int i ) { m_croppingMode = i; } |
---|
| 377 | Void setCropLeft ( Int i ) { m_cropLeft = i; } |
---|
| 378 | Void setCropRight ( Int i ) { m_cropRight = i; } |
---|
| 379 | Void setCropTop ( Int i ) { m_cropTop = i; } |
---|
| 380 | Void setCropBottom ( Int i ) { m_cropBottom = i; } |
---|
| 381 | #endif |
---|
[2] | 382 | Void setFrameToBeEncoded ( Int i ) { m_iFrameToBeEncoded = i; } |
---|
[56] | 383 | |
---|
[2] | 384 | //====== Coding Structure ======== |
---|
[56] | 385 | Void setIntraPeriod ( Int i ) { m_uiIntraPeriod = (UInt)i; } |
---|
[2] | 386 | Void setDecodingRefreshType ( Int i ) { m_uiDecodingRefreshType = (UInt)i; } |
---|
[56] | 387 | Void setGOPSize ( Int i ) { m_iGOPSize = i; } |
---|
| 388 | Void setGopList ( GOPEntryMvc* GOPList ) { for( Int i = 0; i < MAX_GOP+1; i++ ) m_GOPList[i] = GOPList[i]; } |
---|
| 389 | Void setExtraRPSs ( Int i ) { m_extraRPSs = i; } |
---|
| 390 | GOPEntryMvc getGOPEntry ( Int i ) { return m_GOPList[i]; } |
---|
| 391 | #if H0567_DPB_PARAMETERS_PER_TEMPORAL_LAYER |
---|
| 392 | Void setMaxDecPicBuffering ( UInt u, UInt tlayer ) { m_maxDecPicBuffering[tlayer] = u; } |
---|
| 393 | Void setNumReorderPics ( Int i, UInt tlayer ) { m_numReorderPics[tlayer] = i; } |
---|
| 394 | #else |
---|
| 395 | Void setMaxNumberOfReferencePictures ( Int u ) { m_maxNumberOfReferencePictures = u; } |
---|
| 396 | Void setNumReorderFrames ( Int i ) { m_numReorderFrames = i; } |
---|
[2] | 397 | #endif |
---|
[56] | 398 | |
---|
| 399 | #if HHI_INTERVIEW_SKIP |
---|
| 400 | Void setInterViewSkip ( UInt u ) { m_bInterViewSkip = u; } |
---|
| 401 | Bool getInterViewSkip ( ) { return m_bInterViewSkip ;} |
---|
| 402 | #if HHI_INTERVIEW_SKIP_LAMBDA_SCALE |
---|
| 403 | Void setInterViewSkipLambdaScale ( UInt u ) { m_dInterViewSkipLambdaScale = u; } |
---|
| 404 | Double getInterViewSkipLambdaScale () { return m_dInterViewSkipLambdaScale; } |
---|
| 405 | #endif |
---|
| 406 | #endif |
---|
| 407 | Void setQP ( Int i ) { m_iQP = i; } |
---|
| 408 | |
---|
| 409 | Void setTemporalLayerQPOffset ( Int* piTemporalLayerQPOffset ) { for ( Int i = 0; i < MAX_TLAYER; i++ ) m_aiTLayerQPOffset[i] = piTemporalLayerQPOffset[i]; } |
---|
| 410 | Void setPad ( Int* iPad ) { for ( Int i = 0; i < 2; i++ ) m_aiPad[i] = iPad[i]; } |
---|
| 411 | |
---|
| 412 | Int getMaxRefPicNum () { return m_iMaxRefPicNum; } |
---|
| 413 | Void setMaxRefPicNum ( Int iMaxRefPicNum ) { m_iMaxRefPicNum = iMaxRefPicNum; } |
---|
[2] | 414 | |
---|
[56] | 415 | #if H0566_TLA |
---|
| 416 | Bool getMaxTempLayer () { return m_maxTempLayer; } |
---|
| 417 | Void setMaxTempLayer ( Int maxTempLayer ) { m_maxTempLayer = maxTempLayer; } |
---|
| 418 | #else |
---|
| 419 | Bool getTLayering () { return m_bTLayering; } |
---|
| 420 | Void setTLayering ( Bool bTLayering ) { m_bTLayering = bTLayering; } |
---|
| 421 | Bool getTLayerSwitchingFlag ( UInt uiTLayer ) { assert (uiTLayer < MAX_TLAYER ); return m_abTLayerSwitchingFlag[uiTLayer]; } |
---|
| 422 | Void setTLayerSwitchingFlag ( Bool* pbTLayerSwitchingFlag ) { for ( Int i = 0; i < MAX_TLAYER; i++ ) m_abTLayerSwitchingFlag[i] = pbTLayerSwitchingFlag[i]; } |
---|
[42] | 423 | #endif |
---|
[2] | 424 | |
---|
[56] | 425 | Bool getDisInter4x4 () { return m_bDisInter4x4; } |
---|
| 426 | Void setDisInter4x4 ( Bool b ) { m_bDisInter4x4 = b; } |
---|
| 427 | Bool isDepthCoder () { return m_isDepth; } |
---|
| 428 | |
---|
[5] | 429 | #if DEPTH_MAP_GENERATION |
---|
[2] | 430 | Void setPredDepthMapGeneration ( UInt u ) { m_uiPredDepthMapGeneration = u; } |
---|
| 431 | Void setPdmPrecision ( UInt u ) { m_uiPdmPrecision = u; } |
---|
| 432 | Void setPdmScaleNomDelta ( Int** p ) { m_aaiPdmScaleNomDelta = p; } |
---|
| 433 | Void setPdmOffset ( Int** p ) { m_aaiPdmOffset = p; } |
---|
[5] | 434 | #endif |
---|
[56] | 435 | |
---|
[5] | 436 | #if HHI_INTER_VIEW_MOTION_PRED |
---|
| 437 | Void setMultiviewMvPredMode ( UInt u ) { m_uiMultiviewMvPredMode = u; } |
---|
[2] | 438 | Void setMultiviewMvRegMode ( UInt u ) { m_uiMultiviewMvRegMode = u; } |
---|
| 439 | Void setMultiviewMvRegLambdaScale ( Double d) { m_dMultiviewMvRegLambdaScale = d; } |
---|
[5] | 440 | #endif |
---|
| 441 | #if HHI_INTER_VIEW_RESIDUAL_PRED |
---|
[2] | 442 | Void setMultiviewResPredMode ( UInt u ) { m_uiMultiviewResPredMode = u; } |
---|
[5] | 443 | #endif |
---|
[56] | 444 | |
---|
[2] | 445 | //======== Transform ============= |
---|
| 446 | Void setQuadtreeTULog2MaxSize ( UInt u ) { m_uiQuadtreeTULog2MaxSize = u; } |
---|
| 447 | Void setQuadtreeTULog2MinSize ( UInt u ) { m_uiQuadtreeTULog2MinSize = u; } |
---|
| 448 | Void setQuadtreeTUMaxDepthInter ( UInt u ) { m_uiQuadtreeTUMaxDepthInter = u; } |
---|
| 449 | Void setQuadtreeTUMaxDepthIntra ( UInt u ) { m_uiQuadtreeTUMaxDepthIntra = u; } |
---|
[56] | 450 | |
---|
| 451 | Void setUseNSQT( Bool b ) { m_useNSQT = b; } |
---|
| 452 | Void setUseAMP( Bool b ) { m_useAMP = b; } |
---|
| 453 | |
---|
[2] | 454 | //====== Loop/Deblock Filter ======== |
---|
| 455 | Void setLoopFilterDisable ( Bool b ) { m_bLoopFilterDisable = b; } |
---|
[56] | 456 | Void setLoopFilterOffsetInAPS ( Bool b ) { m_loopFilterOffsetInAPS = b; } |
---|
| 457 | Void setLoopFilterBetaOffset ( Int i ) { m_loopFilterBetaOffsetDiv2 = i; } |
---|
| 458 | Void setLoopFilterTcOffset ( Int i ) { m_loopFilterTcOffsetDiv2 = i; } |
---|
| 459 | #if DBL_CONTROL |
---|
| 460 | Void setDeblockingFilterControlPresent ( Bool b ) { m_DeblockingFilterControlPresent = b; } |
---|
| 461 | #endif |
---|
[2] | 462 | |
---|
| 463 | //====== Motion search ======== |
---|
| 464 | Void setFastSearch ( Int i ) { m_iFastSearch = i; } |
---|
| 465 | Void setSearchRange ( Int i ) { m_iSearchRange = i; } |
---|
| 466 | Void setBipredSearchRange ( Int i ) { m_bipredSearchRange = i; } |
---|
| 467 | |
---|
[56] | 468 | #if HHI_INTER_VIEW_MOTION_PRED |
---|
| 469 | UInt getMultiviewMvRegMode () { return m_uiMultiviewMvRegMode; } |
---|
| 470 | Double getMultiviewMvRegLambdaScale () { return m_dMultiviewMvRegLambdaScale; } |
---|
| 471 | #endif |
---|
| 472 | |
---|
[5] | 473 | #if HHI_VSO |
---|
[2] | 474 | //==== VSO ========== |
---|
| 475 | Void setVSOMode ( UInt ui ) { m_uiVSOMode = ui; } |
---|
| 476 | Void setForceLambdaScaleVSO ( Bool b ) { m_bForceLambdaScale = b; }; |
---|
| 477 | Void setLambdaScaleVSO ( Double d ) { m_dLambdaScaleVSO = d; }; |
---|
[5] | 478 | #if HHI_VSO_DIST_INT |
---|
[2] | 479 | Void setAllowNegDist ( Bool b ) { m_bAllowNegDist = b; }; |
---|
| 480 | #endif |
---|
[115] | 481 | #if LGE_WVSO_A0119 |
---|
[120] | 482 | Void setUseWVSO ( Bool b ) { m_bUseWVSO = b; } |
---|
[116] | 483 | Void setVSOWeight ( Int i ) { m_iVSOWeight = i; } |
---|
| 484 | Void setVSDWeight ( Int i ) { m_iVSDWeight = i; } |
---|
| 485 | Void setDWeight ( Int i ) { m_iDWeight = i; } |
---|
[5] | 486 | #endif |
---|
[115] | 487 | #endif |
---|
[2] | 488 | |
---|
[56] | 489 | //====== Quality control ======== |
---|
| 490 | Void setMaxDeltaQP ( Int i ) { m_iMaxDeltaQP = i; } |
---|
| 491 | Void setMaxCuDQPDepth ( Int i ) { m_iMaxCuDQPDepth = i; } |
---|
| 492 | |
---|
| 493 | Void setChromaQpOffset ( Int i ) { m_iChromaQpOffset = i; } |
---|
| 494 | Void setChromaQpOffset2nd ( Int i ) { m_iChromaQpOffset2nd = i; } |
---|
| 495 | |
---|
| 496 | #if ADAPTIVE_QP_SELECTION |
---|
| 497 | Void setUseAdaptQpSelect ( Bool i ) { m_bUseAdaptQpSelect = i; } |
---|
| 498 | Bool getUseAdaptQpSelect () { return m_bUseAdaptQpSelect; } |
---|
| 499 | #endif |
---|
| 500 | |
---|
| 501 | Void setUseAdaptiveQP ( Bool b ) { m_bUseAdaptiveQP = b; } |
---|
| 502 | Void setQPAdaptationRange ( Int i ) { m_iQPAdaptationRange = i; } |
---|
| 503 | |
---|
| 504 | //====== Lossless ======== |
---|
| 505 | #if LOSSLESS_CODING |
---|
| 506 | Void setUseLossless (Bool b ) { m_useLossless = b; } |
---|
| 507 | #endif |
---|
[2] | 508 | //====== Sequence ======== |
---|
| 509 | Int getFrameRate () { return m_iFrameRate; } |
---|
| 510 | unsigned int getFrameSkip () { return m_FrameSkip; } |
---|
| 511 | Int getSourceWidth () { return m_iSourceWidth; } |
---|
| 512 | Int getSourceHeight () { return m_iSourceHeight; } |
---|
[56] | 513 | #if PIC_CROPPING |
---|
| 514 | Int getCroppingMode () { return m_croppingMode; } |
---|
| 515 | Int getCropLeft () { return m_cropLeft; } |
---|
| 516 | Int getCropRight () { return m_cropRight; } |
---|
| 517 | Int getCropTop () { return m_cropTop; } |
---|
| 518 | Int getCropBottom () { return m_cropBottom; } |
---|
| 519 | #endif |
---|
[2] | 520 | Int getFrameToBeEncoded () { return m_iFrameToBeEncoded; } |
---|
[56] | 521 | void setLambdaModifier ( UInt uiIndex, Double dValue ) { m_adLambdaModifier[ uiIndex ] = dValue; } |
---|
| 522 | Double getLambdaModifier ( UInt uiIndex ) const { return m_adLambdaModifier[ uiIndex ]; } |
---|
[2] | 523 | |
---|
| 524 | //==== Coding Structure ======== |
---|
[56] | 525 | UInt getIntraPeriod () { return m_uiIntraPeriod; } |
---|
[2] | 526 | UInt getDecodingRefreshType () { return m_uiDecodingRefreshType; } |
---|
[56] | 527 | Int getGOPSize () { return m_iGOPSize; } |
---|
| 528 | #if H0567_DPB_PARAMETERS_PER_TEMPORAL_LAYER |
---|
| 529 | Int getMaxDecPicBuffering (UInt tlayer) { return m_maxDecPicBuffering[tlayer]; } |
---|
| 530 | Int getNumReorderPics (UInt tlayer) { return m_numReorderPics[tlayer]; } |
---|
| 531 | #else |
---|
| 532 | Int getMaxNumberOfReferencePictures () { return m_maxNumberOfReferencePictures; } |
---|
| 533 | Int geNumReorderFrames () { return m_numReorderFrames; } |
---|
[2] | 534 | #endif |
---|
| 535 | Int getQP () { return m_iQP; } |
---|
[56] | 536 | |
---|
[2] | 537 | Int getTemporalLayerQPOffset ( Int i ) { assert (i < MAX_TLAYER ); return m_aiTLayerQPOffset[i]; } |
---|
| 538 | Int getPad ( Int i ) { assert (i < 2 ); return m_aiPad[i]; } |
---|
[56] | 539 | |
---|
[2] | 540 | //======== Transform ============= |
---|
| 541 | UInt getQuadtreeTULog2MaxSize () const { return m_uiQuadtreeTULog2MaxSize; } |
---|
| 542 | UInt getQuadtreeTULog2MinSize () const { return m_uiQuadtreeTULog2MinSize; } |
---|
| 543 | UInt getQuadtreeTUMaxDepthInter () const { return m_uiQuadtreeTUMaxDepthInter; } |
---|
| 544 | UInt getQuadtreeTUMaxDepthIntra () const { return m_uiQuadtreeTUMaxDepthIntra; } |
---|
[56] | 545 | |
---|
[2] | 546 | //==== Loop/Deblock Filter ======== |
---|
| 547 | Bool getLoopFilterDisable () { return m_bLoopFilterDisable; } |
---|
[56] | 548 | Bool getLoopFilterOffsetInAPS () { return m_loopFilterOffsetInAPS; } |
---|
| 549 | Int getLoopFilterBetaOffset () { return m_loopFilterBetaOffsetDiv2; } |
---|
| 550 | Int getLoopFilterTcOffset () { return m_loopFilterTcOffsetDiv2; } |
---|
| 551 | #if DBL_CONTROL |
---|
| 552 | Bool getDeblockingFilterControlPresent() { return m_DeblockingFilterControlPresent; } |
---|
| 553 | #endif |
---|
[2] | 554 | |
---|
| 555 | //==== Motion search ======== |
---|
| 556 | Int getFastSearch () { return m_iFastSearch; } |
---|
| 557 | Int getSearchRange () { return m_iSearchRange; } |
---|
| 558 | |
---|
[5] | 559 | #if HHI_VSO |
---|
[2] | 560 | //==== VSO ========== |
---|
| 561 | UInt getVSOMode () { return m_uiVSOMode; } |
---|
| 562 | Bool getForceLambdaScaleVSO () { return m_bForceLambdaScale; } |
---|
| 563 | Double getLambdaScaleVSO () { return m_dLambdaScaleVSO; } |
---|
[5] | 564 | #if HHI_VSO_DIST_INT |
---|
[2] | 565 | Bool getAllowNegDist () { return m_bAllowNegDist; } |
---|
| 566 | #endif |
---|
[115] | 567 | #if LGE_WVSO_A0119 |
---|
[120] | 568 | Bool getUseWVSO () { return m_bUseWVSO; } |
---|
[115] | 569 | Int getVSOWeight () { return m_iVSOWeight; } |
---|
| 570 | Int getVSDWeight () { return m_iVSDWeight; } |
---|
[116] | 571 | Int getDWeight () { return m_iDWeight; } |
---|
[5] | 572 | #endif |
---|
[115] | 573 | #endif |
---|
[2] | 574 | |
---|
[56] | 575 | //==== Quality control ======== |
---|
| 576 | Int getMaxDeltaQP () { return m_iMaxDeltaQP; } |
---|
| 577 | Int getMaxCuDQPDepth () { return m_iMaxCuDQPDepth; } |
---|
| 578 | Bool getUseAdaptiveQP () { return m_bUseAdaptiveQP; } |
---|
| 579 | Int getQPAdaptationRange () { return m_iQPAdaptationRange; } |
---|
| 580 | //====== Lossless ======== |
---|
| 581 | #if LOSSLESS_CODING |
---|
| 582 | Bool getUseLossless () { return m_useLossless; } |
---|
| 583 | #endif |
---|
| 584 | |
---|
[2] | 585 | //==== Tool list ======== |
---|
| 586 | Void setUseSBACRD ( Bool b ) { m_bUseSBACRD = b; } |
---|
| 587 | Void setUseASR ( Bool b ) { m_bUseASR = b; } |
---|
| 588 | Void setUseHADME ( Bool b ) { m_bUseHADME = b; } |
---|
| 589 | Void setUseALF ( Bool b ) { m_bUseALF = b; } |
---|
| 590 | Void setUseLComb ( Bool b ) { m_bUseLComb = b; } |
---|
| 591 | Void setLCMod ( Bool b ) { m_bLCMod = b; } |
---|
| 592 | Void setUseRDOQ ( Bool b ) { m_bUseRDOQ = b; } |
---|
[56] | 593 | #if !PIC_CROPPING |
---|
| 594 | Void setUsePAD ( Bool b ) { m_bUsePAD = b; } |
---|
[2] | 595 | #endif |
---|
[5] | 596 | #if HHI_VSO |
---|
[2] | 597 | Void setUseVSO ( Bool b ) { m_bUseVSO = b; } |
---|
[5] | 598 | #endif |
---|
[56] | 599 | |
---|
[100] | 600 | #if SAIT_VSO_EST_A0033 |
---|
| 601 | Void setUseEstimatedVSD ( Bool b ) { m_bUseEstimatedVSD = b; } |
---|
| 602 | Void setDispCoeff ( Double d ) { m_dDispCoeff = d; } |
---|
| 603 | #endif |
---|
| 604 | |
---|
[56] | 605 | Void setUseFastEnc ( Bool b ) { m_bUseFastEnc = b; } |
---|
| 606 | Void setUseEarlyCU ( Bool b ) { m_bUseEarlyCU = b; } |
---|
| 607 | #if FAST_DECISION_FOR_MRG_RD_COST |
---|
| 608 | Void setUseFastDecisionForMerge ( Bool b ) { m_useFastDecisionForMerge = b; } |
---|
| 609 | #endif |
---|
| 610 | Void setUseCbfFastMode ( Bool b ) { m_bUseCbfFastMode = b; } |
---|
[2] | 611 | Void setUseConstrainedIntraPred ( Bool b ) { m_bUseConstrainedIntraPred = b; } |
---|
[56] | 612 | Void setPCMInputBitDepthFlag ( Bool b ) { m_bPCMInputBitDepthFlag = b; } |
---|
| 613 | Void setPCMFilterDisableFlag ( Bool b ) { m_bPCMFilterDisableFlag = b; } |
---|
| 614 | Void setUsePCM ( Bool b ) { m_usePCM = b; } |
---|
| 615 | Void setPCMLog2MaxSize ( UInt u ) { m_pcmLog2MaxSize = u; } |
---|
| 616 | Void setPCMLog2MinSize ( UInt u ) { m_uiPCMLog2MinSize = u; } |
---|
[2] | 617 | Void setdQPs ( Int* p ) { m_aidQP = p; } |
---|
| 618 | Void setDeltaQpRD ( UInt u ) {m_uiDeltaQpRD = u; } |
---|
| 619 | Bool getUseSBACRD () { return m_bUseSBACRD; } |
---|
| 620 | Bool getUseASR () { return m_bUseASR; } |
---|
| 621 | Bool getUseHADME () { return m_bUseHADME; } |
---|
| 622 | Bool getUseALF () { return m_bUseALF; } |
---|
| 623 | Void setALFEncodePassReduction (Int i) { m_iALFEncodePassReduction = i; } |
---|
| 624 | Int getALFEncodePassReduction () { return m_iALFEncodePassReduction; } |
---|
[56] | 625 | |
---|
| 626 | Void setALFMaxNumberFilters (Int i) { m_iALFMaxNumberFilters = i; } |
---|
| 627 | Int getALFMaxNumberFilters () { return m_iALFMaxNumberFilters; } |
---|
| 628 | #if LCU_SYNTAX_ALF |
---|
| 629 | Void setALFParamInSlice (Bool b) {m_bALFParamInSlice = b;} |
---|
| 630 | Bool getALFParamInSlice () {return m_bALFParamInSlice;} |
---|
| 631 | Void setALFPicBasedEncode (Bool b) {m_bALFPicBasedEncode = b;} |
---|
| 632 | Bool getALFPicBasedEncode () {return m_bALFPicBasedEncode;} |
---|
[2] | 633 | #endif |
---|
[56] | 634 | |
---|
[2] | 635 | Bool getUseLComb () { return m_bUseLComb; } |
---|
| 636 | Bool getLCMod () { return m_bLCMod; } |
---|
| 637 | Bool getUseRDOQ () { return m_bUseRDOQ; } |
---|
[56] | 638 | #if !PIC_CROPPING |
---|
| 639 | Bool getUsePAD () { return m_bUsePAD; } |
---|
[2] | 640 | #endif |
---|
| 641 | |
---|
[5] | 642 | #if HHI_VSO |
---|
[2] | 643 | Bool getUseVSO () { return m_bUseVSO; } |
---|
[5] | 644 | #endif |
---|
[100] | 645 | #if SAIT_VSO_EST_A0033 |
---|
| 646 | Bool getUseEstimatedVSD () { return m_bUseEstimatedVSD; } |
---|
| 647 | Double getDispCoeff () { return m_dDispCoeff; } |
---|
| 648 | #endif |
---|
| 649 | |
---|
[56] | 650 | Bool getUseFastEnc () { return m_bUseFastEnc; } |
---|
| 651 | Bool getUseEarlyCU () { return m_bUseEarlyCU; } |
---|
| 652 | #if FAST_DECISION_FOR_MRG_RD_COST |
---|
| 653 | Bool getUseFastDecisionForMerge () { return m_useFastDecisionForMerge; } |
---|
| 654 | #endif |
---|
| 655 | Bool getUseCbfFastMode () { return m_bUseCbfFastMode; } |
---|
[2] | 656 | Bool getUseConstrainedIntraPred () { return m_bUseConstrainedIntraPred; } |
---|
[56] | 657 | #if NS_HAD |
---|
| 658 | Bool getUseNSQT () { return m_useNSQT; } |
---|
[2] | 659 | #endif |
---|
[56] | 660 | Bool getPCMInputBitDepthFlag () { return m_bPCMInputBitDepthFlag; } |
---|
| 661 | Bool getPCMFilterDisableFlag () { return m_bPCMFilterDisableFlag; } |
---|
| 662 | Bool getUsePCM () { return m_usePCM; } |
---|
| 663 | UInt getPCMLog2MaxSize () { return m_pcmLog2MaxSize; } |
---|
| 664 | UInt getPCMLog2MinSize () { return m_uiPCMLog2MinSize; } |
---|
| 665 | |
---|
[2] | 666 | Bool getUseLMChroma () { return m_bUseLMChroma; } |
---|
| 667 | Void setUseLMChroma ( Bool b ) { m_bUseLMChroma = b; } |
---|
| 668 | |
---|
| 669 | Int* getdQPs () { return m_aidQP; } |
---|
| 670 | UInt getDeltaQpRD () { return m_uiDeltaQpRD; } |
---|
[56] | 671 | |
---|
[2] | 672 | //====== Slice ======== |
---|
| 673 | Void setSliceMode ( Int i ) { m_iSliceMode = i; } |
---|
| 674 | Void setSliceArgument ( Int i ) { m_iSliceArgument = i; } |
---|
| 675 | Int getSliceMode () { return m_iSliceMode; } |
---|
| 676 | Int getSliceArgument () { return m_iSliceArgument; } |
---|
| 677 | //====== Entropy Slice ======== |
---|
| 678 | Void setEntropySliceMode ( Int i ) { m_iEntropySliceMode = i; } |
---|
| 679 | Void setEntropySliceArgument ( Int i ) { m_iEntropySliceArgument = i; } |
---|
| 680 | Int getEntropySliceMode () { return m_iEntropySliceMode; } |
---|
| 681 | Int getEntropySliceArgument () { return m_iEntropySliceArgument;} |
---|
[56] | 682 | Void setSliceGranularity ( Int i ) { m_iSliceGranularity = i; } |
---|
| 683 | Int getSliceGranularity () { return m_iSliceGranularity; } |
---|
[120] | 684 | Void setLFCrossSliceBoundaryFlag ( Bool bValue ) { m_bLFCrossSliceBoundaryFlag = bValue; } |
---|
| 685 | Bool getLFCrossSliceBoundaryFlag () { return m_bLFCrossSliceBoundaryFlag; } |
---|
[56] | 686 | |
---|
| 687 | #if HHI_MPI |
---|
[120] | 688 | Void setUseMVI ( Bool bVal ) {m_bUseMVI = bVal;} |
---|
[2] | 689 | #endif |
---|
[120] | 690 | Void setUseSAO ( Bool bVal ) {m_bUseSAO = bVal;} |
---|
| 691 | Bool getUseSAO () {return m_bUseSAO;} |
---|
[56] | 692 | #if SAO_UNIT_INTERLEAVING |
---|
| 693 | Void setMaxNumOffsetsPerPic (Int iVal) { m_maxNumOffsetsPerPic = iVal; } |
---|
| 694 | Int getMaxNumOffsetsPerPic () { return m_maxNumOffsetsPerPic; } |
---|
| 695 | Void setSaoInterleavingFlag (bool bVal) { m_saoInterleavingFlag = bVal; } |
---|
| 696 | Bool getSaoInterleavingFlag () { return m_saoInterleavingFlag; } |
---|
[2] | 697 | #endif |
---|
[56] | 698 | Void setTileBehaviorControlPresentFlag ( Int i ) { m_iTileBehaviorControlPresentFlag = i; } |
---|
| 699 | Int getTileBehaviorControlPresentFlag () { return m_iTileBehaviorControlPresentFlag; } |
---|
| 700 | Void setLFCrossTileBoundaryFlag ( Bool bValue ) { m_bLFCrossTileBoundaryFlag = bValue; } |
---|
| 701 | Bool getLFCrossTileBoundaryFlag () { return m_bLFCrossTileBoundaryFlag; } |
---|
| 702 | Void setColumnRowInfoPresent ( Int i ) { m_iColumnRowInfoPresent = i; } |
---|
| 703 | Int getColumnRowInfoPresent () { return m_iColumnRowInfoPresent; } |
---|
| 704 | Void setUniformSpacingIdr ( Int i ) { m_iUniformSpacingIdr = i; } |
---|
| 705 | Int getUniformSpacingIdr () { return m_iUniformSpacingIdr; } |
---|
| 706 | #if !REMOVE_TILE_DEPENDENCE |
---|
| 707 | Void setTileBoundaryIndependenceIdr ( Int i ) { m_iTileBoundaryIndependenceIdr = i; } |
---|
| 708 | Int getTileBoundaryIndependenceIdr () { return m_iTileBoundaryIndependenceIdr; } |
---|
[5] | 709 | #endif |
---|
[56] | 710 | Void setNumColumnsMinus1 ( Int i ) { m_iNumColumnsMinus1 = i; } |
---|
| 711 | Int getNumColumnsMinus1 () { return m_iNumColumnsMinus1; } |
---|
| 712 | Void setColumnWidth ( char* str ) |
---|
| 713 | { |
---|
| 714 | char *columnWidth; |
---|
| 715 | int i=0; |
---|
| 716 | Int m_iWidthInCU = ( m_iSourceWidth%g_uiMaxCUWidth ) ? m_iSourceWidth/g_uiMaxCUWidth + 1 : m_iSourceWidth/g_uiMaxCUWidth; |
---|
[2] | 717 | |
---|
[56] | 718 | if( m_iUniformSpacingIdr == 0 && m_iNumColumnsMinus1 > 0 ) |
---|
| 719 | { |
---|
| 720 | m_puiColumnWidth = new UInt[m_iNumColumnsMinus1]; |
---|
| 721 | |
---|
| 722 | columnWidth = strtok(str, " ,-"); |
---|
| 723 | while(columnWidth!=NULL) |
---|
| 724 | { |
---|
| 725 | if( i>=m_iNumColumnsMinus1 ) |
---|
| 726 | { |
---|
| 727 | printf( "The number of columns whose width are defined is larger than the allowed number of columns.\n" ); |
---|
| 728 | exit( EXIT_FAILURE ); |
---|
| 729 | } |
---|
| 730 | *( m_puiColumnWidth + i ) = atoi( columnWidth ); |
---|
| 731 | printf("col: m_iWidthInCU= %4d i=%4d width= %4d\n",m_iWidthInCU,i,m_puiColumnWidth[i]); //AFU |
---|
| 732 | columnWidth = strtok(NULL, " ,-"); |
---|
| 733 | i++; |
---|
| 734 | } |
---|
| 735 | if( i<m_iNumColumnsMinus1 ) |
---|
| 736 | { |
---|
| 737 | printf( "The width of some columns is not defined.\n" ); |
---|
| 738 | exit( EXIT_FAILURE ); |
---|
| 739 | } |
---|
| 740 | } |
---|
| 741 | } |
---|
| 742 | UInt getColumnWidth ( UInt columnidx ) { return *( m_puiColumnWidth + columnidx ); } |
---|
| 743 | Void setNumRowsMinus1 ( Int i ) { m_iNumRowsMinus1 = i; } |
---|
| 744 | Int getNumRowsMinus1 () { return m_iNumRowsMinus1; } |
---|
| 745 | Void setRowHeight (char* str) |
---|
| 746 | { |
---|
| 747 | char *rowHeight; |
---|
| 748 | int i=0; |
---|
| 749 | Int m_iHeightInCU = ( m_iSourceHeight%g_uiMaxCUHeight ) ? m_iSourceHeight/g_uiMaxCUHeight + 1 : m_iSourceHeight/g_uiMaxCUHeight; |
---|
| 750 | |
---|
| 751 | if( m_iUniformSpacingIdr == 0 && m_iNumRowsMinus1 > 0 ) |
---|
| 752 | { |
---|
| 753 | m_puiRowHeight = new UInt[m_iNumRowsMinus1]; |
---|
| 754 | |
---|
| 755 | rowHeight = strtok(str, " ,-"); |
---|
| 756 | while(rowHeight!=NULL) |
---|
| 757 | { |
---|
| 758 | if( i>=m_iNumRowsMinus1 ) |
---|
| 759 | { |
---|
| 760 | printf( "The number of rows whose height are defined is larger than the allowed number of rows.\n" ); |
---|
| 761 | exit( EXIT_FAILURE ); |
---|
| 762 | } |
---|
| 763 | *( m_puiRowHeight + i ) = atoi( rowHeight ); |
---|
| 764 | printf("row: m_iHeightInCU=%4d i=%4d height=%4d\n",m_iHeightInCU,i,m_puiRowHeight[i]); //AFU |
---|
| 765 | rowHeight = strtok(NULL, " ,-"); |
---|
| 766 | i++; |
---|
| 767 | } |
---|
| 768 | if( i<m_iNumRowsMinus1 ) |
---|
| 769 | { |
---|
| 770 | printf( "The height of some rows is not defined.\n" ); |
---|
| 771 | exit( EXIT_FAILURE ); |
---|
| 772 | } |
---|
| 773 | } |
---|
| 774 | } |
---|
| 775 | UInt getRowHeight ( UInt rowIdx ) { return *( m_puiRowHeight + rowIdx ); } |
---|
| 776 | Void xCheckGSParameters(); |
---|
| 777 | Int getTileLocationInSliceHeaderFlag () { return m_iTileLocationInSliceHeaderFlag; } |
---|
| 778 | Void setTileLocationInSliceHeaderFlag ( Int iFlag ) { m_iTileLocationInSliceHeaderFlag = iFlag;} |
---|
| 779 | Int getTileMarkerFlag () { return m_iTileMarkerFlag; } |
---|
| 780 | Void setTileMarkerFlag ( Int iFlag ) { m_iTileMarkerFlag = iFlag; } |
---|
| 781 | Int getMaxTileMarkerEntryPoints () { return m_iMaxTileMarkerEntryPoints; } |
---|
| 782 | Void setMaxTileMarkerEntryPoints ( Int iCount ) { m_iMaxTileMarkerEntryPoints = iCount; } |
---|
| 783 | Double getMaxTileMarkerOffset () { return m_dMaxTileMarkerOffset; } |
---|
| 784 | Void setMaxTileMarkerOffset ( Double dCount ) { m_dMaxTileMarkerOffset = dCount; } |
---|
| 785 | Void setWaveFrontSynchro(Int iWaveFrontSynchro) { m_iWaveFrontSynchro = iWaveFrontSynchro; } |
---|
| 786 | Int getWaveFrontsynchro() { return m_iWaveFrontSynchro; } |
---|
| 787 | Void setWaveFrontFlush(Int iWaveFrontFlush) { m_iWaveFrontFlush = iWaveFrontFlush; } |
---|
| 788 | Int getWaveFrontFlush() { return m_iWaveFrontFlush; } |
---|
| 789 | Void setWaveFrontSubstreams(Int iWaveFrontSubstreams) { m_iWaveFrontSubstreams = iWaveFrontSubstreams; } |
---|
| 790 | Int getWaveFrontSubstreams() { return m_iWaveFrontSubstreams; } |
---|
[2] | 791 | void setPictureDigestEnabled(bool b) { m_pictureDigestEnabled = b; } |
---|
| 792 | bool getPictureDigestEnabled() { return m_pictureDigestEnabled; } |
---|
| 793 | |
---|
[56] | 794 | Void setUseWP ( Bool b ) { m_bUseWeightPred = b; } |
---|
| 795 | Void setWPBiPredIdc ( UInt u ) { m_uiBiPredIdc = u; } |
---|
| 796 | Bool getUseWP () { return m_bUseWeightPred; } |
---|
| 797 | UInt getWPBiPredIdc () { return m_uiBiPredIdc; } |
---|
| 798 | Void setUseScalingListId ( Int u ) { m_useScalingListId = u; } |
---|
| 799 | Int getUseScalingListId () { return m_useScalingListId; } |
---|
| 800 | Void setScalingListFile ( char* pch ){ m_scalingListFile = pch; } |
---|
| 801 | char* getScalingListFile () { return m_scalingListFile; } |
---|
| 802 | |
---|
| 803 | Void setEnableTMVP ( Bool b ) { m_bEnableTMVP = b; } |
---|
| 804 | Bool getEnableTMVP () { return m_bEnableTMVP; } |
---|
| 805 | #if MULTIBITS_DATA_HIDING |
---|
| 806 | Void setSignHideFlag( Int signHideFlag ) { m_signHideFlag = signHideFlag; } |
---|
| 807 | Void setTSIG( Int tsig ) { m_signHidingThreshold = tsig; } |
---|
| 808 | Int getSignHideFlag() { return m_signHideFlag; } |
---|
| 809 | Int getTSIG() { return m_signHidingThreshold; } |
---|
[2] | 810 | #endif |
---|
[77] | 811 | #if VIDYO_VPS_INTEGRATION |
---|
| 812 | Void setLayerId ( UInt layerId ) { m_layerId = layerId; } |
---|
| 813 | UInt getLayerId () { return m_layerId; } |
---|
| 814 | #endif |
---|
[2] | 815 | |
---|
[56] | 816 | Void setViewId ( Int viewId ) { m_viewId = viewId; } |
---|
| 817 | Int getViewId () { return m_viewId; } |
---|
| 818 | Void setIsDepth ( Bool isDepth ) { m_isDepth = isDepth; } |
---|
| 819 | Bool getIsDepth () { return m_isDepth; } |
---|
| 820 | |
---|
| 821 | #if HHI_DMM_WEDGE_INTRA || HHI_DMM_PRED_TEX |
---|
[120] | 822 | Void setUseDMM( Bool b) { m_bUseDMM = b; } |
---|
| 823 | Bool getUseDMM() { return m_bUseDMM; } |
---|
[56] | 824 | #endif |
---|
| 825 | |
---|
[116] | 826 | #if OL_DEPTHLIMIT_A0044 |
---|
[120] | 827 | Void setUseDPL(Bool b) {m_bDepthPartitionLimiting = b; } |
---|
| 828 | Bool getUseDPL() {return m_bDepthPartitionLimiting;} |
---|
[115] | 829 | #endif |
---|
| 830 | |
---|
[56] | 831 | Void setViewOrderIdx ( Int i ) { m_iViewOrderIdx = i; } |
---|
| 832 | Void setCamParPrecision ( UInt u ) { m_uiCamParPrecision = u; } |
---|
| 833 | Void setCamParInSliceHeader ( Bool b ) { m_bCamParInSliceHeader = b; } |
---|
| 834 | Void setCodedScale ( Int** p ) { m_aaiCodedScale = p; } |
---|
| 835 | Void setCodedOffset ( Int** p ) { m_aaiCodedOffset = p; } |
---|
| 836 | |
---|
| 837 | #if SONY_COLPIC_AVAILABILITY |
---|
| 838 | Int getViewOrderIdx () { return m_iViewOrderIdx; } |
---|
| 839 | #endif |
---|
[2] | 840 | }; |
---|
| 841 | |
---|
[56] | 842 | //! \} |
---|
| 843 | |
---|
[2] | 844 | #endif // !defined(AFX_TENCCFG_H__6B99B797_F4DA_4E46_8E78_7656339A6C41__INCLUDED_) |
---|