source: SHVCSoftware/branches/SHM-dev/source/Lib/TLibCommon/TComPicSym.cpp @ 1348

Last change on this file since 1348 was 1343, checked in by seregin, 9 years ago

port rev 4421

  • Property svn:eol-style set to native
File size: 18.7 KB
Line 
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-2015, 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     TComPicSym.cpp
35    \brief    picture symbol class
36*/
37
38#include "TComPicSym.h"
39#include "TComSampleAdaptiveOffset.h"
40#include "TComSlice.h"
41
42//! \ingroup TLibCommon
43//! \{
44
45// ====================================================================================================================
46// Constructor / destructor / create / destroy
47// ====================================================================================================================
48
49TComPicSym::TComPicSym()
50:m_frameWidthInCtus(0)
51,m_frameHeightInCtus(0)
52,m_uiMinCUWidth(0)
53,m_uiMinCUHeight(0)
54,m_uhTotalDepth(0)
55,m_numPartitionsInCtu(0)
56,m_numPartInCtuWidth(0)
57,m_numPartInCtuHeight(0)
58,m_numCtusInFrame(0)
59,m_apSlices()
60,m_pictureCtuArray(NULL)
61,m_numTileColumnsMinus1(0)
62,m_numTileRowsMinus1(0)
63,m_ctuTsToRsAddrMap(NULL)
64,m_puiTileIdxMap(NULL)
65,m_ctuRsToTsAddrMap(NULL)
66,m_saoBlkParams(NULL)
67#if ADAPTIVE_QP_SELECTION
68,m_pParentARLBuffer(NULL)
69#endif
70#if SVC_EXTENSION
71#if N0383_IL_CONSTRAINED_TILE_SETS_SEI
72, m_piTileSetIdxMap(NULL)
73, m_pucTileSetType(NULL)
74, m_pbSkippedTileSetFlag(NULL)
75#endif
76#endif
77{}
78
79#if SVC_EXTENSION
80Void TComPicSym::create  ( const TComVPS& vps, const TComSPS &sps, const TComPPS &pps, UInt uiMaxDepth, const UInt layerId )
81{
82  UInt i;
83  m_sps = sps;
84  m_pps = pps;
85  m_vps = &vps;
86
87  const ChromaFormat chromaFormatIDC = vps.getChromaFormatIdc(&sps, layerId);
88  const Int iPicWidth  = vps.getPicWidthInLumaSamples(&sps, layerId);
89  const Int iPicHeight = vps.getPicHeightInLumaSamples(&sps, layerId);
90#else
91Void TComPicSym::create  ( const TComSPS &sps, const TComPPS &pps, UInt uiMaxDepth )
92{
93  UInt i;
94  m_sps = sps;
95  m_pps = pps;
96
97  const ChromaFormat chromaFormatIDC = sps.getChromaFormatIdc();
98  const Int iPicWidth      = sps.getPicWidthInLumaSamples();
99  const Int iPicHeight     = sps.getPicHeightInLumaSamples();
100#endif
101
102  const UInt uiMaxCuWidth  = sps.getMaxCUWidth();
103  const UInt uiMaxCuHeight = sps.getMaxCUHeight();
104
105  m_uhTotalDepth       = uiMaxDepth;
106  m_numPartitionsInCtu = 1<<(m_uhTotalDepth<<1);
107
108  m_uiMinCUWidth       = uiMaxCuWidth  >> m_uhTotalDepth;
109  m_uiMinCUHeight      = uiMaxCuHeight >> m_uhTotalDepth;
110
111  m_numPartInCtuWidth  = uiMaxCuWidth  / m_uiMinCUWidth;  // equivalent to 1<<m_uhTotalDepth
112  m_numPartInCtuHeight = uiMaxCuHeight / m_uiMinCUHeight; // equivalent to 1<<m_uhTotalDepth
113
114  m_frameWidthInCtus   = ( iPicWidth %uiMaxCuWidth  ) ? iPicWidth /uiMaxCuWidth  + 1 : iPicWidth /uiMaxCuWidth;
115  m_frameHeightInCtus  = ( iPicHeight%uiMaxCuHeight ) ? iPicHeight/uiMaxCuHeight + 1 : iPicHeight/uiMaxCuHeight;
116
117  m_numCtusInFrame     = m_frameWidthInCtus * m_frameHeightInCtus;
118  m_pictureCtuArray    = new TComDataCU*[m_numCtusInFrame];
119
120  clearSliceBuffer();
121  allocateNewSlice();
122
123#if ADAPTIVE_QP_SELECTION
124  if (m_pParentARLBuffer == NULL)
125  {
126     m_pParentARLBuffer = new TCoeff[uiMaxCuWidth*uiMaxCuHeight*MAX_NUM_COMPONENT];
127  }
128#endif
129
130  for ( i=0; i<m_numCtusInFrame ; i++ )
131  {
132    m_pictureCtuArray[i] = new TComDataCU;
133    m_pictureCtuArray[i]->create( chromaFormatIDC, m_numPartitionsInCtu, uiMaxCuWidth, uiMaxCuHeight, false, uiMaxCuWidth >> m_uhTotalDepth
134#if ADAPTIVE_QP_SELECTION
135      , m_pParentARLBuffer
136#endif
137      );
138  }
139
140  m_ctuTsToRsAddrMap = new UInt[m_numCtusInFrame+1];
141  m_puiTileIdxMap    = new UInt[m_numCtusInFrame];
142  m_ctuRsToTsAddrMap = new UInt[m_numCtusInFrame+1];
143
144#if N0383_IL_CONSTRAINED_TILE_SETS_SEI
145  m_piTileSetIdxMap = new Int[m_numCtusInFrame];
146  m_pucTileSetType = new UChar[m_numCtusInFrame];
147  m_pbSkippedTileSetFlag = new Bool[m_numCtusInFrame];
148#endif 
149
150  for( i=0; i<m_numCtusInFrame; i++ )
151  {
152    m_ctuTsToRsAddrMap[i] = i;
153    m_ctuRsToTsAddrMap[i] = i;
154  }
155
156  m_saoBlkParams = new SAOBlkParam[m_numCtusInFrame];
157
158
159  xInitTiles();
160  xInitCtuTsRsAddrMaps();
161
162}
163
164Void TComPicSym::destroy()
165{
166  clearSliceBuffer();
167
168  for (Int i = 0; i < m_numCtusInFrame; i++)
169  {
170    m_pictureCtuArray[i]->destroy();
171    delete m_pictureCtuArray[i];
172    m_pictureCtuArray[i] = NULL;
173  }
174  delete [] m_pictureCtuArray;
175  m_pictureCtuArray = NULL;
176
177  delete [] m_ctuTsToRsAddrMap;
178  m_ctuTsToRsAddrMap = NULL;
179
180  delete [] m_puiTileIdxMap;
181  m_puiTileIdxMap = NULL;
182#if N0383_IL_CONSTRAINED_TILE_SETS_SEI
183  delete [] m_piTileSetIdxMap;
184  m_piTileSetIdxMap = NULL;
185  delete [] m_pucTileSetType;
186  m_pucTileSetType = NULL;
187  delete [] m_pbSkippedTileSetFlag;
188  m_pbSkippedTileSetFlag = NULL;
189#endif
190
191  delete [] m_ctuRsToTsAddrMap;
192  m_ctuRsToTsAddrMap = NULL;
193
194  if(m_saoBlkParams)
195  {
196    delete[] m_saoBlkParams; m_saoBlkParams = NULL;
197  }
198
199#if ADAPTIVE_QP_SELECTION
200  delete [] m_pParentARLBuffer;
201  m_pParentARLBuffer = NULL;
202#endif
203}
204
205Void TComPicSym::allocateNewSlice()
206{
207  m_apSlices.push_back(new TComSlice);
208  m_apSlices.back()->setPPS(&m_pps);
209  m_apSlices.back()->setSPS(&m_sps);
210#if SVC_EXTENSION
211  m_apSlices.back()->setVPS(m_vps);
212#endif
213  if (m_apSlices.size()>=2)
214  {
215    m_apSlices.back()->copySliceInfo( m_apSlices[m_apSlices.size()-2] );
216#if SVC_EXTENSION
217    m_apSlices.back()->initSlice( m_apSlices[m_apSlices.size()-1]->getLayerId() );
218#else
219    m_apSlices.back()->initSlice();
220#endif
221  }
222}
223
224Void TComPicSym::clearSliceBuffer()
225{
226  for (UInt i = 0; i < UInt(m_apSlices.size()); i++)
227  {
228    delete m_apSlices[i];
229  }
230  m_apSlices.clear();
231}
232
233Void TComPicSym::xInitCtuTsRsAddrMaps()
234{
235  //generate the Coding Order Map and Inverse Coding Order Map
236  for(Int ctuTsAddr=0, ctuRsAddr=0; ctuTsAddr<getNumberOfCtusInFrame(); ctuTsAddr++, ctuRsAddr = xCalculateNextCtuRSAddr(ctuRsAddr))
237  {
238    setCtuTsToRsAddrMap(ctuTsAddr, ctuRsAddr);
239    setCtuRsToTsAddrMap(ctuRsAddr, ctuTsAddr);
240  }
241  setCtuTsToRsAddrMap(getNumberOfCtusInFrame(), getNumberOfCtusInFrame());
242  setCtuRsToTsAddrMap(getNumberOfCtusInFrame(), getNumberOfCtusInFrame());
243}
244
245Void TComPicSym::xInitTiles()
246{
247  //set NumColumnsMinus1 and NumRowsMinus1
248  setNumTileColumnsMinus1( m_pps.getNumTileColumnsMinus1() );
249  setNumTileRowsMinus1(    m_pps.getNumTileRowsMinus1()    );
250
251  const Int numCols = m_pps.getNumTileColumnsMinus1() + 1;
252  const Int numRows = m_pps.getNumTileRowsMinus1() + 1;
253  const Int numTiles = numRows * numCols;
254
255  // allocate memory for tile parameters
256  m_tileParameters.resize(numTiles);
257
258  if( m_pps.getTileUniformSpacingFlag() )
259  {
260    //set width and height for each (uniform) tile
261    for(Int row=0; row < numRows; row++)
262    {
263      for(Int col=0; col < numCols; col++)
264      {
265        const Int tileIdx = row * numCols + col;
266        m_tileParameters[tileIdx].setTileWidthInCtus(  (col+1)*getFrameWidthInCtus( )/numCols - (col*getFrameWidthInCtus( ))/numCols );
267        m_tileParameters[tileIdx].setTileHeightInCtus( (row+1)*getFrameHeightInCtus()/numRows - (row*getFrameHeightInCtus())/numRows );
268      }
269    }
270  }
271  else
272  {
273    //set the width for each tile
274    for(Int row=0; row < numRows; row++)
275    {
276      Int cumulativeTileWidth = 0;
277      for(Int col=0; col < getNumTileColumnsMinus1(); col++)
278      {
279        m_tileParameters[row * numCols + col].setTileWidthInCtus( m_pps.getTileColumnWidth(col) );
280        cumulativeTileWidth += m_pps.getTileColumnWidth(col);
281      }
282      m_tileParameters[row * numCols + getNumTileColumnsMinus1()].setTileWidthInCtus( getFrameWidthInCtus()-cumulativeTileWidth );
283    }
284
285    //set the height for each tile
286    for(Int col=0; col < numCols; col++)
287    {
288      Int cumulativeTileHeight = 0;
289      for(Int row=0; row < getNumTileRowsMinus1(); row++)
290      {
291        m_tileParameters[row * numCols + col].setTileHeightInCtus( m_pps.getTileRowHeight(row) );
292        cumulativeTileHeight += m_pps.getTileRowHeight(row);
293      }
294      m_tileParameters[getNumTileRowsMinus1() * numCols + col].setTileHeightInCtus( getFrameHeightInCtus()-cumulativeTileHeight );
295    }
296  }
297
298  // Tile size check
299  Int minWidth  = 1;
300  Int minHeight = 1;
301  const Int profileIdc = m_sps.getPTL()->getGeneralPTL()->getProfileIdc();
302  if (  profileIdc == Profile::MAIN || profileIdc == Profile::MAIN10) //TODO: add more profiles to the tile-size check...
303  {
304    if (m_pps.getTilesEnabledFlag())
305    {
306      minHeight = 64  / m_sps.getMaxCUHeight();
307      minWidth  = 256 / m_sps.getMaxCUWidth();
308    }
309  }
310  for(Int row=0; row < numRows; row++)
311  {
312    for(Int col=0; col < numCols; col++)
313    {
314      const Int tileIdx = row * numCols + col;
315      assert (m_tileParameters[tileIdx].getTileWidthInCtus() >= minWidth);
316      assert (m_tileParameters[tileIdx].getTileHeightInCtus() >= minHeight);
317    }
318  }
319
320  //initialize each tile of the current picture
321  for( Int row=0; row < numRows; row++ )
322  {
323    for( Int col=0; col < numCols; col++ )
324    {
325      const Int tileIdx = row * numCols + col;
326
327      //initialize the RightEdgePosInCU for each tile
328      Int rightEdgePosInCTU = 0;
329      for( Int i=0; i <= col; i++ )
330      {
331        rightEdgePosInCTU += m_tileParameters[row * numCols + i].getTileWidthInCtus();
332      }
333      m_tileParameters[tileIdx].setRightEdgePosInCtus(rightEdgePosInCTU-1);
334
335      //initialize the BottomEdgePosInCU for each tile
336      Int bottomEdgePosInCTU = 0;
337      for( Int i=0; i <= row; i++ )
338      {
339        bottomEdgePosInCTU += m_tileParameters[i * numCols + col].getTileHeightInCtus();
340      }
341      m_tileParameters[tileIdx].setBottomEdgePosInCtus(bottomEdgePosInCTU-1);
342
343      //initialize the FirstCUAddr for each tile
344      m_tileParameters[tileIdx].setFirstCtuRsAddr( (m_tileParameters[tileIdx].getBottomEdgePosInCtus() - m_tileParameters[tileIdx].getTileHeightInCtus() + 1) * getFrameWidthInCtus() +
345                                                    m_tileParameters[tileIdx].getRightEdgePosInCtus()  - m_tileParameters[tileIdx].getTileWidthInCtus()  + 1);
346    }
347  }
348
349  Int  columnIdx = 0;
350  Int  rowIdx = 0;
351
352  //initialize the TileIdxMap
353  for( Int i=0; i<m_numCtusInFrame; i++)
354  {
355    for( Int col=0; col < numCols; col++)
356    {
357      if(i % getFrameWidthInCtus() <= m_tileParameters[col].getRightEdgePosInCtus())
358      {
359        columnIdx = col;
360        break;
361      }
362    }
363    for(Int row=0; row < numRows; row++)
364    {
365      if(i / getFrameWidthInCtus() <= m_tileParameters[row*numCols].getBottomEdgePosInCtus())
366      {
367        rowIdx = row;
368        break;
369      }
370    }
371    m_puiTileIdxMap[i] = rowIdx * numCols + columnIdx;
372  }
373}
374UInt TComPicSym::xCalculateNextCtuRSAddr( UInt currCtuRsAddr )
375{
376  UInt  nextCtuRsAddr;
377
378  //get the tile index for the current CTU
379  const UInt uiTileIdx = getTileIdxMap(currCtuRsAddr);
380
381  //get the raster scan address for the next CTU
382  if( currCtuRsAddr % m_frameWidthInCtus == getTComTile(uiTileIdx)->getRightEdgePosInCtus() && currCtuRsAddr / m_frameWidthInCtus == getTComTile(uiTileIdx)->getBottomEdgePosInCtus() )
383  //the current CTU is the last CTU of the tile
384  {
385    if(uiTileIdx+1 == getNumTiles())
386    {
387      nextCtuRsAddr = m_numCtusInFrame;
388    }
389    else
390    {
391      nextCtuRsAddr = getTComTile(uiTileIdx+1)->getFirstCtuRsAddr();
392    }
393  }
394  else //the current CTU is not the last CTU of the tile
395  {
396    if( currCtuRsAddr % m_frameWidthInCtus == getTComTile(uiTileIdx)->getRightEdgePosInCtus() )  //the current CTU is on the rightmost edge of the tile
397    {
398      nextCtuRsAddr = currCtuRsAddr + m_frameWidthInCtus - getTComTile(uiTileIdx)->getTileWidthInCtus() + 1;
399    }
400    else
401    {
402      nextCtuRsAddr = currCtuRsAddr + 1;
403    }
404  }
405
406  return nextCtuRsAddr;
407}
408
409Void TComPicSym::deriveLoopFilterBoundaryAvailibility(Int ctuRsAddr,
410                                                      Bool& isLeftAvail,
411                                                      Bool& isRightAvail,
412                                                      Bool& isAboveAvail,
413                                                      Bool& isBelowAvail,
414                                                      Bool& isAboveLeftAvail,
415                                                      Bool& isAboveRightAvail,
416                                                      Bool& isBelowLeftAvail,
417                                                      Bool& isBelowRightAvail
418                                                      )
419{
420
421  isLeftAvail      = (ctuRsAddr % m_frameWidthInCtus != 0);
422  isRightAvail     = (ctuRsAddr % m_frameWidthInCtus != m_frameWidthInCtus-1);
423  isAboveAvail     = (ctuRsAddr >= m_frameWidthInCtus );
424  isBelowAvail     = (ctuRsAddr <  m_numCtusInFrame - m_frameWidthInCtus);
425  isAboveLeftAvail = (isAboveAvail && isLeftAvail);
426  isAboveRightAvail= (isAboveAvail && isRightAvail);
427  isBelowLeftAvail = (isBelowAvail && isLeftAvail);
428  isBelowRightAvail= (isBelowAvail && isRightAvail);
429
430  Bool isLoopFiltAcrossTilePPS = getCtu(ctuRsAddr)->getSlice()->getPPS()->getLoopFilterAcrossTilesEnabledFlag();
431
432  {
433    TComDataCU* ctuCurr  = getCtu(ctuRsAddr);
434    TComDataCU* ctuLeft  = isLeftAvail ?getCtu(ctuRsAddr-1):NULL;
435    TComDataCU* ctuRight = isRightAvail?getCtu(ctuRsAddr+1):NULL;
436    TComDataCU* ctuAbove = isAboveAvail?getCtu(ctuRsAddr-m_frameWidthInCtus):NULL;
437    TComDataCU* ctuBelow = isBelowAvail?getCtu(ctuRsAddr+m_frameWidthInCtus):NULL;
438    TComDataCU* ctuAboveLeft  = isAboveLeftAvail ? getCtu(ctuRsAddr-m_frameWidthInCtus-1):NULL;
439    TComDataCU* ctuAboveRight = isAboveRightAvail? getCtu(ctuRsAddr-m_frameWidthInCtus+1):NULL;
440    TComDataCU* ctuBelowLeft  = isBelowLeftAvail ? getCtu(ctuRsAddr+m_frameWidthInCtus-1):NULL;
441    TComDataCU* ctuBelowRight = isBelowRightAvail? getCtu(ctuRsAddr+m_frameWidthInCtus+1):NULL;
442
443    {
444      //left
445      if(ctuLeft != NULL)
446      {
447        isLeftAvail = (ctuCurr->getSlice()->getSliceCurStartCtuTsAddr() != ctuLeft->getSlice()->getSliceCurStartCtuTsAddr())?ctuCurr->getSlice()->getLFCrossSliceBoundaryFlag():true;
448      }
449      //above
450      if(ctuAbove != NULL)
451      {
452        isAboveAvail = (ctuCurr->getSlice()->getSliceCurStartCtuTsAddr() != ctuAbove->getSlice()->getSliceCurStartCtuTsAddr())?ctuCurr->getSlice()->getLFCrossSliceBoundaryFlag():true;
453      }
454      //right
455      if(ctuRight != NULL)
456      {
457        isRightAvail = (ctuCurr->getSlice()->getSliceCurStartCtuTsAddr() != ctuRight->getSlice()->getSliceCurStartCtuTsAddr())?ctuRight->getSlice()->getLFCrossSliceBoundaryFlag():true;
458      }
459      //below
460      if(ctuBelow != NULL)
461      {
462        isBelowAvail = (ctuCurr->getSlice()->getSliceCurStartCtuTsAddr() != ctuBelow->getSlice()->getSliceCurStartCtuTsAddr())?ctuBelow->getSlice()->getLFCrossSliceBoundaryFlag():true;
463      }
464      //above-left
465      if(ctuAboveLeft != NULL)
466      {
467        isAboveLeftAvail = (ctuCurr->getSlice()->getSliceCurStartCtuTsAddr() != ctuAboveLeft->getSlice()->getSliceCurStartCtuTsAddr())?ctuCurr->getSlice()->getLFCrossSliceBoundaryFlag():true;
468      }
469      //below-right
470      if(ctuBelowRight != NULL)
471      {
472        isBelowRightAvail = (ctuCurr->getSlice()->getSliceCurStartCtuTsAddr() != ctuBelowRight->getSlice()->getSliceCurStartCtuTsAddr())?ctuBelowRight->getSlice()->getLFCrossSliceBoundaryFlag():true;
473      }
474
475      //above-right
476      if(ctuAboveRight != NULL)
477      {
478        Int curSliceStartTsAddr  = ctuCurr->getSlice()->getSliceCurStartCtuTsAddr();
479        Int aboveRightSliceStartTsAddr = ctuAboveRight->getSlice()->getSliceCurStartCtuTsAddr();
480
481        isAboveRightAvail = (curSliceStartTsAddr == aboveRightSliceStartTsAddr)?(true):
482          (
483          (curSliceStartTsAddr > aboveRightSliceStartTsAddr)?(ctuCurr->getSlice()->getLFCrossSliceBoundaryFlag())
484          :(ctuAboveRight->getSlice()->getLFCrossSliceBoundaryFlag())
485          );
486      }
487      //below-left
488      if(ctuBelowLeft != NULL)
489      {
490        Int curSliceStartTsAddr       = ctuCurr->getSlice()->getSliceCurStartCtuTsAddr();
491        Int belowLeftSliceStartTsAddr = ctuBelowLeft->getSlice()->getSliceCurStartCtuTsAddr();
492
493        isBelowLeftAvail = (curSliceStartTsAddr == belowLeftSliceStartTsAddr)?(true):
494          (
495          (curSliceStartTsAddr > belowLeftSliceStartTsAddr)?(ctuCurr->getSlice()->getLFCrossSliceBoundaryFlag())
496          :(ctuBelowLeft->getSlice()->getLFCrossSliceBoundaryFlag())
497          );
498      }
499    }
500
501    if(!isLoopFiltAcrossTilePPS)
502    {
503      isLeftAvail      = (!isLeftAvail      ) ?false:(getTileIdxMap( ctuLeft->getCtuRsAddr()         ) == getTileIdxMap( ctuRsAddr ));
504      isAboveAvail     = (!isAboveAvail     ) ?false:(getTileIdxMap( ctuAbove->getCtuRsAddr()        ) == getTileIdxMap( ctuRsAddr ));
505      isRightAvail     = (!isRightAvail     ) ?false:(getTileIdxMap( ctuRight->getCtuRsAddr()        ) == getTileIdxMap( ctuRsAddr ));
506      isBelowAvail     = (!isBelowAvail     ) ?false:(getTileIdxMap( ctuBelow->getCtuRsAddr()        ) == getTileIdxMap( ctuRsAddr ));
507      isAboveLeftAvail = (!isAboveLeftAvail ) ?false:(getTileIdxMap( ctuAboveLeft->getCtuRsAddr()    ) == getTileIdxMap( ctuRsAddr ));
508      isAboveRightAvail= (!isAboveRightAvail) ?false:(getTileIdxMap( ctuAboveRight->getCtuRsAddr()   ) == getTileIdxMap( ctuRsAddr ));
509      isBelowLeftAvail = (!isBelowLeftAvail ) ?false:(getTileIdxMap( ctuBelowLeft->getCtuRsAddr()    ) == getTileIdxMap( ctuRsAddr ));
510      isBelowRightAvail= (!isBelowRightAvail) ?false:(getTileIdxMap( ctuBelowRight->getCtuRsAddr()   ) == getTileIdxMap( ctuRsAddr ));
511    }
512  }
513
514}
515
516
517TComTile::TComTile()
518: m_tileWidthInCtus     (0)
519, m_tileHeightInCtus    (0)
520, m_rightEdgePosInCtus  (0)
521, m_bottomEdgePosInCtus (0)
522, m_firstCtuRsAddr      (0)
523{
524}
525
526TComTile::~TComTile()
527{
528}
529//! \}
Note: See TracBrowser for help on using the repository browser.