Changeset 1361 in SHVCSoftware
- Timestamp:
- 22 Jul 2015, 04:11:11 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibDecoder/TDecCu.cpp
r1335 r1361 106 106 m_ppcCU = new TComDataCU*[m_uiMaxDepth-1]; 107 107 108 UInt uiNumPartitions;109 108 for ( UInt ui = 0; ui < m_uiMaxDepth-1; ui++ ) 110 109 { 111 uiNumPartitions = 1<<( ( m_uiMaxDepth - ui - 1 )<<1 );110 UInt uiNumPartitions = 1<<( ( m_uiMaxDepth - ui - 1 )<<1 ); 112 111 UInt uiWidth = uiMaxWidth >> ui; 113 112 UInt uiHeight = uiMaxHeight >> ui; 113 114 // The following arrays (m_ppcYuvResi, m_ppcYuvReco and m_ppcCU) are only required for CU depths 115 // although data is allocated for all possible depths of the CU/TU tree except the last. 116 // Since the TU tree will always include at least one additional depth greater than the CU tree, 117 // there will be enough entries for these arrays. 118 // (Section 7.4.3.2: "The CVS shall not contain data that result in (Log2MinTrafoSize) MinTbLog2SizeY 119 // greater than or equal to MinCbLog2SizeY") 120 // TODO: tidy the array allocation given the above comment. 114 121 115 122 m_ppcYuvResi[ui] = new TComYuv; m_ppcYuvResi[ui]->create( uiWidth, uiHeight, chromaFormatIDC );
Note: See TracChangeset for help on using the changeset viewer.