[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 | Int m_croppingMode; |
---|
| 112 | Int m_cropLeft; |
---|
| 113 | Int m_cropRight; |
---|
| 114 | Int m_cropTop; |
---|
| 115 | Int m_cropBottom; |
---|
[2] | 116 | Int m_iFrameToBeEncoded; |
---|
[56] | 117 | Double m_adLambdaModifier[ MAX_TLAYER ]; |
---|
[2] | 118 | |
---|
| 119 | //====== Coding Structure ======== |
---|
[56] | 120 | UInt m_uiIntraPeriod; |
---|
[2] | 121 | UInt m_uiDecodingRefreshType; ///< the type of decoding refresh employed for the random access. |
---|
[56] | 122 | Int m_iGOPSize; |
---|
| 123 | GOPEntryMvc m_GOPList[MAX_GOP+1]; |
---|
| 124 | Int m_extraRPSs; |
---|
| 125 | Int m_maxDecPicBuffering[MAX_TLAYER]; |
---|
| 126 | Int m_numReorderPics[MAX_TLAYER]; |
---|
| 127 | |
---|
[2] | 128 | Int m_iQP; // if (AdaptiveQP == OFF) |
---|
[56] | 129 | |
---|
[2] | 130 | Int m_aiTLayerQPOffset[MAX_TLAYER]; |
---|
| 131 | Int m_aiPad[2]; |
---|
[56] | 132 | |
---|
[2] | 133 | |
---|
[56] | 134 | Int m_iMaxRefPicNum; ///< this is used to mimic the sliding mechanism used by the decoder |
---|
| 135 | // TODO: We need to have a common sliding mechanism used by both the encoder and decoder |
---|
| 136 | |
---|
| 137 | Int m_maxTempLayer; ///< Max temporal layer |
---|
| 138 | Bool m_bDisInter4x4; |
---|
| 139 | Bool m_useAMP; |
---|
[2] | 140 | //======= Transform ============= |
---|
| 141 | UInt m_uiQuadtreeTULog2MaxSize; |
---|
| 142 | UInt m_uiQuadtreeTULog2MinSize; |
---|
| 143 | UInt m_uiQuadtreeTUMaxDepthInter; |
---|
| 144 | UInt m_uiQuadtreeTUMaxDepthIntra; |
---|
[56] | 145 | |
---|
| 146 | Bool m_useNSQT; |
---|
| 147 | |
---|
[2] | 148 | //====== Loop/Deblock Filter ======== |
---|
| 149 | Bool m_bLoopFilterDisable; |
---|
[56] | 150 | Bool m_loopFilterOffsetInAPS; |
---|
| 151 | Int m_loopFilterBetaOffsetDiv2; |
---|
| 152 | Int m_loopFilterTcOffsetDiv2; |
---|
| 153 | Bool m_DeblockingFilterControlPresent; |
---|
[2] | 154 | Bool m_bUseSAO; |
---|
[189] | 155 | #if LGE_ILLUCOMP_B0045 |
---|
| 156 | Bool m_bUseIC; |
---|
| 157 | #endif |
---|
[296] | 158 | #if INTER_VIEW_VECTOR_SCALING_C0115 |
---|
| 159 | Bool m_bUseIVS; |
---|
| 160 | #endif |
---|
[56] | 161 | Int m_maxNumOffsetsPerPic; |
---|
| 162 | Bool m_saoInterleavingFlag; |
---|
[2] | 163 | |
---|
[56] | 164 | //====== Lossless ======== |
---|
| 165 | #if LOSSLESS_CODING |
---|
| 166 | Bool m_useLossless; |
---|
| 167 | #endif |
---|
[2] | 168 | //====== Motion search ======== |
---|
| 169 | Int m_iFastSearch; // 0:Full search 1:Diamond 2:PMVFAST |
---|
| 170 | Int m_iSearchRange; // 0:Full frame |
---|
| 171 | Int m_bipredSearchRange; |
---|
[210] | 172 | #if DV_V_RESTRICTION_B0037 |
---|
| 173 | Bool m_bUseDisparitySearchRangeRestriction; |
---|
| 174 | Int m_iVerticalDisparitySearchRange; |
---|
| 175 | #endif |
---|
[56] | 176 | //====== Quality control ======== |
---|
[2] | 177 | Int m_iMaxDeltaQP; // Max. absolute delta QP (1:default) |
---|
[56] | 178 | Int m_iMaxCuDQPDepth; // Max. depth for a minimum CuDQP (0:default) |
---|
[2] | 179 | |
---|
[56] | 180 | Int m_iChromaQpOffset ; // ChromaQpOffset (0:default) |
---|
| 181 | Int m_iChromaQpOffset2nd; // ChromaQpOffset2nd (0:default) |
---|
| 182 | |
---|
| 183 | #if ADAPTIVE_QP_SELECTION |
---|
| 184 | Bool m_bUseAdaptQpSelect; |
---|
| 185 | #endif |
---|
| 186 | |
---|
| 187 | Bool m_bUseAdaptiveQP; |
---|
| 188 | Int m_iQPAdaptationRange; |
---|
| 189 | |
---|
[5] | 190 | #if HHI_VSO |
---|
[2] | 191 | //====== View Synthesis Optimization ====== |
---|
[56] | 192 | Bool m_bUseVSO; |
---|
[2] | 193 | Bool m_bForceLambdaScale; |
---|
[5] | 194 | #if HHI_VSO_DIST_INT |
---|
[2] | 195 | Bool m_bAllowNegDist; |
---|
| 196 | #endif |
---|
| 197 | Double m_dLambdaScaleVSO; |
---|
| 198 | UInt m_uiVSOMode; |
---|
[115] | 199 | #if LGE_WVSO_A0119 |
---|
[120] | 200 | Bool m_bUseWVSO; |
---|
[116] | 201 | Int m_iVSOWeight; |
---|
[115] | 202 | Int m_iVSDWeight; |
---|
[116] | 203 | Int m_iDWeight; |
---|
[5] | 204 | #endif |
---|
[115] | 205 | #endif |
---|
[100] | 206 | #if SAIT_VSO_EST_A0033 |
---|
| 207 | Bool m_bUseEstimatedVSD; |
---|
| 208 | Double m_dDispCoeff; |
---|
| 209 | #endif |
---|
[2] | 210 | |
---|
[100] | 211 | |
---|
[2] | 212 | //====== Tool list ======== |
---|
| 213 | Bool m_bUseSBACRD; |
---|
| 214 | Bool m_bUseALF; |
---|
| 215 | Int m_iALFEncodePassReduction; |
---|
[56] | 216 | |
---|
| 217 | Int m_iALFMaxNumberFilters; |
---|
| 218 | Bool m_bALFParamInSlice; |
---|
| 219 | Bool m_bALFPicBasedEncode; |
---|
| 220 | |
---|
[2] | 221 | Bool m_bUseASR; |
---|
| 222 | Bool m_bUseHADME; |
---|
| 223 | Bool m_bUseLComb; |
---|
| 224 | Bool m_bLCMod; |
---|
| 225 | Bool m_bUseRDOQ; |
---|
| 226 | Bool m_bUseFastEnc; |
---|
[56] | 227 | Bool m_bUseEarlyCU; |
---|
[2] | 228 | |
---|
[56] | 229 | Bool m_useFastDecisionForMerge; |
---|
| 230 | Bool m_bUseCbfFastMode; |
---|
| 231 | Bool m_bUseLMChroma; |
---|
| 232 | #if HHI_MPI |
---|
| 233 | Bool m_bUseMVI; |
---|
| 234 | #endif |
---|
[189] | 235 | #if RWTH_SDC_DLT_B0036 |
---|
| 236 | Bool m_bUseDLT; |
---|
| 237 | Bool m_bUseSDC; |
---|
| 238 | #endif |
---|
[2] | 239 | |
---|
| 240 | Int* m_aidQP; |
---|
| 241 | UInt m_uiDeltaQpRD; |
---|
[56] | 242 | |
---|
[2] | 243 | Bool m_bUseConstrainedIntraPred; |
---|
[56] | 244 | Bool m_usePCM; |
---|
| 245 | UInt m_pcmLog2MaxSize; |
---|
| 246 | UInt m_uiPCMLog2MinSize; |
---|
[2] | 247 | //====== Slice ======== |
---|
| 248 | Int m_iSliceMode; |
---|
[56] | 249 | Int m_iSliceArgument; |
---|
[2] | 250 | //====== Entropy Slice ======== |
---|
| 251 | Int m_iEntropySliceMode; |
---|
| 252 | Int m_iEntropySliceArgument; |
---|
[56] | 253 | Int m_iSliceGranularity; |
---|
[2] | 254 | Bool m_bLFCrossSliceBoundaryFlag; |
---|
| 255 | |
---|
[56] | 256 | Bool m_bPCMInputBitDepthFlag; |
---|
| 257 | UInt m_uiPCMBitDepthLuma; |
---|
| 258 | UInt m_uiPCMBitDepthChroma; |
---|
| 259 | Bool m_bPCMFilterDisableFlag; |
---|
| 260 | Int m_iTileBehaviorControlPresentFlag; |
---|
| 261 | Bool m_bLFCrossTileBoundaryFlag; |
---|
| 262 | Int m_iColumnRowInfoPresent; |
---|
| 263 | Int m_iUniformSpacingIdr; |
---|
| 264 | Int m_iNumColumnsMinus1; |
---|
| 265 | UInt* m_puiColumnWidth; |
---|
| 266 | Int m_iNumRowsMinus1; |
---|
| 267 | UInt* m_puiRowHeight; |
---|
| 268 | Int m_iTileLocationInSliceHeaderFlag; //< enable(1)/disable(0) transmitssion of tile location in slice header |
---|
| 269 | |
---|
| 270 | Int m_iTileMarkerFlag; //< enable(1)/disable(0) transmitssion of light weight tile marker |
---|
| 271 | Int m_iMaxTileMarkerEntryPoints; //< maximum number of tile markers allowed in a slice (controls degree of parallelism) |
---|
| 272 | Double m_dMaxTileMarkerOffset; //< Calculated offset. Light weight tile markers will be transmitted for TileIdx= Offset, 2*Offset, 3*Offset ... |
---|
| 273 | |
---|
| 274 | Int m_iWaveFrontSynchro; |
---|
| 275 | Int m_iWaveFrontFlush; |
---|
| 276 | Int m_iWaveFrontSubstreams; |
---|
| 277 | |
---|
[121] | 278 | Bool m_pictureDigestEnabled; ///< enable(1)/disable(0) md5 computation and SEI signalling |
---|
[2] | 279 | |
---|
| 280 | //====== Weighted Prediction ======== |
---|
[56] | 281 | Bool m_bUseWeightPred; //< Use of Weighting Prediction (P_SLICE) |
---|
| 282 | UInt m_uiBiPredIdc; //< Use of Bi-Directional Weighting Prediction (B_SLICE) |
---|
| 283 | Int m_useScalingListId; ///< Using quantization matrix i.e. 0=off, 1=default, 2=file. |
---|
| 284 | char* m_scalingListFile; ///< quantization matrix file name |
---|
| 285 | |
---|
| 286 | Bool m_bEnableTMVP; |
---|
| 287 | Int m_signHideFlag; |
---|
| 288 | Int m_signHidingThreshold; |
---|
[2] | 289 | |
---|
[210] | 290 | #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 |
---|
[77] | 291 | UInt m_layerId; |
---|
| 292 | #endif |
---|
| 293 | |
---|
[56] | 294 | Int m_viewId; |
---|
| 295 | Bool m_isDepth; |
---|
[2] | 296 | |
---|
[56] | 297 | #if HHI_INTERVIEW_SKIP |
---|
| 298 | Bool m_bInterViewSkip; |
---|
| 299 | #if HHI_INTERVIEW_SKIP_LAMBDA_SCALE |
---|
| 300 | Double m_dInterViewSkipLambdaScale; |
---|
[42] | 301 | #endif |
---|
[56] | 302 | #endif |
---|
| 303 | #if HHI_DMM_WEDGE_INTRA || HHI_DMM_PRED_TEX |
---|
[116] | 304 | Bool m_bUseDMM; |
---|
[56] | 305 | #endif |
---|
[2] | 306 | |
---|
[210] | 307 | #if HHI_DMM_PRED_TEX && FLEX_CODING_ORDER_M23723 |
---|
| 308 | Bool m_bUseDMM34; |
---|
| 309 | #endif |
---|
| 310 | |
---|
[332] | 311 | #if H3D_QTL |
---|
[189] | 312 | Bool m_bUseQTLPC; |
---|
[115] | 313 | #endif |
---|
| 314 | |
---|
[56] | 315 | Int m_iViewOrderIdx; |
---|
| 316 | |
---|
| 317 | UInt m_uiCamParPrecision; |
---|
| 318 | Bool m_bCamParInSliceHeader; |
---|
| 319 | Int** m_aaiCodedScale; |
---|
| 320 | Int** m_aaiCodedOffset; |
---|
| 321 | |
---|
[5] | 322 | #if DEPTH_MAP_GENERATION |
---|
[56] | 323 | UInt m_uiPredDepthMapGeneration; |
---|
| 324 | UInt m_uiPdmPrecision; |
---|
| 325 | Int** m_aaiPdmScaleNomDelta; |
---|
| 326 | Int** m_aaiPdmOffset; |
---|
[5] | 327 | #endif |
---|
[56] | 328 | |
---|
[296] | 329 | #if H3D_IVMP |
---|
[5] | 330 | UInt m_uiMultiviewMvPredMode; |
---|
[2] | 331 | UInt m_uiMultiviewMvRegMode; |
---|
| 332 | Double m_dMultiviewMvRegLambdaScale; |
---|
[5] | 333 | #endif |
---|
[296] | 334 | #if H3D_IVRP |
---|
[2] | 335 | UInt m_uiMultiviewResPredMode; |
---|
[5] | 336 | #endif |
---|
[2] | 337 | |
---|
| 338 | public: |
---|
| 339 | TEncCfg() {} |
---|
[56] | 340 | virtual ~TEncCfg() |
---|
| 341 | { |
---|
| 342 | if( m_iUniformSpacingIdr == 0 ) |
---|
| 343 | { |
---|
| 344 | if( m_iNumColumnsMinus1 ) |
---|
| 345 | { |
---|
| 346 | delete[] m_puiColumnWidth; |
---|
| 347 | m_puiColumnWidth = NULL; |
---|
| 348 | } |
---|
| 349 | if( m_iNumRowsMinus1 ) |
---|
| 350 | { |
---|
| 351 | delete[] m_puiRowHeight; |
---|
| 352 | m_puiRowHeight = NULL; |
---|
| 353 | } |
---|
| 354 | } |
---|
| 355 | m_iTileLocationInSliceHeaderFlag = 0; |
---|
| 356 | m_iTileMarkerFlag = 0; |
---|
| 357 | } |
---|
| 358 | |
---|
[2] | 359 | Void setFrameRate ( Int i ) { m_iFrameRate = i; } |
---|
| 360 | Void setFrameSkip ( unsigned int i ) { m_FrameSkip = i; } |
---|
| 361 | Void setSourceWidth ( Int i ) { m_iSourceWidth = i; } |
---|
| 362 | Void setSourceHeight ( Int i ) { m_iSourceHeight = i; } |
---|
[56] | 363 | Void setCroppingMode ( Int i ) { m_croppingMode = i; } |
---|
| 364 | Void setCropLeft ( Int i ) { m_cropLeft = i; } |
---|
| 365 | Void setCropRight ( Int i ) { m_cropRight = i; } |
---|
| 366 | Void setCropTop ( Int i ) { m_cropTop = i; } |
---|
| 367 | Void setCropBottom ( Int i ) { m_cropBottom = i; } |
---|
[2] | 368 | Void setFrameToBeEncoded ( Int i ) { m_iFrameToBeEncoded = i; } |
---|
[56] | 369 | |
---|
[2] | 370 | //====== Coding Structure ======== |
---|
[56] | 371 | Void setIntraPeriod ( Int i ) { m_uiIntraPeriod = (UInt)i; } |
---|
[2] | 372 | Void setDecodingRefreshType ( Int i ) { m_uiDecodingRefreshType = (UInt)i; } |
---|
[56] | 373 | Void setGOPSize ( Int i ) { m_iGOPSize = i; } |
---|
| 374 | Void setGopList ( GOPEntryMvc* GOPList ) { for( Int i = 0; i < MAX_GOP+1; i++ ) m_GOPList[i] = GOPList[i]; } |
---|
| 375 | Void setExtraRPSs ( Int i ) { m_extraRPSs = i; } |
---|
| 376 | GOPEntryMvc getGOPEntry ( Int i ) { return m_GOPList[i]; } |
---|
| 377 | Void setMaxDecPicBuffering ( UInt u, UInt tlayer ) { m_maxDecPicBuffering[tlayer] = u; } |
---|
| 378 | Void setNumReorderPics ( Int i, UInt tlayer ) { m_numReorderPics[tlayer] = i; } |
---|
| 379 | |
---|
| 380 | #if HHI_INTERVIEW_SKIP |
---|
| 381 | Void setInterViewSkip ( UInt u ) { m_bInterViewSkip = u; } |
---|
| 382 | Bool getInterViewSkip ( ) { return m_bInterViewSkip ;} |
---|
| 383 | #if HHI_INTERVIEW_SKIP_LAMBDA_SCALE |
---|
| 384 | Void setInterViewSkipLambdaScale ( UInt u ) { m_dInterViewSkipLambdaScale = u; } |
---|
| 385 | Double getInterViewSkipLambdaScale () { return m_dInterViewSkipLambdaScale; } |
---|
| 386 | #endif |
---|
| 387 | #endif |
---|
| 388 | Void setQP ( Int i ) { m_iQP = i; } |
---|
| 389 | |
---|
| 390 | Void setTemporalLayerQPOffset ( Int* piTemporalLayerQPOffset ) { for ( Int i = 0; i < MAX_TLAYER; i++ ) m_aiTLayerQPOffset[i] = piTemporalLayerQPOffset[i]; } |
---|
| 391 | Void setPad ( Int* iPad ) { for ( Int i = 0; i < 2; i++ ) m_aiPad[i] = iPad[i]; } |
---|
| 392 | |
---|
| 393 | Int getMaxRefPicNum () { return m_iMaxRefPicNum; } |
---|
| 394 | Void setMaxRefPicNum ( Int iMaxRefPicNum ) { m_iMaxRefPicNum = iMaxRefPicNum; } |
---|
[2] | 395 | |
---|
[56] | 396 | Bool getMaxTempLayer () { return m_maxTempLayer; } |
---|
| 397 | Void setMaxTempLayer ( Int maxTempLayer ) { m_maxTempLayer = maxTempLayer; } |
---|
[2] | 398 | |
---|
[56] | 399 | Bool getDisInter4x4 () { return m_bDisInter4x4; } |
---|
| 400 | Void setDisInter4x4 ( Bool b ) { m_bDisInter4x4 = b; } |
---|
| 401 | Bool isDepthCoder () { return m_isDepth; } |
---|
| 402 | |
---|
[5] | 403 | #if DEPTH_MAP_GENERATION |
---|
[2] | 404 | Void setPredDepthMapGeneration ( UInt u ) { m_uiPredDepthMapGeneration = u; } |
---|
| 405 | Void setPdmPrecision ( UInt u ) { m_uiPdmPrecision = u; } |
---|
| 406 | Void setPdmScaleNomDelta ( Int** p ) { m_aaiPdmScaleNomDelta = p; } |
---|
| 407 | Void setPdmOffset ( Int** p ) { m_aaiPdmOffset = p; } |
---|
[5] | 408 | #endif |
---|
[56] | 409 | |
---|
[296] | 410 | #if H3D_IVMP |
---|
[5] | 411 | Void setMultiviewMvPredMode ( UInt u ) { m_uiMultiviewMvPredMode = u; } |
---|
[2] | 412 | Void setMultiviewMvRegMode ( UInt u ) { m_uiMultiviewMvRegMode = u; } |
---|
| 413 | Void setMultiviewMvRegLambdaScale ( Double d) { m_dMultiviewMvRegLambdaScale = d; } |
---|
[5] | 414 | #endif |
---|
[296] | 415 | #if H3D_IVRP |
---|
[2] | 416 | Void setMultiviewResPredMode ( UInt u ) { m_uiMultiviewResPredMode = u; } |
---|
[5] | 417 | #endif |
---|
[56] | 418 | |
---|
[2] | 419 | //======== Transform ============= |
---|
| 420 | Void setQuadtreeTULog2MaxSize ( UInt u ) { m_uiQuadtreeTULog2MaxSize = u; } |
---|
| 421 | Void setQuadtreeTULog2MinSize ( UInt u ) { m_uiQuadtreeTULog2MinSize = u; } |
---|
| 422 | Void setQuadtreeTUMaxDepthInter ( UInt u ) { m_uiQuadtreeTUMaxDepthInter = u; } |
---|
| 423 | Void setQuadtreeTUMaxDepthIntra ( UInt u ) { m_uiQuadtreeTUMaxDepthIntra = u; } |
---|
[56] | 424 | |
---|
| 425 | Void setUseNSQT( Bool b ) { m_useNSQT = b; } |
---|
| 426 | Void setUseAMP( Bool b ) { m_useAMP = b; } |
---|
| 427 | |
---|
[2] | 428 | //====== Loop/Deblock Filter ======== |
---|
| 429 | Void setLoopFilterDisable ( Bool b ) { m_bLoopFilterDisable = b; } |
---|
[56] | 430 | Void setLoopFilterOffsetInAPS ( Bool b ) { m_loopFilterOffsetInAPS = b; } |
---|
| 431 | Void setLoopFilterBetaOffset ( Int i ) { m_loopFilterBetaOffsetDiv2 = i; } |
---|
| 432 | Void setLoopFilterTcOffset ( Int i ) { m_loopFilterTcOffsetDiv2 = i; } |
---|
| 433 | Void setDeblockingFilterControlPresent ( Bool b ) { m_DeblockingFilterControlPresent = b; } |
---|
[2] | 434 | |
---|
| 435 | //====== Motion search ======== |
---|
| 436 | Void setFastSearch ( Int i ) { m_iFastSearch = i; } |
---|
| 437 | Void setSearchRange ( Int i ) { m_iSearchRange = i; } |
---|
| 438 | Void setBipredSearchRange ( Int i ) { m_bipredSearchRange = i; } |
---|
[210] | 439 | #if DV_V_RESTRICTION_B0037 |
---|
| 440 | Void setUseDisparitySearchRangeRestriction ( Bool b ) { m_bUseDisparitySearchRangeRestriction = b; } |
---|
| 441 | Void setVerticalDisparitySearchRange ( Int i ) { m_iVerticalDisparitySearchRange = i; } |
---|
| 442 | #endif |
---|
[296] | 443 | #if H3D_IVMP |
---|
[56] | 444 | UInt getMultiviewMvRegMode () { return m_uiMultiviewMvRegMode; } |
---|
| 445 | Double getMultiviewMvRegLambdaScale () { return m_dMultiviewMvRegLambdaScale; } |
---|
| 446 | #endif |
---|
| 447 | |
---|
[5] | 448 | #if HHI_VSO |
---|
[2] | 449 | //==== VSO ========== |
---|
| 450 | Void setVSOMode ( UInt ui ) { m_uiVSOMode = ui; } |
---|
| 451 | Void setForceLambdaScaleVSO ( Bool b ) { m_bForceLambdaScale = b; }; |
---|
| 452 | Void setLambdaScaleVSO ( Double d ) { m_dLambdaScaleVSO = d; }; |
---|
[5] | 453 | #if HHI_VSO_DIST_INT |
---|
[2] | 454 | Void setAllowNegDist ( Bool b ) { m_bAllowNegDist = b; }; |
---|
| 455 | #endif |
---|
[115] | 456 | #if LGE_WVSO_A0119 |
---|
[120] | 457 | Void setUseWVSO ( Bool b ) { m_bUseWVSO = b; } |
---|
[116] | 458 | Void setVSOWeight ( Int i ) { m_iVSOWeight = i; } |
---|
| 459 | Void setVSDWeight ( Int i ) { m_iVSDWeight = i; } |
---|
| 460 | Void setDWeight ( Int i ) { m_iDWeight = i; } |
---|
[5] | 461 | #endif |
---|
[115] | 462 | #endif |
---|
[2] | 463 | |
---|
[56] | 464 | //====== Quality control ======== |
---|
| 465 | Void setMaxDeltaQP ( Int i ) { m_iMaxDeltaQP = i; } |
---|
| 466 | Void setMaxCuDQPDepth ( Int i ) { m_iMaxCuDQPDepth = i; } |
---|
| 467 | |
---|
| 468 | Void setChromaQpOffset ( Int i ) { m_iChromaQpOffset = i; } |
---|
| 469 | Void setChromaQpOffset2nd ( Int i ) { m_iChromaQpOffset2nd = i; } |
---|
| 470 | |
---|
| 471 | #if ADAPTIVE_QP_SELECTION |
---|
| 472 | Void setUseAdaptQpSelect ( Bool i ) { m_bUseAdaptQpSelect = i; } |
---|
| 473 | Bool getUseAdaptQpSelect () { return m_bUseAdaptQpSelect; } |
---|
| 474 | #endif |
---|
| 475 | |
---|
| 476 | Void setUseAdaptiveQP ( Bool b ) { m_bUseAdaptiveQP = b; } |
---|
| 477 | Void setQPAdaptationRange ( Int i ) { m_iQPAdaptationRange = i; } |
---|
| 478 | |
---|
| 479 | //====== Lossless ======== |
---|
| 480 | #if LOSSLESS_CODING |
---|
| 481 | Void setUseLossless (Bool b ) { m_useLossless = b; } |
---|
| 482 | #endif |
---|
[2] | 483 | //====== Sequence ======== |
---|
| 484 | Int getFrameRate () { return m_iFrameRate; } |
---|
| 485 | unsigned int getFrameSkip () { return m_FrameSkip; } |
---|
| 486 | Int getSourceWidth () { return m_iSourceWidth; } |
---|
| 487 | Int getSourceHeight () { return m_iSourceHeight; } |
---|
[56] | 488 | Int getCroppingMode () { return m_croppingMode; } |
---|
| 489 | Int getCropLeft () { return m_cropLeft; } |
---|
| 490 | Int getCropRight () { return m_cropRight; } |
---|
| 491 | Int getCropTop () { return m_cropTop; } |
---|
| 492 | Int getCropBottom () { return m_cropBottom; } |
---|
[2] | 493 | Int getFrameToBeEncoded () { return m_iFrameToBeEncoded; } |
---|
[56] | 494 | void setLambdaModifier ( UInt uiIndex, Double dValue ) { m_adLambdaModifier[ uiIndex ] = dValue; } |
---|
| 495 | Double getLambdaModifier ( UInt uiIndex ) const { return m_adLambdaModifier[ uiIndex ]; } |
---|
[2] | 496 | |
---|
| 497 | //==== Coding Structure ======== |
---|
[56] | 498 | UInt getIntraPeriod () { return m_uiIntraPeriod; } |
---|
[2] | 499 | UInt getDecodingRefreshType () { return m_uiDecodingRefreshType; } |
---|
[56] | 500 | Int getGOPSize () { return m_iGOPSize; } |
---|
| 501 | Int getMaxDecPicBuffering (UInt tlayer) { return m_maxDecPicBuffering[tlayer]; } |
---|
| 502 | Int getNumReorderPics (UInt tlayer) { return m_numReorderPics[tlayer]; } |
---|
[2] | 503 | Int getQP () { return m_iQP; } |
---|
[56] | 504 | |
---|
[2] | 505 | Int getTemporalLayerQPOffset ( Int i ) { assert (i < MAX_TLAYER ); return m_aiTLayerQPOffset[i]; } |
---|
| 506 | Int getPad ( Int i ) { assert (i < 2 ); return m_aiPad[i]; } |
---|
[56] | 507 | |
---|
[2] | 508 | //======== Transform ============= |
---|
| 509 | UInt getQuadtreeTULog2MaxSize () const { return m_uiQuadtreeTULog2MaxSize; } |
---|
| 510 | UInt getQuadtreeTULog2MinSize () const { return m_uiQuadtreeTULog2MinSize; } |
---|
| 511 | UInt getQuadtreeTUMaxDepthInter () const { return m_uiQuadtreeTUMaxDepthInter; } |
---|
| 512 | UInt getQuadtreeTUMaxDepthIntra () const { return m_uiQuadtreeTUMaxDepthIntra; } |
---|
[56] | 513 | |
---|
[2] | 514 | //==== Loop/Deblock Filter ======== |
---|
| 515 | Bool getLoopFilterDisable () { return m_bLoopFilterDisable; } |
---|
[56] | 516 | Bool getLoopFilterOffsetInAPS () { return m_loopFilterOffsetInAPS; } |
---|
| 517 | Int getLoopFilterBetaOffset () { return m_loopFilterBetaOffsetDiv2; } |
---|
| 518 | Int getLoopFilterTcOffset () { return m_loopFilterTcOffsetDiv2; } |
---|
| 519 | Bool getDeblockingFilterControlPresent() { return m_DeblockingFilterControlPresent; } |
---|
[2] | 520 | |
---|
| 521 | //==== Motion search ======== |
---|
| 522 | Int getFastSearch () { return m_iFastSearch; } |
---|
| 523 | Int getSearchRange () { return m_iSearchRange; } |
---|
[210] | 524 | #if DV_V_RESTRICTION_B0037 |
---|
| 525 | Bool getUseDisparitySearchRangeRestriction () { return m_bUseDisparitySearchRangeRestriction; } |
---|
| 526 | Int getVerticalDisparitySearchRange () { return m_iVerticalDisparitySearchRange; } |
---|
| 527 | #endif |
---|
[5] | 528 | #if HHI_VSO |
---|
[2] | 529 | //==== VSO ========== |
---|
| 530 | UInt getVSOMode () { return m_uiVSOMode; } |
---|
| 531 | Bool getForceLambdaScaleVSO () { return m_bForceLambdaScale; } |
---|
| 532 | Double getLambdaScaleVSO () { return m_dLambdaScaleVSO; } |
---|
[5] | 533 | #if HHI_VSO_DIST_INT |
---|
[2] | 534 | Bool getAllowNegDist () { return m_bAllowNegDist; } |
---|
| 535 | #endif |
---|
[115] | 536 | #if LGE_WVSO_A0119 |
---|
[120] | 537 | Bool getUseWVSO () { return m_bUseWVSO; } |
---|
[115] | 538 | Int getVSOWeight () { return m_iVSOWeight; } |
---|
| 539 | Int getVSDWeight () { return m_iVSDWeight; } |
---|
[116] | 540 | Int getDWeight () { return m_iDWeight; } |
---|
[5] | 541 | #endif |
---|
[115] | 542 | #endif |
---|
[2] | 543 | |
---|
[56] | 544 | //==== Quality control ======== |
---|
| 545 | Int getMaxDeltaQP () { return m_iMaxDeltaQP; } |
---|
| 546 | Int getMaxCuDQPDepth () { return m_iMaxCuDQPDepth; } |
---|
| 547 | Bool getUseAdaptiveQP () { return m_bUseAdaptiveQP; } |
---|
| 548 | Int getQPAdaptationRange () { return m_iQPAdaptationRange; } |
---|
| 549 | //====== Lossless ======== |
---|
| 550 | #if LOSSLESS_CODING |
---|
| 551 | Bool getUseLossless () { return m_useLossless; } |
---|
| 552 | #endif |
---|
| 553 | |
---|
[2] | 554 | //==== Tool list ======== |
---|
| 555 | Void setUseSBACRD ( Bool b ) { m_bUseSBACRD = b; } |
---|
| 556 | Void setUseASR ( Bool b ) { m_bUseASR = b; } |
---|
| 557 | Void setUseHADME ( Bool b ) { m_bUseHADME = b; } |
---|
| 558 | Void setUseALF ( Bool b ) { m_bUseALF = b; } |
---|
| 559 | Void setUseLComb ( Bool b ) { m_bUseLComb = b; } |
---|
| 560 | Void setLCMod ( Bool b ) { m_bLCMod = b; } |
---|
| 561 | Void setUseRDOQ ( Bool b ) { m_bUseRDOQ = b; } |
---|
[5] | 562 | #if HHI_VSO |
---|
[2] | 563 | Void setUseVSO ( Bool b ) { m_bUseVSO = b; } |
---|
[5] | 564 | #endif |
---|
[56] | 565 | |
---|
[100] | 566 | #if SAIT_VSO_EST_A0033 |
---|
| 567 | Void setUseEstimatedVSD ( Bool b ) { m_bUseEstimatedVSD = b; } |
---|
| 568 | Void setDispCoeff ( Double d ) { m_dDispCoeff = d; } |
---|
| 569 | #endif |
---|
| 570 | |
---|
[56] | 571 | Void setUseFastEnc ( Bool b ) { m_bUseFastEnc = b; } |
---|
| 572 | Void setUseEarlyCU ( Bool b ) { m_bUseEarlyCU = b; } |
---|
| 573 | Void setUseFastDecisionForMerge ( Bool b ) { m_useFastDecisionForMerge = b; } |
---|
| 574 | Void setUseCbfFastMode ( Bool b ) { m_bUseCbfFastMode = b; } |
---|
[2] | 575 | Void setUseConstrainedIntraPred ( Bool b ) { m_bUseConstrainedIntraPred = b; } |
---|
[56] | 576 | Void setPCMInputBitDepthFlag ( Bool b ) { m_bPCMInputBitDepthFlag = b; } |
---|
| 577 | Void setPCMFilterDisableFlag ( Bool b ) { m_bPCMFilterDisableFlag = b; } |
---|
| 578 | Void setUsePCM ( Bool b ) { m_usePCM = b; } |
---|
| 579 | Void setPCMLog2MaxSize ( UInt u ) { m_pcmLog2MaxSize = u; } |
---|
| 580 | Void setPCMLog2MinSize ( UInt u ) { m_uiPCMLog2MinSize = u; } |
---|
[2] | 581 | Void setdQPs ( Int* p ) { m_aidQP = p; } |
---|
| 582 | Void setDeltaQpRD ( UInt u ) {m_uiDeltaQpRD = u; } |
---|
| 583 | Bool getUseSBACRD () { return m_bUseSBACRD; } |
---|
| 584 | Bool getUseASR () { return m_bUseASR; } |
---|
| 585 | Bool getUseHADME () { return m_bUseHADME; } |
---|
| 586 | Bool getUseALF () { return m_bUseALF; } |
---|
| 587 | Void setALFEncodePassReduction (Int i) { m_iALFEncodePassReduction = i; } |
---|
| 588 | Int getALFEncodePassReduction () { return m_iALFEncodePassReduction; } |
---|
[56] | 589 | |
---|
| 590 | Void setALFMaxNumberFilters (Int i) { m_iALFMaxNumberFilters = i; } |
---|
| 591 | Int getALFMaxNumberFilters () { return m_iALFMaxNumberFilters; } |
---|
| 592 | Void setALFParamInSlice (Bool b) {m_bALFParamInSlice = b;} |
---|
| 593 | Bool getALFParamInSlice () {return m_bALFParamInSlice;} |
---|
| 594 | Void setALFPicBasedEncode (Bool b) {m_bALFPicBasedEncode = b;} |
---|
| 595 | Bool getALFPicBasedEncode () {return m_bALFPicBasedEncode;} |
---|
| 596 | |
---|
[2] | 597 | Bool getUseLComb () { return m_bUseLComb; } |
---|
| 598 | Bool getLCMod () { return m_bLCMod; } |
---|
| 599 | Bool getUseRDOQ () { return m_bUseRDOQ; } |
---|
| 600 | |
---|
[5] | 601 | #if HHI_VSO |
---|
[2] | 602 | Bool getUseVSO () { return m_bUseVSO; } |
---|
[5] | 603 | #endif |
---|
[100] | 604 | #if SAIT_VSO_EST_A0033 |
---|
| 605 | Bool getUseEstimatedVSD () { return m_bUseEstimatedVSD; } |
---|
| 606 | Double getDispCoeff () { return m_dDispCoeff; } |
---|
| 607 | #endif |
---|
| 608 | |
---|
[56] | 609 | Bool getUseFastEnc () { return m_bUseFastEnc; } |
---|
| 610 | Bool getUseEarlyCU () { return m_bUseEarlyCU; } |
---|
| 611 | Bool getUseFastDecisionForMerge () { return m_useFastDecisionForMerge; } |
---|
| 612 | Bool getUseCbfFastMode () { return m_bUseCbfFastMode; } |
---|
[2] | 613 | Bool getUseConstrainedIntraPred () { return m_bUseConstrainedIntraPred; } |
---|
[56] | 614 | #if NS_HAD |
---|
| 615 | Bool getUseNSQT () { return m_useNSQT; } |
---|
[2] | 616 | #endif |
---|
[56] | 617 | Bool getPCMInputBitDepthFlag () { return m_bPCMInputBitDepthFlag; } |
---|
| 618 | Bool getPCMFilterDisableFlag () { return m_bPCMFilterDisableFlag; } |
---|
| 619 | Bool getUsePCM () { return m_usePCM; } |
---|
| 620 | UInt getPCMLog2MaxSize () { return m_pcmLog2MaxSize; } |
---|
| 621 | UInt getPCMLog2MinSize () { return m_uiPCMLog2MinSize; } |
---|
| 622 | |
---|
[2] | 623 | Bool getUseLMChroma () { return m_bUseLMChroma; } |
---|
| 624 | Void setUseLMChroma ( Bool b ) { m_bUseLMChroma = b; } |
---|
| 625 | |
---|
| 626 | Int* getdQPs () { return m_aidQP; } |
---|
| 627 | UInt getDeltaQpRD () { return m_uiDeltaQpRD; } |
---|
[56] | 628 | |
---|
[2] | 629 | //====== Slice ======== |
---|
| 630 | Void setSliceMode ( Int i ) { m_iSliceMode = i; } |
---|
| 631 | Void setSliceArgument ( Int i ) { m_iSliceArgument = i; } |
---|
| 632 | Int getSliceMode () { return m_iSliceMode; } |
---|
| 633 | Int getSliceArgument () { return m_iSliceArgument; } |
---|
| 634 | //====== Entropy Slice ======== |
---|
| 635 | Void setEntropySliceMode ( Int i ) { m_iEntropySliceMode = i; } |
---|
| 636 | Void setEntropySliceArgument ( Int i ) { m_iEntropySliceArgument = i; } |
---|
| 637 | Int getEntropySliceMode () { return m_iEntropySliceMode; } |
---|
| 638 | Int getEntropySliceArgument () { return m_iEntropySliceArgument;} |
---|
[56] | 639 | Void setSliceGranularity ( Int i ) { m_iSliceGranularity = i; } |
---|
| 640 | Int getSliceGranularity () { return m_iSliceGranularity; } |
---|
[120] | 641 | Void setLFCrossSliceBoundaryFlag ( Bool bValue ) { m_bLFCrossSliceBoundaryFlag = bValue; } |
---|
| 642 | Bool getLFCrossSliceBoundaryFlag () { return m_bLFCrossSliceBoundaryFlag; } |
---|
[56] | 643 | |
---|
| 644 | #if HHI_MPI |
---|
[120] | 645 | Void setUseMVI ( Bool bVal ) {m_bUseMVI = bVal;} |
---|
[2] | 646 | #endif |
---|
[189] | 647 | #if RWTH_SDC_DLT_B0036 |
---|
| 648 | Void setUseDLT ( Bool b ) { m_bUseDLT = b; } |
---|
| 649 | Void setUseSDC ( Bool b ) { m_bUseSDC = b; } |
---|
| 650 | #endif |
---|
[120] | 651 | Void setUseSAO ( Bool bVal ) {m_bUseSAO = bVal;} |
---|
| 652 | Bool getUseSAO () {return m_bUseSAO;} |
---|
[189] | 653 | #if LGE_ILLUCOMP_B0045 |
---|
| 654 | Void setUseIC ( Bool bVal ) {m_bUseIC = bVal;} |
---|
| 655 | Bool getUseIC () {return m_bUseIC;} |
---|
| 656 | #endif |
---|
[296] | 657 | #if INTER_VIEW_VECTOR_SCALING_C0115 |
---|
| 658 | Void setUseIVS ( Bool bVal ) {m_bUseIVS = bVal;} |
---|
| 659 | Bool getUseIVS () {return m_bUseIVS;} |
---|
| 660 | #endif |
---|
[56] | 661 | Void setMaxNumOffsetsPerPic (Int iVal) { m_maxNumOffsetsPerPic = iVal; } |
---|
| 662 | Int getMaxNumOffsetsPerPic () { return m_maxNumOffsetsPerPic; } |
---|
| 663 | Void setSaoInterleavingFlag (bool bVal) { m_saoInterleavingFlag = bVal; } |
---|
| 664 | Bool getSaoInterleavingFlag () { return m_saoInterleavingFlag; } |
---|
| 665 | Void setTileBehaviorControlPresentFlag ( Int i ) { m_iTileBehaviorControlPresentFlag = i; } |
---|
| 666 | Int getTileBehaviorControlPresentFlag () { return m_iTileBehaviorControlPresentFlag; } |
---|
| 667 | Void setLFCrossTileBoundaryFlag ( Bool bValue ) { m_bLFCrossTileBoundaryFlag = bValue; } |
---|
| 668 | Bool getLFCrossTileBoundaryFlag () { return m_bLFCrossTileBoundaryFlag; } |
---|
| 669 | Void setColumnRowInfoPresent ( Int i ) { m_iColumnRowInfoPresent = i; } |
---|
| 670 | Int getColumnRowInfoPresent () { return m_iColumnRowInfoPresent; } |
---|
| 671 | Void setUniformSpacingIdr ( Int i ) { m_iUniformSpacingIdr = i; } |
---|
| 672 | Int getUniformSpacingIdr () { return m_iUniformSpacingIdr; } |
---|
| 673 | Void setNumColumnsMinus1 ( Int i ) { m_iNumColumnsMinus1 = i; } |
---|
| 674 | Int getNumColumnsMinus1 () { return m_iNumColumnsMinus1; } |
---|
| 675 | Void setColumnWidth ( char* str ) |
---|
| 676 | { |
---|
| 677 | char *columnWidth; |
---|
| 678 | int i=0; |
---|
| 679 | Int m_iWidthInCU = ( m_iSourceWidth%g_uiMaxCUWidth ) ? m_iSourceWidth/g_uiMaxCUWidth + 1 : m_iSourceWidth/g_uiMaxCUWidth; |
---|
[2] | 680 | |
---|
[56] | 681 | if( m_iUniformSpacingIdr == 0 && m_iNumColumnsMinus1 > 0 ) |
---|
| 682 | { |
---|
| 683 | m_puiColumnWidth = new UInt[m_iNumColumnsMinus1]; |
---|
| 684 | |
---|
| 685 | columnWidth = strtok(str, " ,-"); |
---|
| 686 | while(columnWidth!=NULL) |
---|
| 687 | { |
---|
| 688 | if( i>=m_iNumColumnsMinus1 ) |
---|
| 689 | { |
---|
| 690 | printf( "The number of columns whose width are defined is larger than the allowed number of columns.\n" ); |
---|
| 691 | exit( EXIT_FAILURE ); |
---|
| 692 | } |
---|
| 693 | *( m_puiColumnWidth + i ) = atoi( columnWidth ); |
---|
| 694 | printf("col: m_iWidthInCU= %4d i=%4d width= %4d\n",m_iWidthInCU,i,m_puiColumnWidth[i]); //AFU |
---|
| 695 | columnWidth = strtok(NULL, " ,-"); |
---|
| 696 | i++; |
---|
| 697 | } |
---|
| 698 | if( i<m_iNumColumnsMinus1 ) |
---|
| 699 | { |
---|
| 700 | printf( "The width of some columns is not defined.\n" ); |
---|
| 701 | exit( EXIT_FAILURE ); |
---|
| 702 | } |
---|
| 703 | } |
---|
| 704 | } |
---|
| 705 | UInt getColumnWidth ( UInt columnidx ) { return *( m_puiColumnWidth + columnidx ); } |
---|
| 706 | Void setNumRowsMinus1 ( Int i ) { m_iNumRowsMinus1 = i; } |
---|
| 707 | Int getNumRowsMinus1 () { return m_iNumRowsMinus1; } |
---|
| 708 | Void setRowHeight (char* str) |
---|
| 709 | { |
---|
| 710 | char *rowHeight; |
---|
| 711 | int i=0; |
---|
| 712 | Int m_iHeightInCU = ( m_iSourceHeight%g_uiMaxCUHeight ) ? m_iSourceHeight/g_uiMaxCUHeight + 1 : m_iSourceHeight/g_uiMaxCUHeight; |
---|
| 713 | |
---|
| 714 | if( m_iUniformSpacingIdr == 0 && m_iNumRowsMinus1 > 0 ) |
---|
| 715 | { |
---|
| 716 | m_puiRowHeight = new UInt[m_iNumRowsMinus1]; |
---|
| 717 | |
---|
| 718 | rowHeight = strtok(str, " ,-"); |
---|
| 719 | while(rowHeight!=NULL) |
---|
| 720 | { |
---|
| 721 | if( i>=m_iNumRowsMinus1 ) |
---|
| 722 | { |
---|
| 723 | printf( "The number of rows whose height are defined is larger than the allowed number of rows.\n" ); |
---|
| 724 | exit( EXIT_FAILURE ); |
---|
| 725 | } |
---|
| 726 | *( m_puiRowHeight + i ) = atoi( rowHeight ); |
---|
| 727 | printf("row: m_iHeightInCU=%4d i=%4d height=%4d\n",m_iHeightInCU,i,m_puiRowHeight[i]); //AFU |
---|
| 728 | rowHeight = strtok(NULL, " ,-"); |
---|
| 729 | i++; |
---|
| 730 | } |
---|
| 731 | if( i<m_iNumRowsMinus1 ) |
---|
| 732 | { |
---|
| 733 | printf( "The height of some rows is not defined.\n" ); |
---|
| 734 | exit( EXIT_FAILURE ); |
---|
| 735 | } |
---|
| 736 | } |
---|
| 737 | } |
---|
| 738 | UInt getRowHeight ( UInt rowIdx ) { return *( m_puiRowHeight + rowIdx ); } |
---|
| 739 | Void xCheckGSParameters(); |
---|
| 740 | Int getTileLocationInSliceHeaderFlag () { return m_iTileLocationInSliceHeaderFlag; } |
---|
| 741 | Void setTileLocationInSliceHeaderFlag ( Int iFlag ) { m_iTileLocationInSliceHeaderFlag = iFlag;} |
---|
| 742 | Int getTileMarkerFlag () { return m_iTileMarkerFlag; } |
---|
| 743 | Void setTileMarkerFlag ( Int iFlag ) { m_iTileMarkerFlag = iFlag; } |
---|
| 744 | Int getMaxTileMarkerEntryPoints () { return m_iMaxTileMarkerEntryPoints; } |
---|
| 745 | Void setMaxTileMarkerEntryPoints ( Int iCount ) { m_iMaxTileMarkerEntryPoints = iCount; } |
---|
| 746 | Double getMaxTileMarkerOffset () { return m_dMaxTileMarkerOffset; } |
---|
| 747 | Void setMaxTileMarkerOffset ( Double dCount ) { m_dMaxTileMarkerOffset = dCount; } |
---|
| 748 | Void setWaveFrontSynchro(Int iWaveFrontSynchro) { m_iWaveFrontSynchro = iWaveFrontSynchro; } |
---|
| 749 | Int getWaveFrontsynchro() { return m_iWaveFrontSynchro; } |
---|
| 750 | Void setWaveFrontFlush(Int iWaveFrontFlush) { m_iWaveFrontFlush = iWaveFrontFlush; } |
---|
| 751 | Int getWaveFrontFlush() { return m_iWaveFrontFlush; } |
---|
| 752 | Void setWaveFrontSubstreams(Int iWaveFrontSubstreams) { m_iWaveFrontSubstreams = iWaveFrontSubstreams; } |
---|
| 753 | Int getWaveFrontSubstreams() { return m_iWaveFrontSubstreams; } |
---|
[2] | 754 | void setPictureDigestEnabled(bool b) { m_pictureDigestEnabled = b; } |
---|
| 755 | bool getPictureDigestEnabled() { return m_pictureDigestEnabled; } |
---|
| 756 | |
---|
[56] | 757 | Void setUseWP ( Bool b ) { m_bUseWeightPred = b; } |
---|
| 758 | Void setWPBiPredIdc ( UInt u ) { m_uiBiPredIdc = u; } |
---|
| 759 | Bool getUseWP () { return m_bUseWeightPred; } |
---|
| 760 | UInt getWPBiPredIdc () { return m_uiBiPredIdc; } |
---|
| 761 | Void setUseScalingListId ( Int u ) { m_useScalingListId = u; } |
---|
| 762 | Int getUseScalingListId () { return m_useScalingListId; } |
---|
| 763 | Void setScalingListFile ( char* pch ){ m_scalingListFile = pch; } |
---|
| 764 | char* getScalingListFile () { return m_scalingListFile; } |
---|
| 765 | |
---|
| 766 | Void setEnableTMVP ( Bool b ) { m_bEnableTMVP = b; } |
---|
| 767 | Bool getEnableTMVP () { return m_bEnableTMVP; } |
---|
| 768 | Void setSignHideFlag( Int signHideFlag ) { m_signHideFlag = signHideFlag; } |
---|
| 769 | Void setTSIG( Int tsig ) { m_signHidingThreshold = tsig; } |
---|
| 770 | Int getSignHideFlag() { return m_signHideFlag; } |
---|
| 771 | Int getTSIG() { return m_signHidingThreshold; } |
---|
[210] | 772 | #if VIDYO_VPS_INTEGRATION |QC_MVHEVC_B0046 |
---|
[77] | 773 | Void setLayerId ( UInt layerId ) { m_layerId = layerId; } |
---|
| 774 | UInt getLayerId () { return m_layerId; } |
---|
| 775 | #endif |
---|
[2] | 776 | |
---|
[56] | 777 | Void setViewId ( Int viewId ) { m_viewId = viewId; } |
---|
| 778 | Int getViewId () { return m_viewId; } |
---|
| 779 | Void setIsDepth ( Bool isDepth ) { m_isDepth = isDepth; } |
---|
| 780 | Bool getIsDepth () { return m_isDepth; } |
---|
| 781 | |
---|
| 782 | #if HHI_DMM_WEDGE_INTRA || HHI_DMM_PRED_TEX |
---|
[120] | 783 | Void setUseDMM( Bool b) { m_bUseDMM = b; } |
---|
| 784 | Bool getUseDMM() { return m_bUseDMM; } |
---|
[56] | 785 | #endif |
---|
| 786 | |
---|
[210] | 787 | #if HHI_DMM_PRED_TEX && FLEX_CODING_ORDER_M23723 |
---|
| 788 | Void setUseDMM34( Bool b) { m_bUseDMM34 = b; } |
---|
| 789 | Bool getUseDMM34() { return m_bUseDMM34; } |
---|
| 790 | #endif |
---|
| 791 | |
---|
[332] | 792 | #if H3D_QTL |
---|
[189] | 793 | Void setUseQTLPC( Bool b ) { m_bUseQTLPC = b; } |
---|
| 794 | Bool getUseQTLPC() { return m_bUseQTLPC; } |
---|
[115] | 795 | #endif |
---|
[189] | 796 | |
---|
| 797 | #if RWTH_SDC_DLT_B0036 |
---|
| 798 | Bool getUseDLT() { return m_bUseDLT; } |
---|
| 799 | Bool getUseSDC() { return m_bUseSDC; } |
---|
| 800 | #endif |
---|
[115] | 801 | |
---|
[56] | 802 | Void setViewOrderIdx ( Int i ) { m_iViewOrderIdx = i; } |
---|
| 803 | Void setCamParPrecision ( UInt u ) { m_uiCamParPrecision = u; } |
---|
| 804 | Void setCamParInSliceHeader ( Bool b ) { m_bCamParInSliceHeader = b; } |
---|
| 805 | Void setCodedScale ( Int** p ) { m_aaiCodedScale = p; } |
---|
| 806 | Void setCodedOffset ( Int** p ) { m_aaiCodedOffset = p; } |
---|
| 807 | |
---|
[296] | 808 | #if INTER_VIEW_VECTOR_SCALING_C0115 |
---|
| 809 | Int getViewOrderIdx () { return m_iViewOrderIdx; } // will be changed to view_id |
---|
[56] | 810 | #endif |
---|
[2] | 811 | }; |
---|
| 812 | |
---|
[56] | 813 | //! \} |
---|
| 814 | |
---|
[2] | 815 | #endif // !defined(AFX_TENCCFG_H__6B99B797_F4DA_4E46_8E78_7656339A6C41__INCLUDED_) |
---|