Rework enc/dec mismatch detection
authorJingning Han <jingning@google.com>
Mon, 27 Aug 2018 22:22:24 +0000 (15:22 -0700)
committerJingning Han <jingning@google.com>
Mon, 27 Aug 2018 23:40:45 +0000 (16:40 -0700)
commit0d203054b3f51eb42a36895dc70c0b2ce599df90
tree525de19e209cc41692c686c2212ef14e1c587af6
parentb2f9b627e3ed2db23b6f856f4307e97879f68575
Rework enc/dec mismatch detection

The previous enc/dec mismatch detection assumes the previously
reconstructed frame would always stay at frame buffer pool index
at 0. It could hence cause certain delay in enc/dec mismatch
detection when the immediate reconstruction frame is not yet
propagated to index 0 in the buffer map pool.

This change always keeps the latest decoded show frame buffer
index and directly gets the reconstructed frame from encoder and
decoder buffer pools to check for mismatch.

Change-Id: If53092cbc42ab78d55af5b83f12a489fc362f3ae
vp9/common/vp9_onyxc_int.h
vp9/decoder/vp9_decoder.c
vp9/encoder/vp9_encoder.c
vp9/vp9_cx_iface.c
vp9/vp9_dx_iface.c