While debugging HM 16.2's decoding, I see CUs that look like they have been subdivided into PUs. Each PU has the same MV. Allowing different MVs within a CU is the only reason I (currently) know to split a CU into PUs.
I wonder if I am misinterpreting the CTU data structure (TComDataCU
)*. Can anyone help me with this? Do you know if there are other reasons to split a CU into PUs?
Related questions:
- Why does
TComDataCU
split a 64x64 CTU split into 256 parts? (I initially expected to see 64 parts, one part for each of the smallest possible 8x8 CUs. Now I assume that the additional parts allow for smaller PUs/TUs.) - Is it correct to interpret
TComMv::getHor()
andTCovMv::getVer()
directly as an MV, or must some additional information (e.g. merge/skip info, deltas, etc..) be incorporated to get a "true" MV?
* For a TComDataCU*
called ctu
, I see
ctu->getTotalNumPart() == 256
ctu->getDepth(48) == 3
ctu->getPredictionMode(48) == INTER_MODE
ctu->getPartitionSize(48) == Nx2N
and where mvf = ctu->getCUMvField(REF_PIC_LIST_0)
(Only uni-prediction is used, with a simple GOP: I <- P <- P <- P ...),
mvf->getMv(48).getHor() == mvf->getMv(50).getHor() &&
mvf->getMv(49).getHor() == mvf->getMv(51).getHor() &&
mvf->getMv(48).getVer() == mvf->getMv(50).getVer() &&
mvf->getMv(49).getVer() == mvf->getMv(51).getVer() &&
mvf->getMv(48).getHor() == mvf->getMv(49).getHor() &&
mvf->getMv(48).getVer() == mvf->getMv(49).getVer()
Linking these observations to my question, for this CU I understand that the CU has two PUs encompassing indices 48,50 and 49,51 like
+--+--+ |48|49| +--+--+ |50|51| +--+--+
and so I expect
mvf->getMv(48).getHor() == mvf->getMv(50).getHor() &&
mvf->getMv(49).getHor() == mvf->getMv(51).getHor() &&
mvf->getMv(48).getVer() == mvf->getMv(50).getVer() &&
mvf->getMv(49).getVer() == mvf->getMv(51).getVer() && (
mvf->getMv(48).getHor() != mvf->getMv(49).getHor() ||
mvf->getMv(48).getVer() != mvf->getMv(49).getVer()
)
Why do the two PUs (appear to) have identical MVs?