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 | |
---|
36 | /** \file TComDataCU.h |
---|
37 | \brief CU data structure (header) |
---|
38 | \todo not all entities are documented |
---|
39 | */ |
---|
40 | |
---|
41 | #ifndef _TCOMDATACU_ |
---|
42 | #define _TCOMDATACU_ |
---|
43 | |
---|
44 | #include <assert.h> |
---|
45 | |
---|
46 | // Include files |
---|
47 | #include "CommonDef.h" |
---|
48 | #include "TComMotionInfo.h" |
---|
49 | #include "TComSlice.h" |
---|
50 | #include "TComRdCost.h" |
---|
51 | #include "TComPattern.h" |
---|
52 | #include "TComYuv.h" |
---|
53 | |
---|
54 | #include <algorithm> |
---|
55 | #include <vector> |
---|
56 | |
---|
57 | // ==================================================================================================================== |
---|
58 | // Class definition |
---|
59 | // ==================================================================================================================== |
---|
60 | |
---|
61 | /// CU data structure class |
---|
62 | class TComDataCU |
---|
63 | { |
---|
64 | private: |
---|
65 | |
---|
66 | // ------------------------------------------------------------------------------------------------------------------- |
---|
67 | // class pointers |
---|
68 | // ------------------------------------------------------------------------------------------------------------------- |
---|
69 | |
---|
70 | TComPic* m_pcPic; ///< picture class pointer |
---|
71 | TComSlice* m_pcSlice; ///< slice header pointer |
---|
72 | TComPattern* m_pcPattern; ///< neighbour access class pointer |
---|
73 | |
---|
74 | // ------------------------------------------------------------------------------------------------------------------- |
---|
75 | // CU description |
---|
76 | // ------------------------------------------------------------------------------------------------------------------- |
---|
77 | |
---|
78 | UInt m_uiCUAddr; ///< CU address in a slice |
---|
79 | UInt m_uiAbsIdxInLCU; ///< absolute address in a CU. It's Z scan order |
---|
80 | UInt m_uiCUPelX; ///< CU position in a pixel (X) |
---|
81 | UInt m_uiCUPelY; ///< CU position in a pixel (Y) |
---|
82 | UInt m_uiNumPartition; ///< total number of minimum partitions in a CU |
---|
83 | UChar* m_puhWidth; ///< array of widths |
---|
84 | UChar* m_puhHeight; ///< array of heights |
---|
85 | UChar* m_puhDepth; ///< array of depths |
---|
86 | #if HHI_MPI |
---|
87 | Int* m_piTextureModeDepth; ///< at which depth is prediction data inherited from texture picture ( -1 : none ) |
---|
88 | #endif |
---|
89 | |
---|
90 | // ------------------------------------------------------------------------------------------------------------------- |
---|
91 | // CU data |
---|
92 | // ------------------------------------------------------------------------------------------------------------------- |
---|
93 | |
---|
94 | PartSize* m_pePartSize; ///< array of partition sizes |
---|
95 | PredMode* m_pePredMode; ///< array of prediction modes |
---|
96 | UChar* m_phQP; ///< array of QP values |
---|
97 | UChar* m_puhTrIdx; ///< array of transform indices |
---|
98 | UChar* m_puhCbf[3]; ///< array of coded block flags (CBF) |
---|
99 | TComCUMvField m_acCUMvField[2]; ///< array of motion vectors |
---|
100 | TCoeff* m_pcTrCoeffY; ///< transformed coefficient buffer (Y) |
---|
101 | TCoeff* m_pcTrCoeffCb; ///< transformed coefficient buffer (Cb) |
---|
102 | TCoeff* m_pcTrCoeffCr; ///< transformed coefficient buffer (Cr) |
---|
103 | #if SNY_DQP |
---|
104 | Bool m_bdQP; ///< signal if LCU dQP encoded |
---|
105 | #endif//SNY_DQP |
---|
106 | |
---|
107 | // ------------------------------------------------------------------------------------------------------------------- |
---|
108 | // neighbour access variables |
---|
109 | // ------------------------------------------------------------------------------------------------------------------- |
---|
110 | |
---|
111 | TComDataCU* m_pcCUAboveLeft; ///< pointer of above-left CU |
---|
112 | TComDataCU* m_pcCUAboveRight; ///< pointer of above-right CU |
---|
113 | TComDataCU* m_pcCUAbove; ///< pointer of above CU |
---|
114 | TComDataCU* m_pcCULeft; ///< pointer of left CU |
---|
115 | TComDataCU* m_apcCUColocated[2]; ///< pointer of temporally colocated CU's for both directions |
---|
116 | TComMvField m_cMvFieldA; ///< motion vector of position A |
---|
117 | TComMvField m_cMvFieldB; ///< motion vector of position B |
---|
118 | TComMvField m_cMvFieldC; ///< motion vector of position C |
---|
119 | TComMv m_cMvPred; ///< motion vector predictor |
---|
120 | |
---|
121 | // ------------------------------------------------------------------------------------------------------------------- |
---|
122 | // coding tool information |
---|
123 | // ------------------------------------------------------------------------------------------------------------------- |
---|
124 | |
---|
125 | Bool* m_pbMergeFlag; ///< array of merge flags |
---|
126 | UChar* m_puhMergeIndex; ///< array of merge candidate indices |
---|
127 | #if HHI_INTER_VIEW_RESIDUAL_PRED |
---|
128 | Bool* m_pbResPredAvailable; ///< array of residual prediction available flags |
---|
129 | Bool* m_pbResPredFlag; ///< array of residual prediction flags |
---|
130 | #endif |
---|
131 | UChar* m_apuhNeighbourCandIdx[ MRG_MAX_NUM_CANDS ];///< array of motion vector predictor candidates indices |
---|
132 | UChar* m_puhLumaIntraDir; ///< array of intra directions (luma) |
---|
133 | UChar* m_puhChromaIntraDir; ///< array of intra directions (chroma) |
---|
134 | UChar* m_puhInterDir; ///< array of inter directions |
---|
135 | Int* m_apiMVPIdx[2]; ///< array of motion vector predictor candidates |
---|
136 | Int* m_apiMVPNum[2]; ///< array of number of possible motion vectors predictors |
---|
137 | UInt* m_puiAlfCtrlFlag; ///< array of ALF flags |
---|
138 | UInt* m_puiTmpAlfCtrlFlag; ///< temporal array of ALF flags |
---|
139 | #if HHI_DMM_WEDGE_INTRA |
---|
140 | UInt* m_puiWedgeFullTabIdx; |
---|
141 | Int* m_piWedgeFullDeltaDC1; |
---|
142 | Int* m_piWedgeFullDeltaDC2; |
---|
143 | |
---|
144 | UInt* m_puiWedgePredDirTabIdx; |
---|
145 | Int* m_piWedgePredDirDeltaDC1; |
---|
146 | Int* m_piWedgePredDirDeltaDC2; |
---|
147 | Int* m_piWedgePredDirDeltaEnd; |
---|
148 | #endif |
---|
149 | #if HHI_DMM_PRED_TEX |
---|
150 | UInt* m_puiWedgePredTexTabIdx; |
---|
151 | Int* m_piWedgePredTexDeltaDC1; |
---|
152 | Int* m_piWedgePredTexDeltaDC2; |
---|
153 | |
---|
154 | Int* m_piContourPredTexDeltaDC1; |
---|
155 | Int* m_piContourPredTexDeltaDC2; |
---|
156 | #endif |
---|
157 | |
---|
158 | // ------------------------------------------------------------------------------------------------------------------- |
---|
159 | // misc. variables |
---|
160 | // ------------------------------------------------------------------------------------------------------------------- |
---|
161 | |
---|
162 | Bool m_bDecSubCu; ///< indicates decoder-mode |
---|
163 | Double m_dTotalCost; ///< sum of partition RD costs |
---|
164 | Dist m_uiTotalDistortion; ///< sum of partition distortion |
---|
165 | UInt m_uiTotalBits; ///< sum of partition bits |
---|
166 | UInt m_uiSliceStartCU; ///< Start CU address of current slice |
---|
167 | UInt m_uiEntropySliceStartCU; ///< Start CU address of current slice |
---|
168 | |
---|
169 | protected: |
---|
170 | |
---|
171 | /// add possible motion vector predictor candidates |
---|
172 | Bool xAddMVPCand ( AMVPInfo* pInfo, RefPicList eRefPicList, Int iRefIdx, UInt uiPartUnitIdx, MVP_DIR eDir ); |
---|
173 | #if MTK_AMVP_SMVP_DERIVATION |
---|
174 | Bool xAddMVPCandOrder ( AMVPInfo* pInfo, RefPicList eRefPicList, Int iRefIdx, UInt uiPartUnitIdx, MVP_DIR eDir ); |
---|
175 | #endif |
---|
176 | |
---|
177 | #if MTK_TMVP_H_MRG || MTK_TMVP_H_AMVP |
---|
178 | Void deriveRightBottomIdx ( PartSize eCUMode, UInt uiPartIdx, UInt& ruiPartIdxRB ); |
---|
179 | Bool xGetColMVP( RefPicList eRefPicList, Int uiCUAddr, Int uiPartUnitIdx, TComMv& rcMv, Int& riRefIdx ); |
---|
180 | #endif |
---|
181 | |
---|
182 | /// remove redundant candidates |
---|
183 | Void xUniqueMVPCand ( AMVPInfo* pInfo ); |
---|
184 | |
---|
185 | Void xCheckCornerCand( TComDataCU* pcCorner, UInt uiCornerIdx, UInt uiIter, Bool& rbValidCand ); |
---|
186 | /// compute required bits to encode MVD (used in AMVP) |
---|
187 | UInt xGetMvdBits ( TComMv cMvd ); |
---|
188 | UInt xGetComponentBits ( Int iVal ); |
---|
189 | |
---|
190 | /// compute scaling factor from POC difference |
---|
191 | Int xGetDistScaleFactor ( Int iCurrPOC, Int iCurrRefPOC, Int iColPOC, Int iColRefPOC ); |
---|
192 | |
---|
193 | /// calculate all CBF's from coefficients |
---|
194 | Void xCalcCuCbf ( UChar* puhCbf, UInt uiTrDepth, UInt uiCbfDepth, UInt uiCuDepth ); |
---|
195 | |
---|
196 | #if FT_TCTR_AMVP || FT_TCTR_MRG |
---|
197 | Void xDeriveCenterIdx( PartSize eCUMode, UInt uiPartIdx, UInt& ruiPartIdxCenter ); |
---|
198 | Bool xGetCenterCol( UInt uiPartIdx, RefPicList eRefPicList, int iRefIdx, TComMv *pcMv ); |
---|
199 | #endif |
---|
200 | |
---|
201 | public: |
---|
202 | TComDataCU(); |
---|
203 | virtual ~TComDataCU(); |
---|
204 | |
---|
205 | // ------------------------------------------------------------------------------------------------------------------- |
---|
206 | // create / destroy / initialize / copy |
---|
207 | // ------------------------------------------------------------------------------------------------------------------- |
---|
208 | |
---|
209 | Void create ( UInt uiNumPartition, UInt uiWidth, UInt uiHeight, Bool bDecSubCu ); |
---|
210 | Void destroy (); |
---|
211 | |
---|
212 | Void initCU ( TComPic* pcPic, UInt uiCUAddr ); |
---|
213 | Void initEstData (); |
---|
214 | Void initSubCU ( TComDataCU* pcCU, UInt uiPartUnitIdx, UInt uiDepth ); |
---|
215 | |
---|
216 | Void copySubCU ( TComDataCU* pcCU, UInt uiPartUnitIdx, UInt uiDepth ); |
---|
217 | Void copyInterPredInfoFrom ( TComDataCU* pcCU, UInt uiAbsPartIdx, RefPicList eRefPicList ); |
---|
218 | Void copyPartFrom ( TComDataCU* pcCU, UInt uiPartUnitIdx, UInt uiDepth ); |
---|
219 | |
---|
220 | Void copyToPic ( UChar uiDepth ); |
---|
221 | Void copyToPic ( UChar uiDepth, UInt uiPartIdx, UInt uiPartDepth ); |
---|
222 | |
---|
223 | // ------------------------------------------------------------------------------------------------------------------- |
---|
224 | // member functions for CU description |
---|
225 | // ------------------------------------------------------------------------------------------------------------------- |
---|
226 | |
---|
227 | TComPic* getPic () { return m_pcPic; } |
---|
228 | TComSlice* getSlice () { return m_pcSlice; } |
---|
229 | UInt& getAddr () { return m_uiCUAddr; } |
---|
230 | UInt& getZorderIdxInCU () { return m_uiAbsIdxInLCU; } |
---|
231 | UInt getCUPelX () { return m_uiCUPelX; } |
---|
232 | UInt getCUPelY () { return m_uiCUPelY; } |
---|
233 | TComPattern* getPattern () { return m_pcPattern; } |
---|
234 | |
---|
235 | UChar* getDepth () { return m_puhDepth; } |
---|
236 | UChar getDepth ( UInt uiIdx ) { return m_puhDepth[uiIdx]; } |
---|
237 | Void setDepth ( UInt uiIdx, UChar uh ) { m_puhDepth[uiIdx] = uh; } |
---|
238 | |
---|
239 | #if HHI_MPI |
---|
240 | Int* getTextureModeDepth () { return m_piTextureModeDepth; } |
---|
241 | Int getTextureModeDepth ( UInt uiIdx ) { return m_piTextureModeDepth[uiIdx]; } |
---|
242 | Void setTextureModeDepth ( UInt uiIdx, Int iTextureModeDepth ){ m_piTextureModeDepth[uiIdx] = iTextureModeDepth; } |
---|
243 | Void setTextureModeDepthSubParts( Int iTextureModeDepth, UInt uiAbsPartIdx, UInt uiDepth ); |
---|
244 | Void copyTextureMotionDataFrom( TComDataCU* pcCU, UInt uiDepth, UInt uiAbsPartIdxSrc, UInt uiAbsPartIdxDst = 0 ); |
---|
245 | #endif |
---|
246 | |
---|
247 | Void setDepthSubParts ( UInt uiDepth, UInt uiAbsPartIdx ); |
---|
248 | Void getPosInPic ( UInt uiAbsPartIndex, Int& riPosX, Int& riPosY ); |
---|
249 | |
---|
250 | // ------------------------------------------------------------------------------------------------------------------- |
---|
251 | // member functions for CU data |
---|
252 | // ------------------------------------------------------------------------------------------------------------------- |
---|
253 | |
---|
254 | PartSize* getPartitionSize () { return m_pePartSize; } |
---|
255 | PartSize getPartitionSize ( UInt uiIdx ) { return m_pePartSize[uiIdx]; } |
---|
256 | Void setPartitionSize ( UInt uiIdx, PartSize uh){ m_pePartSize[uiIdx] = uh; } |
---|
257 | Void setPartSizeSubParts ( PartSize eMode, UInt uiAbsPartIdx, UInt uiDepth ); |
---|
258 | |
---|
259 | PredMode* getPredictionMode () { return m_pePredMode; } |
---|
260 | PredMode getPredictionMode ( UInt uiIdx ) { return m_pePredMode[uiIdx]; } |
---|
261 | Void setPredictionMode ( UInt uiIdx, PredMode uh){ m_pePredMode[uiIdx] = uh; } |
---|
262 | Void setPredModeSubParts ( PredMode eMode, UInt uiAbsPartIdx, UInt uiDepth ); |
---|
263 | |
---|
264 | UChar* getWidth () { return m_puhWidth; } |
---|
265 | UChar getWidth ( UInt uiIdx ) { return m_puhWidth[uiIdx]; } |
---|
266 | Void setWidth ( UInt uiIdx, UChar uh ) { m_puhWidth[uiIdx] = uh; } |
---|
267 | |
---|
268 | UChar* getHeight () { return m_puhHeight; } |
---|
269 | UChar getHeight ( UInt uiIdx ) { return m_puhHeight[uiIdx]; } |
---|
270 | Void setHeight ( UInt uiIdx, UChar uh ) { m_puhHeight[uiIdx] = uh; } |
---|
271 | |
---|
272 | Void setSizeSubParts ( UInt uiWidth, UInt uiHeight, UInt uiAbsPartIdx, UInt uiDepth ); |
---|
273 | |
---|
274 | UChar* getQP () { return m_phQP; } |
---|
275 | UChar getQP ( UInt uiIdx ) { return m_phQP[uiIdx]; } |
---|
276 | Void setQP ( UInt uiIdx, UChar uh ) { m_phQP[uiIdx] = uh; } |
---|
277 | Void setQPSubParts ( UInt uiQP, UInt uiAbsPartIdx, UInt uiDepth ); |
---|
278 | #if SNY_DQP |
---|
279 | Bool getdQPFlag () { return m_bdQP; } |
---|
280 | Void setdQPFlag ( Bool b ) { m_bdQP = b; } |
---|
281 | #endif//SNY_DQP |
---|
282 | |
---|
283 | UChar* getTransformIdx () { return m_puhTrIdx; } |
---|
284 | UChar getTransformIdx ( UInt uiIdx ) { return m_puhTrIdx[uiIdx]; } |
---|
285 | Void setTrIdxSubParts ( UInt uiTrIdx, UInt uiAbsPartIdx, UInt uiDepth ); |
---|
286 | |
---|
287 | UInt getQuadtreeTULog2MinSizeInCU( UInt uiIdx ); |
---|
288 | |
---|
289 | #if HHI_RQT_FORCE_SPLIT_ACC2_PU || HHI_RQT_DISABLE_SUB |
---|
290 | UInt getQuadtreeTULog2RootSizeInCU( UInt uiIdx ); |
---|
291 | #endif |
---|
292 | |
---|
293 | TComCUMvField* getCUMvField ( RefPicList e ) { return &m_acCUMvField[e]; } |
---|
294 | |
---|
295 | TCoeff*& getCoeffY () { return m_pcTrCoeffY; } |
---|
296 | TCoeff*& getCoeffCb () { return m_pcTrCoeffCb; } |
---|
297 | TCoeff*& getCoeffCr () { return m_pcTrCoeffCr; } |
---|
298 | |
---|
299 | UChar getCbf ( UInt uiIdx, TextType eType ) { return m_puhCbf[g_aucConvertTxtTypeToIdx[eType]][uiIdx]; } |
---|
300 | UChar* getCbf ( TextType eType ) { return m_puhCbf[g_aucConvertTxtTypeToIdx[eType]]; } |
---|
301 | UChar getCbf ( UInt uiIdx, TextType eType, UInt uiTrDepth ) { return ( ( getCbf( uiIdx, eType ) >> uiTrDepth ) & 0x1 ); } |
---|
302 | Void setCbf ( UInt uiIdx, TextType eType, UChar uh ) { m_puhCbf[g_aucConvertTxtTypeToIdx[eType]][uiIdx] = uh; } |
---|
303 | Void clearCbf ( UInt uiIdx, TextType eType, UInt uiNumParts ); |
---|
304 | UChar getQtRootCbf ( UInt uiIdx ) { return getCbf( uiIdx, TEXT_LUMA, 0 ) || getCbf( uiIdx, TEXT_CHROMA_U, 0 ) || getCbf( uiIdx, TEXT_CHROMA_V, 0 ); } |
---|
305 | |
---|
306 | Void setCbfSubParts ( UInt uiCbfY, UInt uiCbfU, UInt uiCbfV, UInt uiAbsPartIdx, UInt uiDepth ); |
---|
307 | Void setCbfSubParts ( UInt uiCbf, TextType eTType, UInt uiAbsPartIdx, UInt uiDepth ); |
---|
308 | #if HHI_MRG_SKIP |
---|
309 | Void setCbfSubParts ( UInt uiCbf, TextType eTType, UInt uiAbsPartIdx, UInt uiPartIdx, UInt uiDepth ); |
---|
310 | #endif |
---|
311 | |
---|
312 | // ------------------------------------------------------------------------------------------------------------------- |
---|
313 | // member functions for coding tool information |
---|
314 | // ------------------------------------------------------------------------------------------------------------------- |
---|
315 | |
---|
316 | Bool* getMergeFlag () { return m_pbMergeFlag; } |
---|
317 | Bool getMergeFlag ( UInt uiIdx ) { return m_pbMergeFlag[uiIdx]; } |
---|
318 | Void setMergeFlag ( UInt uiIdx, Bool b ) { m_pbMergeFlag[uiIdx] = b; } |
---|
319 | Void setMergeFlagSubParts ( Bool bMergeFlag, UInt uiAbsPartIdx, UInt uiPartIdx, UInt uiDepth ); |
---|
320 | |
---|
321 | UChar* getMergeIndex () { return m_puhMergeIndex; } |
---|
322 | UChar getMergeIndex ( UInt uiIdx ) { return m_puhMergeIndex[uiIdx]; } |
---|
323 | Void setMergeIndex ( UInt uiIdx, UInt uiMergeIndex ) { m_puhMergeIndex[uiIdx] = uiMergeIndex; } |
---|
324 | Void setMergeIndexSubParts ( UInt uiMergeIndex, UInt uiAbsPartIdx, UInt uiPartIdx, UInt uiDepth ); |
---|
325 | |
---|
326 | UChar* getNeighbourCandIdx ( UInt uiCandIdx ) { return m_apuhNeighbourCandIdx[uiCandIdx]; } |
---|
327 | UChar getNeighbourCandIdx ( UInt uiCandIdx, UInt uiIdx ){ return m_apuhNeighbourCandIdx[uiCandIdx][uiIdx]; } |
---|
328 | Void setNeighbourCandIdx ( UInt uiCandIdx, UInt uiIdx, UChar uhNeighCands ) { m_apuhNeighbourCandIdx[uiCandIdx][uiIdx] = uhNeighCands;} |
---|
329 | Void setNeighbourCandIdxSubParts ( UInt uiCandIdx, UChar uhNumCands, UInt uiAbsPartIdx, UInt uiPartIdx, UInt uiDepth ); |
---|
330 | |
---|
331 | #if HHI_INTER_VIEW_RESIDUAL_PRED |
---|
332 | Bool* getResPredAvail () { return m_pbResPredAvailable; } |
---|
333 | Bool getResPredAvail ( UInt uiIdx ) { return m_pbResPredAvailable[uiIdx]; } |
---|
334 | Void setResPredAvail ( UInt uiIdx, Bool b ) { m_pbResPredAvailable[uiIdx] = b; } |
---|
335 | Void setResPredAvailSubParts ( Bool b, UInt uiAbsPartIdx, UInt uiPartIdx, UInt uiDepth ); |
---|
336 | |
---|
337 | Bool* getResPredFlag () { return m_pbResPredFlag; } |
---|
338 | Bool getResPredFlag ( UInt uiIdx ) { return m_pbResPredFlag[uiIdx]; } |
---|
339 | Void setResPredFlag ( UInt uiIdx, Bool b ) { m_pbResPredFlag[uiIdx] = b; } |
---|
340 | Void setResPredFlagSubParts ( Bool b, UInt uiAbsPartIdx, UInt uiPartIdx, UInt uiDepth ); |
---|
341 | |
---|
342 | Void setResPredIndicator ( Bool bAv, Bool bRP ) { m_pbResPredAvailable[0] = bAv; m_pbResPredFlag[0] = bRP; } |
---|
343 | #endif |
---|
344 | |
---|
345 | Void setSubPartBool ( Bool bParameter, Bool* pbBaseLCU, UInt uiCUAddr, UInt uiCUDepth, UInt uiPUIdx ); |
---|
346 | Void setSubPartUChar ( UInt bParameter, UChar* pbBaseLCU, UInt uiCUAddr, UInt uiCUDepth, UInt uiPUIdx ); |
---|
347 | |
---|
348 | UChar* getLumaIntraDir () { return m_puhLumaIntraDir; } |
---|
349 | UChar getLumaIntraDir ( UInt uiIdx ) { return m_puhLumaIntraDir[uiIdx]; } |
---|
350 | Void setLumaIntraDir ( UInt uiIdx, UChar uh ) { m_puhLumaIntraDir[uiIdx] = uh; } |
---|
351 | Void setLumaIntraDirSubParts( UInt uiDir, UInt uiAbsPartIdx, UInt uiDepth ); |
---|
352 | |
---|
353 | UChar* getChromaIntraDir () { return m_puhChromaIntraDir; } |
---|
354 | UChar getChromaIntraDir ( UInt uiIdx ) { return m_puhChromaIntraDir[uiIdx]; } |
---|
355 | Void setChromaIntraDir ( UInt uiIdx, UChar uh ) { m_puhChromaIntraDir[uiIdx] = uh; } |
---|
356 | Void setChromIntraDirSubParts( UInt uiDir, UInt uiAbsPartIdx, UInt uiDepth ); |
---|
357 | |
---|
358 | UChar* getInterDir () { return m_puhInterDir; } |
---|
359 | UChar getInterDir ( UInt uiIdx ) { return m_puhInterDir[uiIdx]; } |
---|
360 | Void setInterDir ( UInt uiIdx, UChar uh ) { m_puhInterDir[uiIdx] = uh; } |
---|
361 | Void setInterDirSubParts ( UInt uiDir, UInt uiAbsPartIdx, UInt uiPartIdx, UInt uiDepth ); |
---|
362 | |
---|
363 | UInt* getAlfCtrlFlag () { return m_puiAlfCtrlFlag; } |
---|
364 | UInt getAlfCtrlFlag ( UInt uiIdx ) { return m_puiAlfCtrlFlag[uiIdx]; } |
---|
365 | Void setAlfCtrlFlag ( UInt uiIdx, UInt uiFlag){ m_puiAlfCtrlFlag[uiIdx] = uiFlag; } |
---|
366 | Void setAlfCtrlFlagSubParts( UInt uiFlag, UInt uiAbsPartIdx, UInt uiDepth ); |
---|
367 | |
---|
368 | Void createTmpAlfCtrlFlag (); |
---|
369 | Void destroyTmpAlfCtrlFlag (); |
---|
370 | Void copyAlfCtrlFlagToTmp (); |
---|
371 | Void copyAlfCtrlFlagFromTmp(); |
---|
372 | |
---|
373 | #if HHI_DMM_WEDGE_INTRA |
---|
374 | UInt* getWedgeFullTabIdx () { return m_puiWedgeFullTabIdx; } |
---|
375 | UInt getWedgeFullTabIdx ( UInt uiIdx ) { return m_puiWedgeFullTabIdx[uiIdx]; } |
---|
376 | Void setWedgeFullTabIdx ( UInt uiIdx, UInt uh ) { m_puiWedgeFullTabIdx[uiIdx] = uh; } |
---|
377 | Void setWedgeFullTabIdxSubParts ( UInt uiTIdx, UInt uiAbsPartIdx, UInt uiDepth ); |
---|
378 | |
---|
379 | Int* getWedgeFullDeltaDC1 () { return m_piWedgeFullDeltaDC1; } |
---|
380 | Int getWedgeFullDeltaDC1 ( UInt uiIdx ) { return m_piWedgeFullDeltaDC1[uiIdx]; } |
---|
381 | Void setWedgeFullDeltaDC1 ( UInt uiIdx, Int i ) { m_piWedgeFullDeltaDC1[uiIdx] = i; } |
---|
382 | Void setWedgeFullDeltaDC1SubParts( Int iDC1, UInt uiAbsPartIdx, UInt uiDepth ); |
---|
383 | |
---|
384 | Int* getWedgeFullDeltaDC2 () { return m_piWedgeFullDeltaDC2; } |
---|
385 | Int getWedgeFullDeltaDC2 ( UInt uiIdx ) { return m_piWedgeFullDeltaDC2[uiIdx]; } |
---|
386 | Void setWedgeFullDeltaDC2 ( UInt uiIdx, Int i ) { m_piWedgeFullDeltaDC2[uiIdx] = i; } |
---|
387 | Void setWedgeFullDeltaDC2SubParts( Int iDC2, UInt uiAbsPartIdx, UInt uiDepth ); |
---|
388 | |
---|
389 | UInt* getWedgePredDirTabIdx () { return m_puiWedgePredDirTabIdx; } |
---|
390 | UInt getWedgePredDirTabIdx ( UInt uiIdx ) { return m_puiWedgePredDirTabIdx[uiIdx]; } |
---|
391 | Void setWedgePredDirTabIdx ( UInt uiIdx, UInt uh ) { m_puiWedgePredDirTabIdx[uiIdx] = uh; } |
---|
392 | Void setWedgePredDirTabIdxSubParts( UInt uiTIdx, UInt uiAbsPartIdx, UInt uiDepth ); |
---|
393 | |
---|
394 | Int* getWedgePredDirDeltaDC1 () { return m_piWedgePredDirDeltaDC1; } |
---|
395 | Int getWedgePredDirDeltaDC1 ( UInt uiIdx ) { return m_piWedgePredDirDeltaDC1[uiIdx]; } |
---|
396 | Void setWedgePredDirDeltaDC1 ( UInt uiIdx, Int i ) { m_piWedgePredDirDeltaDC1[uiIdx] = i; } |
---|
397 | Void setWedgePredDirDeltaDC1SubParts( Int iDC1, UInt uiAbsPartIdx, UInt uiDepth ); |
---|
398 | |
---|
399 | Int* getWedgePredDirDeltaDC2 () { return m_piWedgePredDirDeltaDC2; } |
---|
400 | Int getWedgePredDirDeltaDC2 ( UInt uiIdx ) { return m_piWedgePredDirDeltaDC2[uiIdx]; } |
---|
401 | Void setWedgePredDirDeltaDC2 ( UInt uiIdx, Int i ) { m_piWedgePredDirDeltaDC2[uiIdx] = i; } |
---|
402 | Void setWedgePredDirDeltaDC2SubParts( Int iDC2, UInt uiAbsPartIdx, UInt uiDepth ); |
---|
403 | |
---|
404 | Int* getWedgePredDirDeltaEnd () { return m_piWedgePredDirDeltaEnd; } |
---|
405 | Int getWedgePredDirDeltaEnd ( UInt uiIdx ) { return m_piWedgePredDirDeltaEnd[uiIdx]; } |
---|
406 | Void setWedgePredDirDeltaEnd ( UInt uiIdx, Int iD ) { m_piWedgePredDirDeltaEnd[uiIdx] = iD; } |
---|
407 | Void setWedgePredDirDeltaEndSubParts( Int iDelta, UInt uiAbsPartIdx, UInt uiDepth ); |
---|
408 | #endif |
---|
409 | #if HHI_DMM_PRED_TEX |
---|
410 | UInt* getWedgePredTexTabIdx () { return m_puiWedgePredTexTabIdx; } |
---|
411 | UInt getWedgePredTexTabIdx ( UInt uiIdx ) { return m_puiWedgePredTexTabIdx[uiIdx]; } |
---|
412 | Void setWedgePredTexTabIdx ( UInt uiIdx, UInt uh ) { m_puiWedgePredTexTabIdx[uiIdx] = uh; } |
---|
413 | Void setWedgePredTexTabIdxSubParts( UInt uiTIdx, UInt uiAbsPartIdx, UInt uiDepth ); |
---|
414 | |
---|
415 | Int* getWedgePredTexDeltaDC1 () { return m_piWedgePredTexDeltaDC1; } |
---|
416 | Int getWedgePredTexDeltaDC1 ( UInt uiIdx ) { return m_piWedgePredTexDeltaDC1[uiIdx]; } |
---|
417 | Void setWedgePredTexDeltaDC1 ( UInt uiIdx, Int i ) { m_piWedgePredTexDeltaDC1[uiIdx] = i; } |
---|
418 | Void setWedgePredTexDeltaDC1SubParts( Int iDC1, UInt uiAbsPartIdx, UInt uiDepth ); |
---|
419 | |
---|
420 | Int* getWedgePredTexDeltaDC2 () { return m_piWedgePredTexDeltaDC2; } |
---|
421 | Int getWedgePredTexDeltaDC2 ( UInt uiIdx ) { return m_piWedgePredTexDeltaDC2[uiIdx]; } |
---|
422 | Void setWedgePredTexDeltaDC2 ( UInt uiIdx, Int i ) { m_piWedgePredTexDeltaDC2[uiIdx] = i; } |
---|
423 | Void setWedgePredTexDeltaDC2SubParts( Int iDC2, UInt uiAbsPartIdx, UInt uiDepth ); |
---|
424 | |
---|
425 | Int* getContourPredTexDeltaDC1 () { return m_piContourPredTexDeltaDC1; } |
---|
426 | Int getContourPredTexDeltaDC1 ( UInt uiIdx ) { return m_piContourPredTexDeltaDC1[uiIdx]; } |
---|
427 | Void setContourPredTexDeltaDC1 ( UInt uiIdx, Int i ) { m_piContourPredTexDeltaDC1[uiIdx] = i; } |
---|
428 | Void setContourPredTexDeltaDC1SubParts( Int iDC1, UInt uiAbsPartIdx, UInt uiDepth ); |
---|
429 | |
---|
430 | Int* getContourPredTexDeltaDC2 () { return m_piContourPredTexDeltaDC2; } |
---|
431 | Int getContourPredTexDeltaDC2 ( UInt uiIdx ) { return m_piContourPredTexDeltaDC2[uiIdx]; } |
---|
432 | Void setContourPredTexDeltaDC2 ( UInt uiIdx, Int i ) { m_piContourPredTexDeltaDC2[uiIdx] = i; } |
---|
433 | Void setContourPredTexDeltaDC2SubParts( Int iDC2, UInt uiAbsPartIdx, UInt uiDepth ); |
---|
434 | #endif |
---|
435 | |
---|
436 | #if HHI_INTER_VIEW_MOTION_PRED |
---|
437 | Int getPdmMergeCandidate( UInt uiPartIdx, Int* paiPdmRefIdx, TComMv* pacPdmMv ); |
---|
438 | Bool getPdmMvPred( UInt uiPartIdx, RefPicList eRefPicList, Int iRefIdx, TComMv& rcMv, Bool bMerge = false ); |
---|
439 | Bool getIViewOrgDepthMvPred( UInt uiPartIdx, RefPicList eRefPicList, Int iRefIdx, TComMv& rcMv ); |
---|
440 | #endif |
---|
441 | #if HHI_INTER_VIEW_RESIDUAL_PRED |
---|
442 | Bool getResidualSamples( UInt uiPartIdx, TComYuv* pcYuv = 0 ); |
---|
443 | #endif |
---|
444 | |
---|
445 | // ------------------------------------------------------------------------------------------------------------------- |
---|
446 | // member functions for accessing partition information |
---|
447 | // ------------------------------------------------------------------------------------------------------------------- |
---|
448 | |
---|
449 | Void getPartIndexAndSize ( UInt uiPartIdx, UInt& ruiPartAddr, Int& riWidth, Int& riHeight ); |
---|
450 | UChar getNumPartInter (); |
---|
451 | Bool isFirstAbsZorderIdxInDepth (UInt uiAbsPartIdx, UInt uiDepth); |
---|
452 | |
---|
453 | // ------------------------------------------------------------------------------------------------------------------- |
---|
454 | // member functions for motion vector |
---|
455 | // ------------------------------------------------------------------------------------------------------------------- |
---|
456 | |
---|
457 | Void getMvField ( TComDataCU* pcCU, UInt uiAbsPartIdx, RefPicList eRefPicList, TComMvField& rcMvField ); |
---|
458 | |
---|
459 | AMVP_MODE getAMVPMode ( UInt uiIdx ); |
---|
460 | Void fillMvpCand ( UInt uiPartIdx, UInt uiPartAddr, RefPicList eRefPicList, Int iRefIdx, AMVPInfo* pInfo ); |
---|
461 | #if DCM_SIMPLIFIED_MVP==0 |
---|
462 | Bool clearMVPCand ( TComMv cMvd, AMVPInfo* pInfo ); |
---|
463 | #endif |
---|
464 | Int searchMVPIdx ( TComMv cMv, AMVPInfo* pInfo ); |
---|
465 | |
---|
466 | Void setMVPIdx ( RefPicList eRefPicList, UInt uiIdx, Int iMVPIdx) { m_apiMVPIdx[eRefPicList][uiIdx] = iMVPIdx; } |
---|
467 | Int getMVPIdx ( RefPicList eRefPicList, UInt uiIdx) { return m_apiMVPIdx[eRefPicList][uiIdx]; } |
---|
468 | Int* getMVPIdx ( RefPicList eRefPicList ) { return m_apiMVPIdx[eRefPicList]; } |
---|
469 | |
---|
470 | Void setMVPNum ( RefPicList eRefPicList, UInt uiIdx, Int iMVPNum ) { m_apiMVPNum[eRefPicList][uiIdx] = iMVPNum; } |
---|
471 | Int getMVPNum ( RefPicList eRefPicList, UInt uiIdx ) { return m_apiMVPNum[eRefPicList][uiIdx]; } |
---|
472 | Int* getMVPNum ( RefPicList eRefPicList ) { return m_apiMVPNum[eRefPicList]; } |
---|
473 | |
---|
474 | Void setMVPIdxSubParts ( Int iMVPIdx, RefPicList eRefPicList, UInt uiAbsPartIdx, UInt uiPartIdx, UInt uiDepth ); |
---|
475 | Void setMVPNumSubParts ( Int iMVPNum, RefPicList eRefPicList, UInt uiAbsPartIdx, UInt uiPartIdx, UInt uiDepth ); |
---|
476 | |
---|
477 | Void clipMv ( TComMv& rcMv ); |
---|
478 | Void getMvPredLeft ( TComMv& rcMvPred ) { rcMvPred = m_cMvFieldA.getMv(); } |
---|
479 | Void getMvPredAbove ( TComMv& rcMvPred ) { rcMvPred = m_cMvFieldB.getMv(); } |
---|
480 | Void getMvPredAboveRight ( TComMv& rcMvPred ) { rcMvPred = m_cMvFieldC.getMv(); } |
---|
481 | |
---|
482 | #if AMVP_BUFFERCOMPRESS |
---|
483 | Void compressMV (); |
---|
484 | #endif |
---|
485 | |
---|
486 | // ------------------------------------------------------------------------------------------------------------------- |
---|
487 | // utility functions for neighbouring information |
---|
488 | // ------------------------------------------------------------------------------------------------------------------- |
---|
489 | |
---|
490 | TComDataCU* getCULeft () { return m_pcCULeft; } |
---|
491 | TComDataCU* getCUAbove () { return m_pcCUAbove; } |
---|
492 | TComDataCU* getCUAboveLeft () { return m_pcCUAboveLeft; } |
---|
493 | TComDataCU* getCUAboveRight () { return m_pcCUAboveRight; } |
---|
494 | TComDataCU* getCUColocated ( RefPicList eRefPicList ) { return m_apcCUColocated[eRefPicList]; } |
---|
495 | |
---|
496 | TComDataCU* getPULeft ( UInt& uiLPartUnitIdx , UInt uiCurrPartUnitIdx, Bool bEnforceSliceRestriction=true, Bool bEnforceEntropySliceRestriction=true ); |
---|
497 | TComDataCU* getPUAbove ( UInt& uiAPartUnitIdx , UInt uiCurrPartUnitIdx, Bool bEnforceSliceRestriction=true, Bool bEnforceEntropySliceRestriction=true ); |
---|
498 | TComDataCU* getPUAboveLeft ( UInt& uiALPartUnitIdx, UInt uiCurrPartUnitIdx, Bool bEnforceSliceRestriction=true, Bool bEnforceEntropySliceRestriction=true ); |
---|
499 | TComDataCU* getPUAboveRight ( UInt& uiARPartUnitIdx, UInt uiCurrPartUnitIdx, Bool bEnforceSliceRestriction=true, Bool bEnforceEntropySliceRestriction=true ); |
---|
500 | TComDataCU* getPUBelowLeft ( UInt& uiBLPartUnitIdx, UInt uiCurrPartUnitIdx, Bool bEnforceSliceRestriction=true, Bool bEnforceEntropySliceRestriction=true ); |
---|
501 | |
---|
502 | #if CONSTRAINED_INTRA_PRED |
---|
503 | TComDataCU* getPUAboveRightAdi ( UInt& uiARPartUnitIdx, UInt uiPuWidth, UInt uiCurrPartUnitIdx, UInt uiPartUnitOffset = 1, Bool bEnforceSliceRestriction=true, Bool bEnforceEntropySliceRestriction=true ); |
---|
504 | TComDataCU* getPUBelowLeftAdi ( UInt& uiBLPartUnitIdx, UInt uiPuHeight, UInt uiCurrPartUnitIdx, UInt uiPartUnitOffset = 1, Bool bEnforceSliceRestriction=true, Bool bEnforceEntropySliceRestriction=true ); |
---|
505 | #else |
---|
506 | TComDataCU* getPUAboveRightAdi ( UInt& uiARPartUnitIdx, UInt uiPuWidth, UInt uiCurrPartUnitIdx, Bool bEnforceSliceRestriction=true, Bool bEnforceEntropySliceRestriction=true ); |
---|
507 | TComDataCU* getPUBelowLeftAdi ( UInt& uiBLPartUnitIdx, UInt uiPuHeight, UInt uiCurrPartUnitIdx, Bool bEnforceSliceRestriction=true, Bool bEnforceEntropySliceRestriction=true ); |
---|
508 | #endif |
---|
509 | |
---|
510 | Void deriveLeftRightTopIdx ( PartSize eCUMode, UInt uiPartIdx, UInt& ruiPartIdxLT, UInt& ruiPartIdxRT ); |
---|
511 | Void deriveLeftBottomIdx ( PartSize eCUMode, UInt uiPartIdx, UInt& ruiPartIdxLB ); |
---|
512 | |
---|
513 | Void deriveLeftRightTopIdxAdi ( UInt& ruiPartIdxLT, UInt& ruiPartIdxRT, UInt uiPartOffset, UInt uiPartDepth ); |
---|
514 | Void deriveLeftBottomIdxAdi ( UInt& ruiPartIdxLB, UInt uiPartOffset, UInt uiPartDepth ); |
---|
515 | |
---|
516 | Bool hasEqualMotion ( UInt uiAbsPartIdx, TComDataCU* pcCandCU, UInt uiCandAbsPartIdx ); |
---|
517 | Bool avoidMergeCandidate ( UInt uiAbsPartIdx, UInt uiPUIdx, UInt uiDepth, TComDataCU* pcCandCU, UInt uiCandAbsPartIdx ); |
---|
518 | Bool hasEqualMotion ( UInt uiAbsPartIdx, UInt uiCandInterDir, Int* paiCandRefIdx, TComMv* pacCandMv ); |
---|
519 | Bool avoidMergeCandidate ( UInt uiAbsPartIdx, UInt uiPUIdx, UInt uiDepth, UInt uiCandInterDir, Int* paiCandRefIdx, TComMv* pacCandMv ); |
---|
520 | Void getInterMergeCandidates ( UInt uiAbsPartIdx, UInt uiPUIdx, UInt uiDepth, TComMvField* pcMFieldNeighbours, UChar* puhInterDirNeighbours, UInt* puiNeighbourCandIdx ); |
---|
521 | Void deriveLeftRightTopIdxGeneral ( PartSize eCUMode, UInt uiAbsPartIdx, UInt uiPartIdx, UInt& ruiPartIdxLT, UInt& ruiPartIdxRT ); |
---|
522 | Void deriveLeftBottomIdxGeneral ( PartSize eCUMode, UInt uiAbsPartIdx, UInt uiPartIdx, UInt& ruiPartIdxLB ); |
---|
523 | |
---|
524 | |
---|
525 | // ------------------------------------------------------------------------------------------------------------------- |
---|
526 | // member functions for modes |
---|
527 | // ------------------------------------------------------------------------------------------------------------------- |
---|
528 | |
---|
529 | Bool isIntra ( UInt uiPartIdx ) { return m_pePredMode[ uiPartIdx ] == MODE_INTRA; } |
---|
530 | Bool isSkipped ( UInt uiPartIdx ); ///< SKIP (no residual) |
---|
531 | |
---|
532 | // ------------------------------------------------------------------------------------------------------------------- |
---|
533 | // member functions for symbol prediction (most probable / mode conversion) |
---|
534 | // ------------------------------------------------------------------------------------------------------------------- |
---|
535 | |
---|
536 | Int getMostProbableIntraDirLuma ( UInt uiAbsPartIdx ); |
---|
537 | |
---|
538 | UInt getIntraSizeIdx ( UInt uiAbsPartIdx ); |
---|
539 | Void convertTransIdx ( UInt uiAbsPartIdx, UInt uiTrIdx, UInt& ruiLumaTrMode, UInt& ruiChromaTrMode ); |
---|
540 | |
---|
541 | #if LCEC_INTRA_MODE |
---|
542 | Int getLeftIntraDirLuma ( UInt uiAbsPartIdx ); |
---|
543 | Int getAboveIntraDirLuma ( UInt uiAbsPartIdx ); |
---|
544 | #endif |
---|
545 | |
---|
546 | #if MTK_DCM_MPM |
---|
547 | Int getIntraDirLumaPredictor ( UInt uiAbsPartIdx, Int uiIntraDirPred[] ); |
---|
548 | #endif |
---|
549 | |
---|
550 | #if MS_LCEC_LOOKUP_TABLE_EXCEPTION |
---|
551 | Bool isSuroundingRefIdxException ( UInt uiAbsPartIdx ); |
---|
552 | #endif |
---|
553 | |
---|
554 | // ------------------------------------------------------------------------------------------------------------------- |
---|
555 | // member functions for SBAC context |
---|
556 | // ------------------------------------------------------------------------------------------------------------------- |
---|
557 | |
---|
558 | UInt getCtxSplitFlag ( UInt uiAbsPartIdx, UInt uiDepth ); |
---|
559 | UInt getCtxCbf ( UInt uiAbsPartIdx, TextType eType, UInt uiTrDepth ); |
---|
560 | UInt getCtxQtCbf ( UInt uiAbsPartIdx, TextType eType, UInt uiTrDepth ); |
---|
561 | UInt getCtxQtRootCbf ( UInt uiAbsPartIdx ); |
---|
562 | UInt getCtxRefIdx ( UInt uiAbsPartIdx, RefPicList eRefPicList ); |
---|
563 | UInt getCtxSkipFlag ( UInt uiAbsPartIdx ); |
---|
564 | UInt getCtxAlfCtrlFlag ( UInt uiAbsPartIdx ); |
---|
565 | UInt getCtxInterDir ( UInt uiAbsPartIdx ); |
---|
566 | UInt getCtxIntraDirChroma ( UInt uiAbsPartIdx ); |
---|
567 | UInt getCtxMergeFlag ( UInt uiAbsPartIdx ); |
---|
568 | |
---|
569 | Void setSliceStartCU ( UInt uiStartCU ) { m_uiSliceStartCU = uiStartCU; } |
---|
570 | UInt getSliceStartCU () { return m_uiSliceStartCU; } |
---|
571 | Void setEntropySliceStartCU ( UInt uiStartCU ) { m_uiEntropySliceStartCU = uiStartCU; } |
---|
572 | UInt getEntropySliceStartCU () { return m_uiEntropySliceStartCU; } |
---|
573 | |
---|
574 | // ------------------------------------------------------------------------------------------------------------------- |
---|
575 | // member functions for RD cost storage |
---|
576 | // ------------------------------------------------------------------------------------------------------------------- |
---|
577 | |
---|
578 | Double& getTotalCost() { return m_dTotalCost; } |
---|
579 | Dist& getTotalDistortion() { return m_uiTotalDistortion; } |
---|
580 | UInt& getTotalBits() { return m_uiTotalBits; } |
---|
581 | UInt& getTotalNumPart() { return m_uiNumPartition; } |
---|
582 | |
---|
583 | #if QC_MDCS |
---|
584 | UInt getCoefScanIdx(UInt uiAbsPartIdx, UInt uiWidth, Bool bIsLuma, Bool bIsIntra); |
---|
585 | #endif //QC_MDCS |
---|
586 | |
---|
587 | }; |
---|
588 | |
---|
589 | #endif |
---|
590 | |
---|