现在已经可以在下面这个函数下获得当前LCU的所有4X4块的深度信息,但是怎么获得当前LCU的上面一个LCU的信息,乃至左上角的信息呢??这个是很麻烦的问题,还待持续解决中。。。
// analysis of CU
xCompressCU( m_ppcBestCU[0], m_ppcTempCU[0], 0 );
在Void TEncSlice::compressSlice( TComPic*& rpcPic )函数中有关于TR的信息,也许这是一个突破口。
UInt TComDataCU::getCtxSplitFlag( UInt uiAbsPartIdx, UInt uiDepth )
{
TComDataCU* pcTempCU;
UInt uiTempPartIdx;
UInt uiCtx;
// Get left split flag
#if DEPENDENT_SLICES
Bool bDepSliceRestriction = ( !m_pcSlice->getPPS()->getDependentSliceEnabledFlag());
pcTempCU = getPULeft( uiTempPartIdx, m_uiAbsIdxInLCU + uiAbsPartIdx, true, bDepSliceRestriction );
#else
pcTempCU = getPULeft( uiTempPart