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