constCodingUnit*cuBelowLeft=cs.getCURestricted(pos.offset(-1,cs.pcv->minCUHeight>>getChannelTypeScaleY(chType,cs.pcv->chrFormat)),curSliceIdx,curTileIdx,chType);// should use actual block size instead of minCU size
constCodingUnit*cuAboveRight=cs.getCURestricted(pos.offset(cs.pcv->minCUWidth>>getChannelTypeScaleX(chType,cs.pcv->chrFormat),-1),curSliceIdx,curTileIdx,chType);// should use actual block size instead of minCU size
constCodingUnit*cuBelowLeft=cs.getCURestricted(pos.offset(-1,cs.pcv->minCUHeight>>getChannelTypeScaleY(chType,cs.pcv->chrFormat)),curSliceIdx,chType);// should use actual block size instead of minCU size
constCodingUnit*cuAboveRight=cs.getCURestricted(pos.offset(cs.pcv->minCUWidth>>getChannelTypeScaleX(chType,cs.pcv->chrFormat),-1),curSliceIdx,chType);// should use actual block size instead of minCU size