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