问题
I want to extract CU/PU/TU partitioning data from HEVC HM encoder. I could extract CU/PU partitioning information using getHeight/getWidth/getPartitionSize functions in TComDataCU class. But, don't know how to access TU partitioning information. Please help.
回答1:
You can do it easily on the decoder side.
You need to find the function parseCoeffNxN and then access the TU size with uiWidth and uiHeight.
Start with this simple test and then give feedbacks here. If there's a problem, we will figure out.
回答2:
On the encoder side, you should do the same thing as the decoder side, but in the codeCoeffNxN function instead of parseCoeffNxN. The only difficulty is that you should differentiate between the times you call this function during RDO and encoding. This problem and its solution are explained here.
来源:https://stackoverflow.com/questions/51395870/extract-tu-partitioning-information-in-hevc-reference-software-16-18