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 "TLibCommon/TComSlice.h" |
---|
47 | #include <assert.h> |
---|
48 | |
---|
49 | struct GOPEntry |
---|
50 | { |
---|
51 | Int m_POC; |
---|
52 | Int m_QPOffset; |
---|
53 | Double m_QPFactor; |
---|
54 | Int m_temporalId; |
---|
55 | Bool m_refPic; |
---|
56 | Int m_numRefPicsActive; |
---|
57 | Char m_sliceType; |
---|
58 | Int m_numRefPics; |
---|
59 | Int m_referencePics[MAX_NUM_REF_PICS]; |
---|
60 | Int m_usedByCurrPic[MAX_NUM_REF_PICS]; |
---|
61 | #if AUTO_INTER_RPS |
---|
62 | Int m_interRPSPrediction; |
---|
63 | #else |
---|
64 | Bool m_interRPSPrediction; |
---|
65 | #endif |
---|
66 | #if !J0234_INTER_RPS_SIMPL |
---|
67 | Int m_deltaRIdxMinus1; |
---|
68 | #endif |
---|
69 | Int m_deltaRPS; |
---|
70 | Int m_numRefIdc; |
---|
71 | Int m_refIdc[MAX_NUM_REF_PICS+1]; |
---|
72 | GOPEntry() |
---|
73 | : m_POC(-1) |
---|
74 | , m_QPOffset(0) |
---|
75 | , m_QPFactor(0) |
---|
76 | , m_temporalId(0) |
---|
77 | , m_refPic(false) |
---|
78 | , m_numRefPicsActive(0) |
---|
79 | , m_sliceType('P') |
---|
80 | , m_numRefPics(0) |
---|
81 | , m_interRPSPrediction(false) |
---|
82 | #if !J0234_INTER_RPS_SIMPL |
---|
83 | , m_deltaRIdxMinus1(0) |
---|
84 | #endif |
---|
85 | , m_deltaRPS(0) |
---|
86 | , m_numRefIdc(0) |
---|
87 | { |
---|
88 | ::memset( m_referencePics, 0, sizeof(m_referencePics) ); |
---|
89 | ::memset( m_usedByCurrPic, 0, sizeof(m_usedByCurrPic) ); |
---|
90 | ::memset( m_refIdc, 0, sizeof(m_refIdc) ); |
---|
91 | } |
---|
92 | }; |
---|
93 | |
---|
94 | std::istringstream &operator>>(std::istringstream &in, GOPEntry &entry); //input |
---|
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 | Int m_croppingMode; |
---|
112 | Int m_cropLeft; |
---|
113 | Int m_cropRight; |
---|
114 | Int m_cropTop; |
---|
115 | Int m_cropBottom; |
---|
116 | Int m_iFrameToBeEncoded; |
---|
117 | Double m_adLambdaModifier[ MAX_TLAYER ]; |
---|
118 | |
---|
119 | //====== Coding Structure ======== |
---|
120 | UInt m_uiIntraPeriod; |
---|
121 | UInt m_uiDecodingRefreshType; ///< the type of decoding refresh employed for the random access. |
---|
122 | Int m_iGOPSize; |
---|
123 | GOPEntry m_GOPList[MAX_GOP]; |
---|
124 | Int m_extraRPSs; |
---|
125 | Int m_maxDecPicBuffering[MAX_TLAYER]; |
---|
126 | Int m_numReorderPics[MAX_TLAYER]; |
---|
127 | |
---|
128 | Int m_iQP; // if (AdaptiveQP == OFF) |
---|
129 | |
---|
130 | Int m_aiPad[2]; |
---|
131 | |
---|
132 | |
---|
133 | Int m_iMaxRefPicNum; ///< this is used to mimic the sliding mechanism used by the decoder |
---|
134 | // TODO: We need to have a common sliding mechanism used by both the encoder and decoder |
---|
135 | |
---|
136 | Int m_maxTempLayer; ///< Max temporal layer |
---|
137 | Bool m_useAMP; |
---|
138 | //======= Transform ============= |
---|
139 | UInt m_uiQuadtreeTULog2MaxSize; |
---|
140 | UInt m_uiQuadtreeTULog2MinSize; |
---|
141 | UInt m_uiQuadtreeTUMaxDepthInter; |
---|
142 | UInt m_uiQuadtreeTUMaxDepthIntra; |
---|
143 | |
---|
144 | #if !REMOVE_NSQT |
---|
145 | Bool m_useNSQT; |
---|
146 | #endif |
---|
147 | |
---|
148 | //====== Loop/Deblock Filter ======== |
---|
149 | Bool m_bLoopFilterDisable; |
---|
150 | Bool m_loopFilterOffsetInPPS; |
---|
151 | Int m_loopFilterBetaOffsetDiv2; |
---|
152 | Int m_loopFilterTcOffsetDiv2; |
---|
153 | Bool m_DeblockingFilterControlPresent; |
---|
154 | Bool m_bUseSAO; |
---|
155 | Int m_maxNumOffsetsPerPic; |
---|
156 | #if SAO_LCU_BOUNDARY |
---|
157 | Bool m_saoLcuBoundary; |
---|
158 | #endif |
---|
159 | Bool m_saoLcuBasedOptimization; |
---|
160 | |
---|
161 | //====== Lossless ======== |
---|
162 | Bool m_useLossless; |
---|
163 | //====== Motion search ======== |
---|
164 | Int m_iFastSearch; // 0:Full search 1:Diamond 2:PMVFAST |
---|
165 | Int m_iSearchRange; // 0:Full frame |
---|
166 | Int m_bipredSearchRange; |
---|
167 | |
---|
168 | //====== Quality control ======== |
---|
169 | Int m_iMaxDeltaQP; // Max. absolute delta QP (1:default) |
---|
170 | Int m_iMaxCuDQPDepth; // Max. depth for a minimum CuDQP (0:default) |
---|
171 | |
---|
172 | Int m_chromaCbQpOffset; // Chroma Cb QP Offset (0:default) |
---|
173 | Int m_chromaCrQpOffset; // Chroma Cr Qp Offset (0:default) |
---|
174 | |
---|
175 | #if ADAPTIVE_QP_SELECTION |
---|
176 | Bool m_bUseAdaptQpSelect; |
---|
177 | #endif |
---|
178 | |
---|
179 | Bool m_bUseAdaptiveQP; |
---|
180 | Int m_iQPAdaptationRange; |
---|
181 | |
---|
182 | //====== Tool list ======== |
---|
183 | Bool m_bUseSBACRD; |
---|
184 | #if !REMOVE_ALF |
---|
185 | Bool m_bUseALF; |
---|
186 | Bool m_alfLowLatencyEncoding; |
---|
187 | #endif |
---|
188 | Bool m_bUseASR; |
---|
189 | Bool m_bUseHADME; |
---|
190 | Bool m_bUseLComb; |
---|
191 | Bool m_bUseRDOQ; |
---|
192 | Bool m_bUseFastEnc; |
---|
193 | Bool m_bUseEarlyCU; |
---|
194 | Bool m_useFastDecisionForMerge; |
---|
195 | Bool m_bUseCbfFastMode; |
---|
196 | Bool m_useEarlySkipDetection; |
---|
197 | #if !REMOVE_LMCHROMA |
---|
198 | Bool m_bUseLMChroma; |
---|
199 | #endif |
---|
200 | Bool m_useTransformSkip; |
---|
201 | Bool m_useTransformSkipFast; |
---|
202 | Int* m_aidQP; |
---|
203 | UInt m_uiDeltaQpRD; |
---|
204 | |
---|
205 | Bool m_bUseConstrainedIntraPred; |
---|
206 | Bool m_usePCM; |
---|
207 | UInt m_pcmLog2MaxSize; |
---|
208 | UInt m_uiPCMLog2MinSize; |
---|
209 | //====== Slice ======== |
---|
210 | Int m_iSliceMode; |
---|
211 | Int m_iSliceArgument; |
---|
212 | //====== Dependent Slice ======== |
---|
213 | Int m_iDependentSliceMode; |
---|
214 | Int m_iDependentSliceArgument; |
---|
215 | #if DEPENDENT_SLICES |
---|
216 | #if TILES_WPP_ENTROPYSLICES_FLAGS |
---|
217 | Bool m_entropySliceEnabledFlag; |
---|
218 | #else |
---|
219 | Bool m_bCabacIndependentFlag; |
---|
220 | #endif |
---|
221 | #endif |
---|
222 | #if !REMOVE_FGS |
---|
223 | Int m_iSliceGranularity; |
---|
224 | #endif |
---|
225 | Bool m_bLFCrossSliceBoundaryFlag; |
---|
226 | |
---|
227 | Bool m_bPCMInputBitDepthFlag; |
---|
228 | UInt m_uiPCMBitDepthLuma; |
---|
229 | UInt m_uiPCMBitDepthChroma; |
---|
230 | Bool m_bPCMFilterDisableFlag; |
---|
231 | Bool m_loopFilterAcrossTilesEnabledFlag; |
---|
232 | Int m_iUniformSpacingIdr; |
---|
233 | Int m_iNumColumnsMinus1; |
---|
234 | UInt* m_puiColumnWidth; |
---|
235 | Int m_iNumRowsMinus1; |
---|
236 | UInt* m_puiRowHeight; |
---|
237 | |
---|
238 | Int m_iWaveFrontSynchro; |
---|
239 | Int m_iWaveFrontSubstreams; |
---|
240 | |
---|
241 | Int m_decodedPictureHashSEIEnabled; ///< Checksum(3)/CRC(2)/MD5(1)/disable(0) acting on decoded picture hash SEI message |
---|
242 | #if BUFFERING_PERIOD_AND_TIMING_SEI |
---|
243 | Int m_bufferingPeriodSEIEnabled; |
---|
244 | Int m_pictureTimingSEIEnabled; |
---|
245 | #endif |
---|
246 | #if RECOVERY_POINT_SEI |
---|
247 | Int m_recoveryPointSEIEnabled; |
---|
248 | #endif |
---|
249 | //====== Weighted Prediction ======== |
---|
250 | Bool m_bUseWeightPred; //< Use of Weighting Prediction (P_SLICE) |
---|
251 | Bool m_useWeightedBiPred; //< Use of Bi-directional Weighting Prediction (B_SLICE) |
---|
252 | UInt m_log2ParallelMergeLevelMinus2; ///< Parallel merge estimation region |
---|
253 | UInt m_maxNumMergeCand; ///< Maximum number of merge candidates |
---|
254 | Int m_useScalingListId; ///< Using quantization matrix i.e. 0=off, 1=default, 2=file. |
---|
255 | char* m_scalingListFile; ///< quantization matrix file name |
---|
256 | Int m_TMVPModeId; |
---|
257 | Int m_signHideFlag; |
---|
258 | Bool m_enableRateCtrl; ///< Flag for using rate control algorithm |
---|
259 | Int m_targetBitrate; ///< target bitrate |
---|
260 | Int m_numLCUInUnit; ///< Total number of LCUs in a frame should be divided by the NumLCUInUnit |
---|
261 | Bool m_TransquantBypassEnableFlag; ///< transquant_bypass_enable_flag setting in PPS. |
---|
262 | Bool m_CUTransquantBypassFlagValue; ///< if transquant_bypass_enable_flag, the fixed value to use for the per-CU cu_transquant_bypass_flag. |
---|
263 | TComVPS m_cVPS; |
---|
264 | #if RECALCULATE_QP_ACCORDING_LAMBDA |
---|
265 | Bool m_recalculateQPAccordingToLambda; ///< recalculate QP value according to the lambda value |
---|
266 | #endif |
---|
267 | #if ACTIVE_PARAMETER_SETS_SEI_MESSAGE |
---|
268 | Int m_activeParameterSetsSEIEnabled; ///< enable active parameter set SEI message |
---|
269 | #endif |
---|
270 | #if SUPPORT_FOR_VUI |
---|
271 | Bool m_vuiParametersPresentFlag; ///< enable generation of VUI parameters |
---|
272 | Bool m_aspectRatioInfoPresentFlag; ///< Signals whether aspect_ratio_idc is present |
---|
273 | Int m_aspectRatioIdc; ///< aspect_ratio_idc |
---|
274 | Int m_sarWidth; ///< horizontal size of the sample aspect ratio |
---|
275 | Int m_sarHeight; ///< vertical size of the sample aspect ratio |
---|
276 | Bool m_overscanInfoPresentFlag; ///< Signals whether overscan_appropriate_flag is present |
---|
277 | Bool m_overscanAppropriateFlag; ///< Indicates whether cropped decoded pictures are suitable for display using overscan |
---|
278 | Bool m_videoSignalTypePresentFlag; ///< Signals whether video_format, video_full_range_flag, and colour_description_present_flag are present |
---|
279 | Int m_videoFormat; ///< Indicates representation of pictures |
---|
280 | Bool m_videoFullRangeFlag; ///< Indicates the black level and range of luma and chroma signals |
---|
281 | Bool m_colourDescriptionPresentFlag; ///< Signals whether colour_primaries, transfer_characteristics and matrix_coefficients are present |
---|
282 | Int m_colourPrimaries; ///< Indicates chromaticity coordinates of the source primaries |
---|
283 | Int m_transferCharacteristics; ///< Indicates the opto-electronic transfer characteristics of the source |
---|
284 | Int m_matrixCoefficients; ///< Describes the matrix coefficients used in deriving luma and chroma from RGB primaries |
---|
285 | Bool m_chromaLocInfoPresentFlag; ///< Signals whether chroma_sample_loc_type_top_field and chroma_sample_loc_type_bottom_field are present |
---|
286 | Int m_chromaSampleLocTypeTopField; ///< Specifies the location of chroma samples for top field |
---|
287 | Int m_chromaSampleLocTypeBottomField; ///< Specifies the location of chroma samples for bottom field |
---|
288 | Bool m_neutralChromaIndicationFlag; ///< Indicates that the value of all decoded chroma samples is equal to 1<<(BitDepthCr-1) |
---|
289 | Bool m_bitstreamRestrictionFlag; ///< Signals whether bitstream restriction parameters are present |
---|
290 | Bool m_tilesFixedStructureFlag; ///< Indicates that each active picture parameter set has the same values of the syntax elements related to tiles |
---|
291 | Bool m_motionVectorsOverPicBoundariesFlag; ///< Indicates that no samples outside the picture boundaries are used for inter prediction |
---|
292 | Int m_maxBytesPerPicDenom; ///< Indicates a number of bytes not exceeded by the sum of the sizes of the VCL NAL units associated with any coded picture |
---|
293 | Int m_maxBitsPerMinCuDenom; ///< Indicates an upper bound for the number of bits of coding_unit() data |
---|
294 | Int m_log2MaxMvLengthHorizontal; ///< Indicate the maximum absolute value of a decoded horizontal MV component in quarter-pel luma units |
---|
295 | Int m_log2MaxMvLengthVertical; ///< Indicate the maximum absolute value of a decoded vertical MV component in quarter-pel luma units |
---|
296 | #endif |
---|
297 | |
---|
298 | #if SVC_EXTENSION |
---|
299 | UInt m_layerId; |
---|
300 | UInt m_numLayer; |
---|
301 | #endif |
---|
302 | #if REF_IDX_FRAMEWORK |
---|
303 | Int m_elRapSliceBEnabled; |
---|
304 | #endif |
---|
305 | |
---|
306 | public: |
---|
307 | TEncCfg() |
---|
308 | : m_puiColumnWidth() |
---|
309 | , m_puiRowHeight() |
---|
310 | {} |
---|
311 | |
---|
312 | virtual ~TEncCfg() |
---|
313 | { |
---|
314 | delete[] m_puiColumnWidth; |
---|
315 | delete[] m_puiRowHeight; |
---|
316 | } |
---|
317 | |
---|
318 | Void setFrameRate ( Int i ) { m_iFrameRate = i; } |
---|
319 | Void setFrameSkip ( unsigned int i ) { m_FrameSkip = i; } |
---|
320 | Void setSourceWidth ( Int i ) { m_iSourceWidth = i; } |
---|
321 | Void setSourceHeight ( Int i ) { m_iSourceHeight = i; } |
---|
322 | Void setCroppingMode ( Int i ) { m_croppingMode = i; } |
---|
323 | Void setCropLeft ( Int i ) { m_cropLeft = i; } |
---|
324 | Void setCropRight ( Int i ) { m_cropRight = i; } |
---|
325 | Void setCropTop ( Int i ) { m_cropTop = i; } |
---|
326 | Void setCropBottom ( Int i ) { m_cropBottom = i; } |
---|
327 | Void setFrameToBeEncoded ( Int i ) { m_iFrameToBeEncoded = i; } |
---|
328 | |
---|
329 | //====== Coding Structure ======== |
---|
330 | Void setIntraPeriod ( Int i ) { m_uiIntraPeriod = (UInt)i; } |
---|
331 | Void setDecodingRefreshType ( Int i ) { m_uiDecodingRefreshType = (UInt)i; } |
---|
332 | Void setGOPSize ( Int i ) { m_iGOPSize = i; } |
---|
333 | Void setGopList ( GOPEntry* GOPList ) { for ( Int i = 0; i < MAX_GOP; i++ ) m_GOPList[i] = GOPList[i]; } |
---|
334 | Void setExtraRPSs ( Int i ) { m_extraRPSs = i; } |
---|
335 | GOPEntry getGOPEntry ( Int i ) { return m_GOPList[i]; } |
---|
336 | Void setMaxDecPicBuffering ( UInt u, UInt tlayer ) { m_maxDecPicBuffering[tlayer] = u; } |
---|
337 | Void setNumReorderPics ( Int i, UInt tlayer ) { m_numReorderPics[tlayer] = i; } |
---|
338 | |
---|
339 | Void setQP ( Int i ) { m_iQP = i; } |
---|
340 | |
---|
341 | Void setPad ( Int* iPad ) { for ( Int i = 0; i < 2; i++ ) m_aiPad[i] = iPad[i]; } |
---|
342 | |
---|
343 | Int getMaxRefPicNum () { return m_iMaxRefPicNum; } |
---|
344 | Void setMaxRefPicNum ( Int iMaxRefPicNum ) { m_iMaxRefPicNum = iMaxRefPicNum; } |
---|
345 | |
---|
346 | Bool getMaxTempLayer () { return m_maxTempLayer; } |
---|
347 | Void setMaxTempLayer ( Int maxTempLayer ) { m_maxTempLayer = maxTempLayer; } |
---|
348 | //======== Transform ============= |
---|
349 | Void setQuadtreeTULog2MaxSize ( UInt u ) { m_uiQuadtreeTULog2MaxSize = u; } |
---|
350 | Void setQuadtreeTULog2MinSize ( UInt u ) { m_uiQuadtreeTULog2MinSize = u; } |
---|
351 | Void setQuadtreeTUMaxDepthInter ( UInt u ) { m_uiQuadtreeTUMaxDepthInter = u; } |
---|
352 | Void setQuadtreeTUMaxDepthIntra ( UInt u ) { m_uiQuadtreeTUMaxDepthIntra = u; } |
---|
353 | |
---|
354 | #if !REMOVE_NSQT |
---|
355 | Void setUseNSQT( Bool b ) { m_useNSQT = b; } |
---|
356 | #endif |
---|
357 | Void setUseAMP( Bool b ) { m_useAMP = b; } |
---|
358 | |
---|
359 | //====== Loop/Deblock Filter ======== |
---|
360 | Void setLoopFilterDisable ( Bool b ) { m_bLoopFilterDisable = b; } |
---|
361 | Void setLoopFilterOffsetInPPS ( Bool b ) { m_loopFilterOffsetInPPS = b; } |
---|
362 | Void setLoopFilterBetaOffset ( Int i ) { m_loopFilterBetaOffsetDiv2 = i; } |
---|
363 | Void setLoopFilterTcOffset ( Int i ) { m_loopFilterTcOffsetDiv2 = i; } |
---|
364 | Void setDeblockingFilterControlPresent ( Bool b ) { m_DeblockingFilterControlPresent = b; } |
---|
365 | |
---|
366 | //====== Motion search ======== |
---|
367 | Void setFastSearch ( Int i ) { m_iFastSearch = i; } |
---|
368 | Void setSearchRange ( Int i ) { m_iSearchRange = i; } |
---|
369 | Void setBipredSearchRange ( Int i ) { m_bipredSearchRange = i; } |
---|
370 | |
---|
371 | //====== Quality control ======== |
---|
372 | Void setMaxDeltaQP ( Int i ) { m_iMaxDeltaQP = i; } |
---|
373 | Void setMaxCuDQPDepth ( Int i ) { m_iMaxCuDQPDepth = i; } |
---|
374 | |
---|
375 | Void setChromaCbQpOffset ( Int i ) { m_chromaCbQpOffset = i; } |
---|
376 | Void setChromaCrQpOffset ( Int i ) { m_chromaCrQpOffset = i; } |
---|
377 | |
---|
378 | #if ADAPTIVE_QP_SELECTION |
---|
379 | Void setUseAdaptQpSelect ( Bool i ) { m_bUseAdaptQpSelect = i; } |
---|
380 | Bool getUseAdaptQpSelect () { return m_bUseAdaptQpSelect; } |
---|
381 | #endif |
---|
382 | |
---|
383 | Void setUseAdaptiveQP ( Bool b ) { m_bUseAdaptiveQP = b; } |
---|
384 | Void setQPAdaptationRange ( Int i ) { m_iQPAdaptationRange = i; } |
---|
385 | |
---|
386 | //====== Lossless ======== |
---|
387 | Void setUseLossless (Bool b ) { m_useLossless = b; } |
---|
388 | //====== Sequence ======== |
---|
389 | Int getFrameRate () { return m_iFrameRate; } |
---|
390 | unsigned int getFrameSkip () { return m_FrameSkip; } |
---|
391 | Int getSourceWidth () { return m_iSourceWidth; } |
---|
392 | Int getSourceHeight () { return m_iSourceHeight; } |
---|
393 | Int getCroppingMode () { return m_croppingMode; } |
---|
394 | Int getCropLeft () { return m_cropLeft; } |
---|
395 | Int getCropRight () { return m_cropRight; } |
---|
396 | Int getCropTop () { return m_cropTop; } |
---|
397 | Int getCropBottom () { return m_cropBottom; } |
---|
398 | Int getFrameToBeEncoded () { return m_iFrameToBeEncoded; } |
---|
399 | void setLambdaModifier ( UInt uiIndex, Double dValue ) { m_adLambdaModifier[ uiIndex ] = dValue; } |
---|
400 | Double getLambdaModifier ( UInt uiIndex ) const { return m_adLambdaModifier[ uiIndex ]; } |
---|
401 | |
---|
402 | //==== Coding Structure ======== |
---|
403 | UInt getIntraPeriod () { return m_uiIntraPeriod; } |
---|
404 | UInt getDecodingRefreshType () { return m_uiDecodingRefreshType; } |
---|
405 | Int getGOPSize () { return m_iGOPSize; } |
---|
406 | Int getMaxDecPicBuffering (UInt tlayer) { return m_maxDecPicBuffering[tlayer]; } |
---|
407 | Int getNumReorderPics (UInt tlayer) { return m_numReorderPics[tlayer]; } |
---|
408 | Int getQP () { return m_iQP; } |
---|
409 | |
---|
410 | Int getPad ( Int i ) { assert (i < 2 ); return m_aiPad[i]; } |
---|
411 | |
---|
412 | //======== Transform ============= |
---|
413 | UInt getQuadtreeTULog2MaxSize () const { return m_uiQuadtreeTULog2MaxSize; } |
---|
414 | UInt getQuadtreeTULog2MinSize () const { return m_uiQuadtreeTULog2MinSize; } |
---|
415 | UInt getQuadtreeTUMaxDepthInter () const { return m_uiQuadtreeTUMaxDepthInter; } |
---|
416 | UInt getQuadtreeTUMaxDepthIntra () const { return m_uiQuadtreeTUMaxDepthIntra; } |
---|
417 | |
---|
418 | //==== Loop/Deblock Filter ======== |
---|
419 | Bool getLoopFilterDisable () { return m_bLoopFilterDisable; } |
---|
420 | Bool getLoopFilterOffsetInPPS () { return m_loopFilterOffsetInPPS; } |
---|
421 | Int getLoopFilterBetaOffset () { return m_loopFilterBetaOffsetDiv2; } |
---|
422 | Int getLoopFilterTcOffset () { return m_loopFilterTcOffsetDiv2; } |
---|
423 | Bool getDeblockingFilterControlPresent() { return m_DeblockingFilterControlPresent; } |
---|
424 | |
---|
425 | //==== Motion search ======== |
---|
426 | Int getFastSearch () { return m_iFastSearch; } |
---|
427 | Int getSearchRange () { return m_iSearchRange; } |
---|
428 | |
---|
429 | //==== Quality control ======== |
---|
430 | Int getMaxDeltaQP () { return m_iMaxDeltaQP; } |
---|
431 | Int getMaxCuDQPDepth () { return m_iMaxCuDQPDepth; } |
---|
432 | Bool getUseAdaptiveQP () { return m_bUseAdaptiveQP; } |
---|
433 | Int getQPAdaptationRange () { return m_iQPAdaptationRange; } |
---|
434 | //====== Lossless ======== |
---|
435 | Bool getUseLossless () { return m_useLossless; } |
---|
436 | |
---|
437 | //==== Tool list ======== |
---|
438 | Void setUseSBACRD ( Bool b ) { m_bUseSBACRD = b; } |
---|
439 | Void setUseASR ( Bool b ) { m_bUseASR = b; } |
---|
440 | Void setUseHADME ( Bool b ) { m_bUseHADME = b; } |
---|
441 | #if !REMOVE_ALF |
---|
442 | Void setUseALF ( Bool b ) { m_bUseALF = b; } |
---|
443 | #endif |
---|
444 | Void setUseLComb ( Bool b ) { m_bUseLComb = b; } |
---|
445 | Void setUseRDOQ ( Bool b ) { m_bUseRDOQ = b; } |
---|
446 | Void setUseFastEnc ( Bool b ) { m_bUseFastEnc = b; } |
---|
447 | Void setUseEarlyCU ( Bool b ) { m_bUseEarlyCU = b; } |
---|
448 | Void setUseFastDecisionForMerge ( Bool b ) { m_useFastDecisionForMerge = b; } |
---|
449 | Void setUseCbfFastMode ( Bool b ) { m_bUseCbfFastMode = b; } |
---|
450 | Void setUseEarlySkipDetection ( Bool b ) { m_useEarlySkipDetection = b; } |
---|
451 | Void setUseConstrainedIntraPred ( Bool b ) { m_bUseConstrainedIntraPred = b; } |
---|
452 | Void setPCMInputBitDepthFlag ( Bool b ) { m_bPCMInputBitDepthFlag = b; } |
---|
453 | Void setPCMFilterDisableFlag ( Bool b ) { m_bPCMFilterDisableFlag = b; } |
---|
454 | Void setUsePCM ( Bool b ) { m_usePCM = b; } |
---|
455 | Void setPCMLog2MaxSize ( UInt u ) { m_pcmLog2MaxSize = u; } |
---|
456 | Void setPCMLog2MinSize ( UInt u ) { m_uiPCMLog2MinSize = u; } |
---|
457 | Void setdQPs ( Int* p ) { m_aidQP = p; } |
---|
458 | Void setDeltaQpRD ( UInt u ) {m_uiDeltaQpRD = u; } |
---|
459 | Bool getUseSBACRD () { return m_bUseSBACRD; } |
---|
460 | Bool getUseASR () { return m_bUseASR; } |
---|
461 | Bool getUseHADME () { return m_bUseHADME; } |
---|
462 | #if !REMOVE_ALF |
---|
463 | Bool getUseALF () { return m_bUseALF; } |
---|
464 | Void setALFLowLatencyEncoding (Bool b) {m_alfLowLatencyEncoding = b; } |
---|
465 | Bool getALFLowLatencyEncoding () { return m_alfLowLatencyEncoding;} |
---|
466 | #endif |
---|
467 | Bool getUseLComb () { return m_bUseLComb; } |
---|
468 | Bool getUseRDOQ () { return m_bUseRDOQ; } |
---|
469 | Bool getUseFastEnc () { return m_bUseFastEnc; } |
---|
470 | Bool getUseEarlyCU () { return m_bUseEarlyCU; } |
---|
471 | Bool getUseFastDecisionForMerge () { return m_useFastDecisionForMerge; } |
---|
472 | Bool getUseCbfFastMode () { return m_bUseCbfFastMode; } |
---|
473 | Bool getUseEarlySkipDetection () { return m_useEarlySkipDetection; } |
---|
474 | Bool getUseConstrainedIntraPred () { return m_bUseConstrainedIntraPred; } |
---|
475 | #if !REMOVE_NSQT |
---|
476 | #if NS_HAD |
---|
477 | Bool getUseNSQT () { return m_useNSQT; } |
---|
478 | #endif |
---|
479 | #endif |
---|
480 | Bool getPCMInputBitDepthFlag () { return m_bPCMInputBitDepthFlag; } |
---|
481 | Bool getPCMFilterDisableFlag () { return m_bPCMFilterDisableFlag; } |
---|
482 | Bool getUsePCM () { return m_usePCM; } |
---|
483 | UInt getPCMLog2MaxSize () { return m_pcmLog2MaxSize; } |
---|
484 | UInt getPCMLog2MinSize () { return m_uiPCMLog2MinSize; } |
---|
485 | |
---|
486 | #if !REMOVE_LMCHROMA |
---|
487 | Bool getUseLMChroma () { return m_bUseLMChroma; } |
---|
488 | Void setUseLMChroma ( Bool b ) { m_bUseLMChroma = b; } |
---|
489 | #endif |
---|
490 | Bool getUseTransformSkip () { return m_useTransformSkip; } |
---|
491 | Void setUseTransformSkip ( Bool b ) { m_useTransformSkip = b; } |
---|
492 | Bool getUseTransformSkipFast () { return m_useTransformSkipFast; } |
---|
493 | Void setUseTransformSkipFast ( Bool b ) { m_useTransformSkipFast = b; } |
---|
494 | Int* getdQPs () { return m_aidQP; } |
---|
495 | UInt getDeltaQpRD () { return m_uiDeltaQpRD; } |
---|
496 | |
---|
497 | //====== Slice ======== |
---|
498 | Void setSliceMode ( Int i ) { m_iSliceMode = i; } |
---|
499 | Void setSliceArgument ( Int i ) { m_iSliceArgument = i; } |
---|
500 | Int getSliceMode () { return m_iSliceMode; } |
---|
501 | Int getSliceArgument () { return m_iSliceArgument; } |
---|
502 | //====== Dependent Slice ======== |
---|
503 | Void setDependentSliceMode ( Int i ) { m_iDependentSliceMode = i; } |
---|
504 | Void setDependentSliceArgument ( Int i ) { m_iDependentSliceArgument = i; } |
---|
505 | Int getDependentSliceMode () { return m_iDependentSliceMode; } |
---|
506 | Int getDependentSliceArgument () { return m_iDependentSliceArgument;} |
---|
507 | #if DEPENDENT_SLICES |
---|
508 | #if TILES_WPP_ENTROPYSLICES_FLAGS |
---|
509 | Void setEntropySliceEnabledFlag ( Bool b ) { m_entropySliceEnabledFlag = b; } |
---|
510 | Bool getEntropySliceEnabledFlag () { return m_entropySliceEnabledFlag; } |
---|
511 | #else |
---|
512 | Void setCabacIndependentFlag ( Bool i ) { m_bCabacIndependentFlag = i; } |
---|
513 | Bool getCabacIndependentFlag () { return m_bCabacIndependentFlag; } |
---|
514 | #endif |
---|
515 | #endif |
---|
516 | #if !REMOVE_FGS |
---|
517 | Void setSliceGranularity ( Int i ) { m_iSliceGranularity = i; } |
---|
518 | Int getSliceGranularity () { return m_iSliceGranularity; } |
---|
519 | #endif |
---|
520 | Void setLFCrossSliceBoundaryFlag ( Bool bValue ) { m_bLFCrossSliceBoundaryFlag = bValue; } |
---|
521 | Bool getLFCrossSliceBoundaryFlag () { return m_bLFCrossSliceBoundaryFlag; } |
---|
522 | |
---|
523 | Void setUseSAO (Bool bVal) {m_bUseSAO = bVal;} |
---|
524 | Bool getUseSAO () {return m_bUseSAO;} |
---|
525 | Void setMaxNumOffsetsPerPic (Int iVal) { m_maxNumOffsetsPerPic = iVal; } |
---|
526 | Int getMaxNumOffsetsPerPic () { return m_maxNumOffsetsPerPic; } |
---|
527 | #if SAO_LCU_BOUNDARY |
---|
528 | Void setSaoLcuBoundary (Bool val) { m_saoLcuBoundary = val; } |
---|
529 | Bool getSaoLcuBoundary () { return m_saoLcuBoundary; } |
---|
530 | #endif |
---|
531 | Void setSaoLcuBasedOptimization (Bool val) { m_saoLcuBasedOptimization = val; } |
---|
532 | Bool getSaoLcuBasedOptimization () { return m_saoLcuBasedOptimization; } |
---|
533 | Void setLFCrossTileBoundaryFlag ( Bool val ) { m_loopFilterAcrossTilesEnabledFlag = val; } |
---|
534 | Bool getLFCrossTileBoundaryFlag () { return m_loopFilterAcrossTilesEnabledFlag; } |
---|
535 | Void setUniformSpacingIdr ( Int i ) { m_iUniformSpacingIdr = i; } |
---|
536 | Int getUniformSpacingIdr () { return m_iUniformSpacingIdr; } |
---|
537 | Void setNumColumnsMinus1 ( Int i ) { m_iNumColumnsMinus1 = i; } |
---|
538 | Int getNumColumnsMinus1 () { return m_iNumColumnsMinus1; } |
---|
539 | Void setColumnWidth ( char* str ) |
---|
540 | { |
---|
541 | char *columnWidth; |
---|
542 | int i=0; |
---|
543 | Int m_iWidthInCU = ( m_iSourceWidth%g_uiMaxCUWidth ) ? m_iSourceWidth/g_uiMaxCUWidth + 1 : m_iSourceWidth/g_uiMaxCUWidth; |
---|
544 | |
---|
545 | if( m_iUniformSpacingIdr == 0 && m_iNumColumnsMinus1 > 0 ) |
---|
546 | { |
---|
547 | m_puiColumnWidth = new UInt[m_iNumColumnsMinus1]; |
---|
548 | |
---|
549 | columnWidth = strtok(str, " ,-"); |
---|
550 | while(columnWidth!=NULL) |
---|
551 | { |
---|
552 | if( i>=m_iNumColumnsMinus1 ) |
---|
553 | { |
---|
554 | printf( "The number of columns whose width are defined is larger than the allowed number of columns.\n" ); |
---|
555 | exit( EXIT_FAILURE ); |
---|
556 | } |
---|
557 | *( m_puiColumnWidth + i ) = atoi( columnWidth ); |
---|
558 | printf("col: m_iWidthInCU= %4d i=%4d width= %4d\n",m_iWidthInCU,i,m_puiColumnWidth[i]); //AFU |
---|
559 | columnWidth = strtok(NULL, " ,-"); |
---|
560 | i++; |
---|
561 | } |
---|
562 | if( i<m_iNumColumnsMinus1 ) |
---|
563 | { |
---|
564 | printf( "The width of some columns is not defined.\n" ); |
---|
565 | exit( EXIT_FAILURE ); |
---|
566 | } |
---|
567 | } |
---|
568 | } |
---|
569 | UInt getColumnWidth ( UInt columnidx ) { return *( m_puiColumnWidth + columnidx ); } |
---|
570 | Void setNumRowsMinus1 ( Int i ) { m_iNumRowsMinus1 = i; } |
---|
571 | Int getNumRowsMinus1 () { return m_iNumRowsMinus1; } |
---|
572 | Void setRowHeight (char* str) |
---|
573 | { |
---|
574 | char *rowHeight; |
---|
575 | int i=0; |
---|
576 | Int m_iHeightInCU = ( m_iSourceHeight%g_uiMaxCUHeight ) ? m_iSourceHeight/g_uiMaxCUHeight + 1 : m_iSourceHeight/g_uiMaxCUHeight; |
---|
577 | |
---|
578 | if( m_iUniformSpacingIdr == 0 && m_iNumRowsMinus1 > 0 ) |
---|
579 | { |
---|
580 | m_puiRowHeight = new UInt[m_iNumRowsMinus1]; |
---|
581 | |
---|
582 | rowHeight = strtok(str, " ,-"); |
---|
583 | while(rowHeight!=NULL) |
---|
584 | { |
---|
585 | if( i>=m_iNumRowsMinus1 ) |
---|
586 | { |
---|
587 | printf( "The number of rows whose height are defined is larger than the allowed number of rows.\n" ); |
---|
588 | exit( EXIT_FAILURE ); |
---|
589 | } |
---|
590 | *( m_puiRowHeight + i ) = atoi( rowHeight ); |
---|
591 | printf("row: m_iHeightInCU=%4d i=%4d height=%4d\n",m_iHeightInCU,i,m_puiRowHeight[i]); //AFU |
---|
592 | rowHeight = strtok(NULL, " ,-"); |
---|
593 | i++; |
---|
594 | } |
---|
595 | if( i<m_iNumRowsMinus1 ) |
---|
596 | { |
---|
597 | printf( "The height of some rows is not defined.\n" ); |
---|
598 | exit( EXIT_FAILURE ); |
---|
599 | } |
---|
600 | } |
---|
601 | } |
---|
602 | UInt getRowHeight ( UInt rowIdx ) { return *( m_puiRowHeight + rowIdx ); } |
---|
603 | Void xCheckGSParameters(); |
---|
604 | Void setWaveFrontSynchro(Int iWaveFrontSynchro) { m_iWaveFrontSynchro = iWaveFrontSynchro; } |
---|
605 | Int getWaveFrontsynchro() { return m_iWaveFrontSynchro; } |
---|
606 | Void setWaveFrontSubstreams(Int iWaveFrontSubstreams) { m_iWaveFrontSubstreams = iWaveFrontSubstreams; } |
---|
607 | Int getWaveFrontSubstreams() { return m_iWaveFrontSubstreams; } |
---|
608 | Void setDecodedPictureHashSEIEnabled(Int b) { m_decodedPictureHashSEIEnabled = b; } |
---|
609 | Int getDecodedPictureHashSEIEnabled() { return m_decodedPictureHashSEIEnabled; } |
---|
610 | #if BUFFERING_PERIOD_AND_TIMING_SEI |
---|
611 | Void setBufferingPeriodSEIEnabled(Int b) { m_bufferingPeriodSEIEnabled = b; } |
---|
612 | Int getBufferingPeriodSEIEnabled() { return m_bufferingPeriodSEIEnabled; } |
---|
613 | Void setPictureTimingSEIEnabled(Int b) { m_pictureTimingSEIEnabled = b; } |
---|
614 | Int getPictureTimingSEIEnabled() { return m_pictureTimingSEIEnabled; } |
---|
615 | #endif |
---|
616 | #if RECOVERY_POINT_SEI |
---|
617 | Void setRecoveryPointSEIEnabled(Int b) { m_recoveryPointSEIEnabled = b; } |
---|
618 | Int getRecoveryPointSEIEnabled() { return m_recoveryPointSEIEnabled; } |
---|
619 | #endif |
---|
620 | Void setUseWP ( Bool b ) { m_bUseWeightPred = b; } |
---|
621 | Void setWPBiPred ( Bool b ) { m_useWeightedBiPred = b; } |
---|
622 | Bool getUseWP () { return m_bUseWeightPred; } |
---|
623 | Bool getWPBiPred () { return m_useWeightedBiPred; } |
---|
624 | Void setLog2ParallelMergeLevelMinus2 ( UInt u ) { m_log2ParallelMergeLevelMinus2 = u; } |
---|
625 | UInt getLog2ParallelMergeLevelMinus2 () { return m_log2ParallelMergeLevelMinus2; } |
---|
626 | Void setMaxNumMergeCand ( UInt u ) { m_maxNumMergeCand = u; } |
---|
627 | UInt getMaxNumMergeCand () { return m_maxNumMergeCand; } |
---|
628 | Void setUseScalingListId ( Int u ) { m_useScalingListId = u; } |
---|
629 | Int getUseScalingListId () { return m_useScalingListId; } |
---|
630 | Void setScalingListFile ( char* pch ){ m_scalingListFile = pch; } |
---|
631 | char* getScalingListFile () { return m_scalingListFile; } |
---|
632 | Void setTMVPModeId ( Int u ) { m_TMVPModeId = u; } |
---|
633 | Int getTMVPModeId () { return m_TMVPModeId; } |
---|
634 | Void setSignHideFlag( Int signHideFlag ) { m_signHideFlag = signHideFlag; } |
---|
635 | Int getSignHideFlag() { return m_signHideFlag; } |
---|
636 | Bool getUseRateCtrl () { return m_enableRateCtrl; } |
---|
637 | Void setUseRateCtrl (Bool flag) { m_enableRateCtrl = flag; } |
---|
638 | Int getTargetBitrate () { return m_targetBitrate; } |
---|
639 | Void setTargetBitrate (Int target) { m_targetBitrate = target; } |
---|
640 | Int getNumLCUInUnit () { return m_numLCUInUnit; } |
---|
641 | Void setNumLCUInUnit (Int numLCUs) { m_numLCUInUnit = numLCUs; } |
---|
642 | Bool getTransquantBypassEnableFlag() { return m_TransquantBypassEnableFlag; } |
---|
643 | Void setTransquantBypassEnableFlag(Bool flag) { m_TransquantBypassEnableFlag = flag; } |
---|
644 | Bool getCUTransquantBypassFlagValue() { return m_CUTransquantBypassFlagValue; } |
---|
645 | Void setCUTransquantBypassFlagValue(Bool flag) { m_CUTransquantBypassFlagValue = flag; } |
---|
646 | Void setVPS(TComVPS *p) { m_cVPS = *p; } |
---|
647 | TComVPS *getVPS() { return &m_cVPS; } |
---|
648 | #if RECALCULATE_QP_ACCORDING_LAMBDA |
---|
649 | Void setUseRecalculateQPAccordingToLambda ( Bool b ) { m_recalculateQPAccordingToLambda = b; } |
---|
650 | Bool getUseRecalculateQPAccordingToLambda () { return m_recalculateQPAccordingToLambda; } |
---|
651 | #endif |
---|
652 | #if ACTIVE_PARAMETER_SETS_SEI_MESSAGE |
---|
653 | Void setActiveParameterSetsSEIEnabled ( Int b ) { m_activeParameterSetsSEIEnabled = b; } |
---|
654 | Int getActiveParameterSetsSEIEnabled () { return m_activeParameterSetsSEIEnabled; } |
---|
655 | #endif |
---|
656 | #if SUPPORT_FOR_VUI |
---|
657 | Bool getVuiParametersPresentFlag() { return m_vuiParametersPresentFlag; } |
---|
658 | Void setVuiParametersPresentFlag(Bool i) { m_vuiParametersPresentFlag = i; } |
---|
659 | Bool getAspectRatioInfoPresentFlag() { return m_aspectRatioInfoPresentFlag; } |
---|
660 | Void setAspectRatioInfoPresentFlag(Bool i) { m_aspectRatioInfoPresentFlag = i; } |
---|
661 | Int getAspectRatioIdc() { return m_aspectRatioIdc; } |
---|
662 | Void setAspectRatioIdc(Int i) { m_aspectRatioIdc = i; } |
---|
663 | Int getSarWidth() { return m_sarWidth; } |
---|
664 | Void setSarWidth(Int i) { m_sarWidth = i; } |
---|
665 | Int getSarHeight() { return m_sarHeight; } |
---|
666 | Void setSarHeight(Int i) { m_sarHeight = i; } |
---|
667 | Bool getOverscanInfoPresentFlag() { return m_overscanInfoPresentFlag; } |
---|
668 | Void setOverscanInfoPresentFlag(Bool i) { m_overscanInfoPresentFlag = i; } |
---|
669 | Bool getOverscanAppropriateFlag() { return m_overscanAppropriateFlag; } |
---|
670 | Void setOverscanAppropriateFlag(Bool i) { m_overscanAppropriateFlag = i; } |
---|
671 | Bool getVideoSignalTypePresentFlag() { return m_videoSignalTypePresentFlag; } |
---|
672 | Void setVideoSignalTypePresentFlag(Bool i) { m_videoSignalTypePresentFlag = i; } |
---|
673 | Int getVideoFormat() { return m_videoFormat; } |
---|
674 | Void setVideoFormat(Int i) { m_videoFormat = i; } |
---|
675 | Bool getVideoFullRangeFlag() { return m_videoFullRangeFlag; } |
---|
676 | Void setVideoFullRangeFlag(Bool i) { m_videoFullRangeFlag = i; } |
---|
677 | Bool getColourDescriptionPresentFlag() { return m_colourDescriptionPresentFlag; } |
---|
678 | Void setColourDescriptionPresentFlag(Bool i) { m_colourDescriptionPresentFlag = i; } |
---|
679 | Int getColourPrimaries() { return m_colourPrimaries; } |
---|
680 | Void setColourPrimaries(Int i) { m_colourPrimaries = i; } |
---|
681 | Int getTransferCharacteristics() { return m_transferCharacteristics; } |
---|
682 | Void setTransferCharacteristics(Int i) { m_transferCharacteristics = i; } |
---|
683 | Int getMatrixCoefficients() { return m_matrixCoefficients; } |
---|
684 | Void setMatrixCoefficients(Int i) { m_matrixCoefficients = i; } |
---|
685 | Bool getChromaLocInfoPresentFlag() { return m_chromaLocInfoPresentFlag; } |
---|
686 | Void setChromaLocInfoPresentFlag(Bool i) { m_chromaLocInfoPresentFlag = i; } |
---|
687 | Int getChromaSampleLocTypeTopField() { return m_chromaSampleLocTypeTopField; } |
---|
688 | Void setChromaSampleLocTypeTopField(Int i) { m_chromaSampleLocTypeTopField = i; } |
---|
689 | Int getChromaSampleLocTypeBottomField() { return m_chromaSampleLocTypeBottomField; } |
---|
690 | Void setChromaSampleLocTypeBottomField(Int i) { m_chromaSampleLocTypeBottomField = i; } |
---|
691 | Bool getNeutralChromaIndicationFlag() { return m_neutralChromaIndicationFlag; } |
---|
692 | Void setNeutralChromaIndicationFlag(Bool i) { m_neutralChromaIndicationFlag = i; } |
---|
693 | Bool getBitstreamRestrictionFlag() { return m_bitstreamRestrictionFlag; } |
---|
694 | Void setBitstreamRestrictionFlag(Bool i) { m_bitstreamRestrictionFlag = i; } |
---|
695 | Bool getTilesFixedStructureFlag() { return m_tilesFixedStructureFlag; } |
---|
696 | Void setTilesFixedStructureFlag(Bool i) { m_tilesFixedStructureFlag = i; } |
---|
697 | Bool getMotionVectorsOverPicBoundariesFlag() { return m_motionVectorsOverPicBoundariesFlag; } |
---|
698 | Void setMotionVectorsOverPicBoundariesFlag(Bool i) { m_motionVectorsOverPicBoundariesFlag = i; } |
---|
699 | Int getMaxBytesPerPicDenom() { return m_maxBytesPerPicDenom; } |
---|
700 | Void setMaxBytesPerPicDenom(Int i) { m_maxBytesPerPicDenom = i; } |
---|
701 | Int getMaxBitsPerMinCuDenom() { return m_maxBitsPerMinCuDenom; } |
---|
702 | Void setMaxBitsPerMinCuDenom(Int i) { m_maxBitsPerMinCuDenom = i; } |
---|
703 | Int getLog2MaxMvLengthHorizontal() { return m_log2MaxMvLengthHorizontal; } |
---|
704 | Void setLog2MaxMvLengthHorizontal(Int i) { m_log2MaxMvLengthHorizontal = i; } |
---|
705 | Int getLog2MaxMvLengthVertical() { return m_log2MaxMvLengthVertical; } |
---|
706 | Void setLog2MaxMvLengthVertical(Int i) { m_log2MaxMvLengthVertical = i; } |
---|
707 | #endif |
---|
708 | |
---|
709 | #if SVC_EXTENSION |
---|
710 | UInt getLayerId () { return m_layerId; } |
---|
711 | Void setLayerId (UInt layer) { m_layerId = layer; } |
---|
712 | UInt getNumLayer () { return m_numLayer; } |
---|
713 | Void setNumLayer (UInt uiNum) { m_numLayer = uiNum; } |
---|
714 | #endif |
---|
715 | #if REF_IDX_FRAMEWORK |
---|
716 | Void setElRapSliceTypeB(Int bEnabled) {m_elRapSliceBEnabled = bEnabled;} |
---|
717 | Int getElRapSliceTypeB() {return m_elRapSliceBEnabled;} |
---|
718 | #endif |
---|
719 | |
---|
720 | }; |
---|
721 | |
---|
722 | //! \} |
---|
723 | |
---|
724 | #endif // !defined(AFX_TENCCFG_H__6B99B797_F4DA_4E46_8E78_7656339A6C41__INCLUDED_) |
---|