Rosh
Rosh

Reputation: 273

HEVC CU level profiling

I would like to obtain the CU/PU level info on the HEVC HM decoder. I also want to get some stats to see how much on average it takes to decode diffferent types of CUs (intra, inter - uni/bi directional).

The exisiting debug in the HM coder is not appropriate, as it only gives timing at the slice level (am I wrong ?)

I tried putting in debug and timing info in TDecCu::xDecodeCU (time of exit - time of entry into the function), and it seems to be okay (even though I wonder if the recursive function calls would mean i'm missing out on some CUs.)

I was wondering if the above is sufficient to get the complete time of decoding a single CU or do i need to profile TDecCu::xDecompressCU as well ?? (as this is where the entropy decoding happens ?)

Below is some code I have modified to get the xdecodecu time (very minimal change to existing HM code):

http://pastie.org/private/tbpnzimz7h87fsiel0jdzq

Also if anyone has done any instrumentation on the HM code to get CU level stats, please leave a comment.

Many thanks !

Upvotes: 0

Views: 195

Answers (1)

xiangjian Wu
xiangjian Wu

Reputation: 116

You can just insert the code of calculating time at start of decoding Cu and the end of Cu.

Upvotes: 1

Related Questions