v4l2_stateful_decoder: detect displayed frames and count number of frames

This CL extracts show_frame info from vp9 frame header
to decide whether a given frame is a displayed frame
or an non-displayed frame. This is needed because
md5sum values need to be computed only for
displayed frames. In addition, this CL fixes an issue
where there were missing frames in the end.
Algorithm is updated to compute number of frames,
number of displayed and non-displayed frames.

BUG=b:181606062
TEST=v4l2_stateful_decoder --file=./crowd_run_1080X512_fr30_bd8_8buf_l3_20210312.ivf -w on trogdor

Change-Id: Ia2808ae4dcd20053aa2f2e96a83861ec2645c155
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/drm-tests/+/2869125
Tested-by: Steve Cho <stevecho@chromium.org>
Reviewed-by: Miguel Casas <mcasas@chromium.org>
Commit-Queue: Steve Cho <stevecho@chromium.org>
1 file changed