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