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