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-2011, 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 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 | |
---|
35 | /** \file TEncCfg.h |
---|
36 | \brief encoder configuration class (header) |
---|
37 | */ |
---|
38 | |
---|
39 | #ifndef __TENCCFG__ |
---|
40 | #define __TENCCFG__ |
---|
41 | |
---|
42 | #if _MSC_VER > 1000 |
---|
43 | #pragma once |
---|
44 | #endif // _MSC_VER > 1000 |
---|
45 | |
---|
46 | #include "../TLibCommon/CommonDef.h" |
---|
47 | #include "TEncSeqStructure.h" |
---|
48 | #include <assert.h> |
---|
49 | |
---|
50 | #include <vector> |
---|
51 | |
---|
52 | // ==================================================================================================================== |
---|
53 | // Class definition |
---|
54 | // ==================================================================================================================== |
---|
55 | |
---|
56 | /// encoder configuration class |
---|
57 | class TEncCfg |
---|
58 | { |
---|
59 | protected: |
---|
60 | //==== File I/O ======== |
---|
61 | Int m_iFrameRate; |
---|
62 | Int m_FrameSkip; |
---|
63 | Int m_iSourceWidth; |
---|
64 | Int m_iSourceHeight; |
---|
65 | Int m_iFrameToBeEncoded; |
---|
66 | |
---|
67 | //====== Coding Structure ======== |
---|
68 | #if DCM_DECODING_REFRESH |
---|
69 | UInt m_uiDecodingRefreshType; ///< the type of decoding refresh employed for the random access. |
---|
70 | #endif |
---|
71 | |
---|
72 | UInt m_uiCodedPictureStoreSize ; |
---|
73 | Int m_iGOPSize; |
---|
74 | Int m_iRateGOPSize; |
---|
75 | |
---|
76 | std::string m_cInputFormatString ; |
---|
77 | |
---|
78 | Int m_iQP; // if (AdaptiveQP == OFF) |
---|
79 | |
---|
80 | Int m_aiTLayerQPOffset[MAX_TLAYER]; |
---|
81 | Int m_aiPad[2]; |
---|
82 | |
---|
83 | //======= Transform ============= |
---|
84 | UInt m_uiQuadtreeTULog2MaxSize; |
---|
85 | UInt m_uiQuadtreeTULog2MinSize; |
---|
86 | UInt m_uiQuadtreeTUMaxDepthInter; |
---|
87 | UInt m_uiQuadtreeTUMaxDepthIntra; |
---|
88 | |
---|
89 | //====== B Slice ======== |
---|
90 | |
---|
91 | //====== Entropy Coding ======== |
---|
92 | Int m_iSymbolMode; // (CAVLC, CABAC) |
---|
93 | |
---|
94 | //====== Loop/Deblock Filter ======== |
---|
95 | Bool m_bLoopFilterDisable; |
---|
96 | Int m_iLoopFilterAlphaC0Offset; |
---|
97 | Int m_iLoopFilterBetaOffset; |
---|
98 | |
---|
99 | #if MTK_SAO |
---|
100 | Bool m_bUseSAO; |
---|
101 | #endif |
---|
102 | |
---|
103 | //====== Motion search ======== |
---|
104 | Int m_iFastSearch; // 0:Full search 1:Diamond 2:PMVFAST |
---|
105 | Int m_iSearchRange; // 0:Full frame |
---|
106 | Int m_bipredSearchRange; |
---|
107 | Int m_iMaxDeltaQP; // Max. absolute delta QP (1:default) |
---|
108 | |
---|
109 | #if HHI_VSO |
---|
110 | //====== View Synthesis Optimization ====== |
---|
111 | Bool m_bForceLambdaScale; |
---|
112 | #if HHI_VSO_DIST_INT |
---|
113 | Bool m_bAllowNegDist; |
---|
114 | #endif |
---|
115 | Double m_dLambdaScaleVSO; |
---|
116 | UInt m_uiVSOMode; |
---|
117 | #endif |
---|
118 | |
---|
119 | //====== Tool list ======== |
---|
120 | Bool m_bUseSBACRD; |
---|
121 | Bool m_bUseALF; |
---|
122 | #if MQT_ALF_NPASS |
---|
123 | Int m_iALFEncodePassReduction; |
---|
124 | #endif |
---|
125 | Bool m_bUseASR; |
---|
126 | Bool m_bUseHADME; |
---|
127 | #if DCM_COMB_LIST |
---|
128 | Bool m_bUseLComb; |
---|
129 | Bool m_bLCMod; |
---|
130 | #endif |
---|
131 | Bool m_bUseRDOQ; |
---|
132 | #if !HHI_NO_LowDelayCoding |
---|
133 | Bool m_bUseLDC; |
---|
134 | #endif |
---|
135 | Bool m_bUsePAD; |
---|
136 | Bool m_bUseFastEnc; |
---|
137 | |
---|
138 | #if HHI_VSO |
---|
139 | Bool m_bUseVSO; |
---|
140 | #endif |
---|
141 | Bool m_bUseMRG; // SOPH: |
---|
142 | #if LM_CHROMA |
---|
143 | Bool m_bUseLMChroma; |
---|
144 | #endif |
---|
145 | |
---|
146 | Int* m_aidQP; |
---|
147 | UInt m_uiDeltaQpRD; |
---|
148 | |
---|
149 | #if HHI_RMP_SWITCH |
---|
150 | Bool m_bUseRMP; |
---|
151 | #endif |
---|
152 | #ifdef ROUNDING_CONTROL_BIPRED |
---|
153 | Bool m_useRoundingControlBipred; |
---|
154 | #endif |
---|
155 | #if CONSTRAINED_INTRA_PRED |
---|
156 | Bool m_bUseConstrainedIntraPred; |
---|
157 | #endif |
---|
158 | #if HHI_DMM_WEDGE_INTRA || HHI_DMM_PRED_TEX |
---|
159 | Bool m_bUseDMM; |
---|
160 | #endif |
---|
161 | #if HHI_DMM_PRED_TEX && FLEX_CODING_ORDER |
---|
162 | Bool m_bUseDMM34; |
---|
163 | #endif |
---|
164 | #if HHI_MPI |
---|
165 | Bool m_bUseMVI; |
---|
166 | #endif |
---|
167 | |
---|
168 | //====== Slice ======== |
---|
169 | Int m_iSliceMode; |
---|
170 | Int m_iSliceArgument; |
---|
171 | //====== Entropy Slice ======== |
---|
172 | Int m_iEntropySliceMode; |
---|
173 | Int m_iEntropySliceArgument; |
---|
174 | #if MTK_NONCROSS_INLOOP_FILTER |
---|
175 | Bool m_bLFCrossSliceBoundaryFlag; |
---|
176 | #endif |
---|
177 | |
---|
178 | bool m_pictureDigestEnabled; ///< enable(1)/disable(0) md5 computation and SEI signalling |
---|
179 | |
---|
180 | #ifdef WEIGHT_PRED |
---|
181 | //====== Weighted Prediction ======== |
---|
182 | Bool m_bUseWeightPred; // Use of Weighting Prediction (P_SLICE) |
---|
183 | UInt m_uiBiPredIdc; // Use of Bi-Directional Weighting Prediction (B_SLICE) |
---|
184 | #endif |
---|
185 | |
---|
186 | TEncSeqStructure m_cSequenceStructure; |
---|
187 | //std::vector<int> m_aiLayerQPOffset; |
---|
188 | |
---|
189 | #if BITSTREAM_EXTRACTION |
---|
190 | UInt m_uiLayerId; |
---|
191 | #endif |
---|
192 | UInt m_uiViewId; |
---|
193 | Int m_iViewOrderIdx; |
---|
194 | Bool m_bIsDepth; |
---|
195 | UInt m_uiCamParPrecision; |
---|
196 | Bool m_bCamParInSliceHeader; |
---|
197 | Int** m_aaiCodedScale; |
---|
198 | Int** m_aaiCodedOffset; |
---|
199 | |
---|
200 | #if DEPTH_MAP_GENERATION |
---|
201 | UInt m_uiPredDepthMapGeneration; |
---|
202 | UInt m_uiPdmPrecision; |
---|
203 | Int** m_aaiPdmScaleNomDelta; |
---|
204 | Int** m_aaiPdmOffset; |
---|
205 | #endif |
---|
206 | #if HHI_INTER_VIEW_MOTION_PRED |
---|
207 | UInt m_uiMultiviewMvPredMode; |
---|
208 | UInt m_uiMultiviewMvRegMode; |
---|
209 | Double m_dMultiviewMvRegLambdaScale; |
---|
210 | #endif |
---|
211 | #if HHI_INTER_VIEW_RESIDUAL_PRED |
---|
212 | UInt m_uiMultiviewResPredMode; |
---|
213 | #endif |
---|
214 | #if POZNAN_DBMP |
---|
215 | UInt m_uiDBMP; |
---|
216 | #endif |
---|
217 | #if POZNAN_ENCODE_ONLY_DISOCCLUDED_CU |
---|
218 | UInt m_uiUseCUSkip; |
---|
219 | #endif |
---|
220 | |
---|
221 | PicOrderCnt m_iQpChangeFrame; |
---|
222 | Int m_iQpChangeOffsetVideo; |
---|
223 | Int m_iQpChangeOffsetDepth; |
---|
224 | #if HHI_INTERVIEW_SKIP |
---|
225 | UInt m_uiInterViewSkip; |
---|
226 | #if HHI_INTERVIEW_SKIP_LAMBDA_SCALE |
---|
227 | Double m_dInterViewSkipLambdaScale; |
---|
228 | #endif |
---|
229 | #endif |
---|
230 | |
---|
231 | #if POZNAN_TEXTURE_TU_DELTA_QP_ACCORDING_TO_DEPTH |
---|
232 | Bool m_bUseTexDqpAccordingToDepth; |
---|
233 | #endif |
---|
234 | #if POZNAN_TEXTURE_TU_DELTA_QP_PARAM_IN_CFG_FOR_ENC |
---|
235 | Double m_dTexDqpAccordingToDepthOffset; |
---|
236 | Double m_dTexDqpAccordingToDepthMul; |
---|
237 | Int m_iTexDqpAccordingToDepthTopBottomRow; |
---|
238 | #endif |
---|
239 | #if POZNAN_NONLINEAR_DEPTH |
---|
240 | TComNonlinearDepthModel m_cNonlinearDepthModel; |
---|
241 | Bool m_bUseNonlinearDepth; |
---|
242 | #endif |
---|
243 | |
---|
244 | public: |
---|
245 | TEncCfg() {} |
---|
246 | virtual ~TEncCfg() {} |
---|
247 | |
---|
248 | Void setFrameRate ( Int i ) { m_iFrameRate = i; } |
---|
249 | Void setFrameSkip ( unsigned int i ) { m_FrameSkip = i; } |
---|
250 | Void setSourceWidth ( Int i ) { m_iSourceWidth = i; } |
---|
251 | Void setSourceHeight ( Int i ) { m_iSourceHeight = i; } |
---|
252 | Void setFrameToBeEncoded ( Int i ) { m_iFrameToBeEncoded = i; } |
---|
253 | |
---|
254 | //====== Coding Structure ======== |
---|
255 | #if DCM_DECODING_REFRESH |
---|
256 | Void setDecodingRefreshType ( Int i ) { m_uiDecodingRefreshType = (UInt)i; } |
---|
257 | #endif |
---|
258 | Void setCPSSize ( Int i ) { m_uiCodedPictureStoreSize = (UInt) i ;} |
---|
259 | Void setGOPSize ( Int i ) { m_iGOPSize = i; } |
---|
260 | Void setRateGOPSize ( Int i ) { m_iRateGOPSize = i; } |
---|
261 | |
---|
262 | #if BITSTREAM_EXTRACTION |
---|
263 | Void setLayerId ( UInt u ) { m_uiLayerId = u; } |
---|
264 | UInt getLayerId ( ) { return m_uiLayerId; } |
---|
265 | #endif |
---|
266 | Void setViewId ( UInt u ) { m_uiViewId = u; } |
---|
267 | Void setViewOrderIdx ( Int i ) { m_iViewOrderIdx = i; } |
---|
268 | Void setIsDepth ( Bool b ) { m_bIsDepth = b; } |
---|
269 | Void setCamParPrecision ( UInt u ) { m_uiCamParPrecision = u; } |
---|
270 | Void setCamParInSliceHeader ( Bool b ) { m_bCamParInSliceHeader = b; } |
---|
271 | Void setCodedScale ( Int** p ) { m_aaiCodedScale = p; } |
---|
272 | Void setCodedOffset ( Int** p ) { m_aaiCodedOffset = p; } |
---|
273 | |
---|
274 | #if DEPTH_MAP_GENERATION |
---|
275 | Void setPredDepthMapGeneration ( UInt u ) { m_uiPredDepthMapGeneration = u; } |
---|
276 | Void setPdmPrecision ( UInt u ) { m_uiPdmPrecision = u; } |
---|
277 | Void setPdmScaleNomDelta ( Int** p ) { m_aaiPdmScaleNomDelta = p; } |
---|
278 | Void setPdmOffset ( Int** p ) { m_aaiPdmOffset = p; } |
---|
279 | #endif |
---|
280 | #if HHI_INTER_VIEW_MOTION_PRED |
---|
281 | Void setMultiviewMvPredMode ( UInt u ) { m_uiMultiviewMvPredMode = u; } |
---|
282 | Void setMultiviewMvRegMode ( UInt u ) { m_uiMultiviewMvRegMode = u; } |
---|
283 | Void setMultiviewMvRegLambdaScale ( Double d) { m_dMultiviewMvRegLambdaScale = d; } |
---|
284 | #endif |
---|
285 | #if HHI_INTER_VIEW_RESIDUAL_PRED |
---|
286 | Void setMultiviewResPredMode ( UInt u ) { m_uiMultiviewResPredMode = u; } |
---|
287 | #endif |
---|
288 | |
---|
289 | #if POZNAN_DBMP |
---|
290 | Void setDBMP ( UInt u ) { m_uiDBMP = u; } |
---|
291 | #endif |
---|
292 | |
---|
293 | #if POZNAN_ENCODE_ONLY_DISOCCLUDED_CU |
---|
294 | Void setUseCUSkip ( UInt u ) { m_uiUseCUSkip = u; } |
---|
295 | #endif |
---|
296 | |
---|
297 | #if HHI_INTERVIEW_SKIP |
---|
298 | Void setInterViewSkip ( UInt u ) { m_uiInterViewSkip = u; } |
---|
299 | Bool getInterViewSkip ( ) { return (m_uiInterViewSkip?true:false) ;} |
---|
300 | #if HHI_INTERVIEW_SKIP_LAMBDA_SCALE |
---|
301 | Void setInterViewSkipLambdaScale ( UInt u ) { m_dInterViewSkipLambdaScale = u; } |
---|
302 | Double getInterViewSkipLambdaScale () { return m_dInterViewSkipLambdaScale; } |
---|
303 | #endif |
---|
304 | #endif |
---|
305 | |
---|
306 | Bool isDepthCoder () { return m_bIsDepth; } |
---|
307 | |
---|
308 | Void setSeqStructure( std::string s ) { m_cSequenceStructure.init( s ); } |
---|
309 | |
---|
310 | Void setQP ( Int i ) { m_iQP = i; } |
---|
311 | |
---|
312 | Void setTemporalLayerQPOffset ( Int* piTemporalLayerQPOffset ) { for ( Int i = 0; i < MAX_TLAYER; i++ ) m_aiTLayerQPOffset[i] = piTemporalLayerQPOffset[i]; } |
---|
313 | Void setPad ( Int* iPad ) { for ( Int i = 0; i < 2; i++ ) m_aiPad[i] = iPad[i]; } |
---|
314 | |
---|
315 | //======== Transform ============= |
---|
316 | Void setQuadtreeTULog2MaxSize ( UInt u ) { m_uiQuadtreeTULog2MaxSize = u; } |
---|
317 | Void setQuadtreeTULog2MinSize ( UInt u ) { m_uiQuadtreeTULog2MinSize = u; } |
---|
318 | Void setQuadtreeTUMaxDepthInter ( UInt u ) { m_uiQuadtreeTUMaxDepthInter = u; } |
---|
319 | Void setQuadtreeTUMaxDepthIntra ( UInt u ) { m_uiQuadtreeTUMaxDepthIntra = u; } |
---|
320 | |
---|
321 | //====== b; Slice ======== |
---|
322 | |
---|
323 | //====== Entropy Coding ======== |
---|
324 | Void setSymbolMode ( Int i ) { m_iSymbolMode = i; } |
---|
325 | |
---|
326 | //====== Loop/Deblock Filter ======== |
---|
327 | Void setLoopFilterDisable ( Bool b ) { m_bLoopFilterDisable = b; } |
---|
328 | Void setLoopFilterAlphaC0Offset ( Int i ) { m_iLoopFilterAlphaC0Offset = i; } |
---|
329 | Void setLoopFilterBetaOffset ( Int i ) { m_iLoopFilterBetaOffset = i; } |
---|
330 | |
---|
331 | //====== Motion search ======== |
---|
332 | Void setFastSearch ( Int i ) { m_iFastSearch = i; } |
---|
333 | Void setSearchRange ( Int i ) { m_iSearchRange = i; } |
---|
334 | Void setBipredSearchRange ( Int i ) { m_bipredSearchRange = i; } |
---|
335 | Void setMaxDeltaQP ( Int i ) { m_iMaxDeltaQP = i; } |
---|
336 | |
---|
337 | #if HHI_VSO |
---|
338 | //==== VSO ========== |
---|
339 | Void setVSOMode ( UInt ui ) { m_uiVSOMode = ui; } |
---|
340 | Void setForceLambdaScaleVSO ( Bool b ) { m_bForceLambdaScale = b; }; |
---|
341 | Void setLambdaScaleVSO ( Double d ) { m_dLambdaScaleVSO = d; }; |
---|
342 | #if HHI_VSO_DIST_INT |
---|
343 | Void setAllowNegDist ( Bool b ) { m_bAllowNegDist = b; }; |
---|
344 | #endif |
---|
345 | #endif |
---|
346 | |
---|
347 | #if POZNAN_NONLINEAR_DEPTH |
---|
348 | inline TComNonlinearDepthModel& getNonlinearDepthModel() { return m_cNonlinearDepthModel; } |
---|
349 | inline Void setNonlinearDepthModel( TComNonlinearDepthModel &rp ) { m_cNonlinearDepthModel = rp; } |
---|
350 | |
---|
351 | Void setUseNonlinearDepth ( Bool bVal ) { m_bUseNonlinearDepth = bVal; } |
---|
352 | bool getUseNonlinearDepth () { return m_bUseNonlinearDepth; } |
---|
353 | #endif |
---|
354 | |
---|
355 | //====== Sequence ======== |
---|
356 | Int getFrameRate () { return m_iFrameRate; } |
---|
357 | unsigned int getFrameSkip () { return m_FrameSkip; } |
---|
358 | Int getSourceWidth () { return m_iSourceWidth; } |
---|
359 | Int getSourceHeight () { return m_iSourceHeight; } |
---|
360 | Int getFrameToBeEncoded () { return m_iFrameToBeEncoded; } |
---|
361 | |
---|
362 | //==== Coding Structure ======== |
---|
363 | #if DCM_DECODING_REFRESH |
---|
364 | UInt getDecodingRefreshType () { return m_uiDecodingRefreshType; } |
---|
365 | #endif |
---|
366 | UInt getCodedPictureBufferSize () { return m_uiCodedPictureStoreSize ;} |
---|
367 | |
---|
368 | Int getGOPSize () { return m_iGOPSize; } |
---|
369 | Int getRateGOPSize () { return m_iRateGOPSize; } |
---|
370 | |
---|
371 | Int getQP () { return m_iQP; } |
---|
372 | |
---|
373 | Int getTemporalLayerQPOffset ( Int i ) { assert (i < MAX_TLAYER ); return m_aiTLayerQPOffset[i]; } |
---|
374 | Int getPad ( Int i ) { assert (i < 2 ); return m_aiPad[i]; } |
---|
375 | |
---|
376 | //======== Transform ============= |
---|
377 | UInt getQuadtreeTULog2MaxSize () const { return m_uiQuadtreeTULog2MaxSize; } |
---|
378 | UInt getQuadtreeTULog2MinSize () const { return m_uiQuadtreeTULog2MinSize; } |
---|
379 | UInt getQuadtreeTUMaxDepthInter () const { return m_uiQuadtreeTUMaxDepthInter; } |
---|
380 | UInt getQuadtreeTUMaxDepthIntra () const { return m_uiQuadtreeTUMaxDepthIntra; } |
---|
381 | |
---|
382 | //==== b; Slice ======== |
---|
383 | |
---|
384 | //==== Entropy Coding ======== |
---|
385 | Int getSymbolMode () { return m_iSymbolMode; } |
---|
386 | |
---|
387 | //==== Loop/Deblock Filter ======== |
---|
388 | Bool getLoopFilterDisable () { return m_bLoopFilterDisable; } |
---|
389 | Int getLoopFilterAlphaC0Offget () { return m_iLoopFilterAlphaC0Offset; } |
---|
390 | Int getLoopFilterBetaOffget () { return m_iLoopFilterBetaOffset; } |
---|
391 | |
---|
392 | //==== Motion search ======== |
---|
393 | Int getFastSearch () { return m_iFastSearch; } |
---|
394 | Int getSearchRange () { return m_iSearchRange; } |
---|
395 | Int getMaxDeltaQP () { return m_iMaxDeltaQP; } |
---|
396 | |
---|
397 | #if HHI_INTER_VIEW_MOTION_PRED |
---|
398 | UInt getMultiviewMvRegMode () { return m_uiMultiviewMvRegMode; } |
---|
399 | Double getMultiviewMvRegLambdaScale () { return m_dMultiviewMvRegLambdaScale; } |
---|
400 | #endif |
---|
401 | |
---|
402 | #if SONY_COLPIC_AVAILABILITY |
---|
403 | Int getViewOrderIdx () { return m_iViewOrderIdx; } |
---|
404 | #endif |
---|
405 | |
---|
406 | #if HHI_VSO |
---|
407 | //==== VSO ========== |
---|
408 | UInt getVSOMode () { return m_uiVSOMode; } |
---|
409 | Bool getForceLambdaScaleVSO () { return m_bForceLambdaScale; } |
---|
410 | Double getLambdaScaleVSO () { return m_dLambdaScaleVSO; } |
---|
411 | #if HHI_VSO_DIST_INT |
---|
412 | Bool getAllowNegDist () { return m_bAllowNegDist; } |
---|
413 | #endif |
---|
414 | #endif |
---|
415 | |
---|
416 | //==== Tool list ======== |
---|
417 | Void setUseSBACRD ( Bool b ) { m_bUseSBACRD = b; } |
---|
418 | Void setUseASR ( Bool b ) { m_bUseASR = b; } |
---|
419 | Void setUseHADME ( Bool b ) { m_bUseHADME = b; } |
---|
420 | Void setUseALF ( Bool b ) { m_bUseALF = b; } |
---|
421 | #if DCM_COMB_LIST |
---|
422 | Void setUseLComb ( Bool b ) { m_bUseLComb = b; } |
---|
423 | Void setLCMod ( Bool b ) { m_bLCMod = b; } |
---|
424 | #endif |
---|
425 | Void setUseRDOQ ( Bool b ) { m_bUseRDOQ = b; } |
---|
426 | #if !HHI_NO_LowDelayCoding |
---|
427 | Void setUseLDC ( Bool b ) { m_bUseLDC = b; } |
---|
428 | #endif |
---|
429 | Void setUsePAD ( Bool b ) { m_bUsePAD = b; } |
---|
430 | Void setUseFastEnc ( Bool b ) { m_bUseFastEnc = b; } |
---|
431 | #if HHI_VSO |
---|
432 | Void setUseVSO ( Bool b ) { m_bUseVSO = b; } |
---|
433 | #endif |
---|
434 | Void setUseMRG ( Bool b ) { m_bUseMRG = b; } // SOPH: |
---|
435 | #if CONSTRAINED_INTRA_PRED |
---|
436 | Void setUseConstrainedIntraPred ( Bool b ) { m_bUseConstrainedIntraPred = b; } |
---|
437 | #endif |
---|
438 | Void setdQPs ( Int* p ) { m_aidQP = p; } |
---|
439 | Void setDeltaQpRD ( UInt u ) {m_uiDeltaQpRD = u; } |
---|
440 | |
---|
441 | Bool getUseSBACRD () { return m_bUseSBACRD; } |
---|
442 | Bool getUseASR () { return m_bUseASR; } |
---|
443 | Bool getUseHADME () { return m_bUseHADME; } |
---|
444 | Bool getUseALF () { return m_bUseALF; } |
---|
445 | #if MQT_ALF_NPASS |
---|
446 | Void setALFEncodePassReduction (Int i) { m_iALFEncodePassReduction = i; } |
---|
447 | Int getALFEncodePassReduction () { return m_iALFEncodePassReduction; } |
---|
448 | #endif |
---|
449 | #if DCM_COMB_LIST |
---|
450 | Bool getUseLComb () { return m_bUseLComb; } |
---|
451 | Bool getLCMod () { return m_bLCMod; } |
---|
452 | #endif |
---|
453 | Bool getUseRDOQ () { return m_bUseRDOQ; } |
---|
454 | #if !HHI_NO_LowDelayCoding |
---|
455 | Bool getUseLDC () { return m_bUseLDC; } |
---|
456 | #endif |
---|
457 | Bool getUsePAD () { return m_bUsePAD; } |
---|
458 | Bool getUseFastEnc () { return m_bUseFastEnc; } |
---|
459 | |
---|
460 | #if HHI_VSO |
---|
461 | Bool getUseVSO () { return m_bUseVSO; } |
---|
462 | #endif |
---|
463 | Bool getUseMRG () { return m_bUseMRG; } // SOPH: |
---|
464 | #if CONSTRAINED_INTRA_PRED |
---|
465 | Bool getUseConstrainedIntraPred () { return m_bUseConstrainedIntraPred; } |
---|
466 | #endif |
---|
467 | #if HHI_DMM_WEDGE_INTRA || HHI_DMM_PRED_TEX |
---|
468 | Void setUseDMM( Bool b) { m_bUseDMM = b; } |
---|
469 | Bool getUseDMM() { return m_bUseDMM; } |
---|
470 | #endif |
---|
471 | #if HHI_DMM_PRED_TEX && FLEX_CODING_ORDER |
---|
472 | Void setUseDMM34( Bool b) { m_bUseDMM34 = b; } |
---|
473 | Bool getUseDMM34() { return m_bUseDMM34; } |
---|
474 | #endif |
---|
475 | #if LM_CHROMA |
---|
476 | Bool getUseLMChroma () { return m_bUseLMChroma; } |
---|
477 | Void setUseLMChroma ( Bool b ) { m_bUseLMChroma = b; } |
---|
478 | #endif |
---|
479 | |
---|
480 | Int* getdQPs () { return m_aidQP; } |
---|
481 | UInt getDeltaQpRD () { return m_uiDeltaQpRD; } |
---|
482 | #if HHI_RMP_SWITCH |
---|
483 | Void setUseRMP ( Bool b ) { m_bUseRMP = b; } |
---|
484 | Bool getUseRMP () {return m_bUseRMP; } |
---|
485 | #endif |
---|
486 | #ifdef ROUNDING_CONTROL_BIPRED |
---|
487 | Void setUseRoundingControlBipred(Bool b) { m_useRoundingControlBipred = b; } |
---|
488 | Bool getUseRoundingControlBipred() { return m_useRoundingControlBipred; } |
---|
489 | #endif |
---|
490 | //====== Slice ======== |
---|
491 | Void setSliceMode ( Int i ) { m_iSliceMode = i; } |
---|
492 | Void setSliceArgument ( Int i ) { m_iSliceArgument = i; } |
---|
493 | Int getSliceMode () { return m_iSliceMode; } |
---|
494 | Int getSliceArgument () { return m_iSliceArgument; } |
---|
495 | //====== Entropy Slice ======== |
---|
496 | Void setEntropySliceMode ( Int i ) { m_iEntropySliceMode = i; } |
---|
497 | Void setEntropySliceArgument ( Int i ) { m_iEntropySliceArgument = i; } |
---|
498 | Int getEntropySliceMode () { return m_iEntropySliceMode; } |
---|
499 | Int getEntropySliceArgument () { return m_iEntropySliceArgument;} |
---|
500 | #if MTK_NONCROSS_INLOOP_FILTER |
---|
501 | Void setLFCrossSliceBoundaryFlag ( Bool bValue ) { m_bLFCrossSliceBoundaryFlag = bValue; } |
---|
502 | Bool getLFCrossSliceBoundaryFlag () { return m_bLFCrossSliceBoundaryFlag; } |
---|
503 | #endif |
---|
504 | #if MTK_SAO |
---|
505 | Void setUseSAO (Bool bVal) {m_bUseSAO = bVal;} |
---|
506 | Bool getUseSAO () {return m_bUseSAO;} |
---|
507 | #endif |
---|
508 | #if HHI_MPI |
---|
509 | Void setUseMVI (Bool bVal) {m_bUseMVI = bVal;} |
---|
510 | #endif |
---|
511 | |
---|
512 | void setPictureDigestEnabled(bool b) { m_pictureDigestEnabled = b; } |
---|
513 | bool getPictureDigestEnabled() { return m_pictureDigestEnabled; } |
---|
514 | |
---|
515 | #ifdef WEIGHT_PRED |
---|
516 | Void setUseWP ( Bool b ) { m_bUseWeightPred = b; } |
---|
517 | Void setWPBiPredIdc ( UInt u ) { m_uiBiPredIdc = u; } |
---|
518 | Bool getUseWP () { return m_bUseWeightPred; } |
---|
519 | UInt getWPBiPredIdc () { return m_uiBiPredIdc; } |
---|
520 | #endif |
---|
521 | |
---|
522 | Void setQpChangeFrame( PicOrderCnt iPoc ) { m_iQpChangeFrame = iPoc; } |
---|
523 | Int getQpChangeFrame() { return (Int)m_iQpChangeFrame; } |
---|
524 | Void setQpChangeOffsetVideo( Int iOffset ) { m_iQpChangeOffsetVideo = iOffset; } |
---|
525 | Int getQpChangeOffsetVideo() { return m_iQpChangeOffsetVideo; } |
---|
526 | Void setQpChangeOffsetDepth( Int iOffset ) { m_iQpChangeOffsetDepth = iOffset; } |
---|
527 | Int getQpChangeOffsetDepth() { return m_iQpChangeOffsetDepth; } |
---|
528 | |
---|
529 | #if POZNAN_TEXTURE_TU_DELTA_QP_ACCORDING_TO_DEPTH |
---|
530 | Bool getUseTexDqpAccordingToDepth () { return m_bUseTexDqpAccordingToDepth; } |
---|
531 | Void setUseTexDqpAccordingToDepth ( Bool b ) { m_bUseTexDqpAccordingToDepth = b; } |
---|
532 | #endif |
---|
533 | }; |
---|
534 | |
---|
535 | #endif // !defined(AFX_TENCCFG_H__6B99B797_F4DA_4E46_8E78_7656339A6C41__INCLUDED_) |
---|
536 | |
---|