Make Chameleon video image comparison less error prone.

Chameleon captures frames very fast. Sometimes we get identical
frames following one another. We have been doing a frame by frame
comparison, demanding the exact same order of frames.
This is very error prone. To fix this, use a unique set of consecutive
frames checksums. During a test run, walk the frame buffer for searching
for this sequence of frames. If there are more than one frame that have the
same checksum, count this as one and get the next different checksum.

I will add a control file for jerry.

BUG=chromium:418217
TEST=Ran local tests on a jerry.

Change-Id: Iebb3a0ab40d8f72b2bc81b4f9296e1a040f1ca27
Reviewed-on: https://chromium-review.googlesource.com/269412
Reviewed-by: Tom Tam <waihong@google.com>
Commit-Queue: Mussa Kiroga <mussa@chromium.org>
Tested-by: Mussa Kiroga <mussa@chromium.org>
8 files changed