HighLevelAnalyzer (HLA): detection of/ hook for final frame?

Hi all!

I am writing a HLA and I’d like to emit some statistics via to terminal (via print() calls) when having processed the final frame. Statistics are built up while processing frame after frame and I’d only like to emit them once, when done. Otherwise processing might slow down significantly and the log is likely to be flooded very much.

I don’t think that there’s a way of detecting the final frame in decode() but I may be wrong.

Is there some other method I am not aware of which I could use as a hook for that functionality?

Of course, this would only work for offline decoding and not decoding while recording - but that’d obviously be fine for my use case.

Sure, I could work around this by adding some post-processing on data that’s exported, but it’d be nice to have it all together in a single place.

Regards,
Mäh

@maehw Thanks for writing in! After a quick review, I believe you’re right in that we don’t expose any sort of flags that would help indicate that all data has been processed by an HLA. I’ll double check this to be sure however.

In the meantime, can you let me know what kind of statistics you were interested in printing out? Perhaps there may be some workarounds we can suggest.