Chameleon: fix image_generator.get_extrema()

Hardware mirror may add blank strips on top/bottom or both sides to
the output video signal. When that happens, we may make wrong decision
about whether DUT outputs at the TV level and it will results in
failures when running display tests in mirrored mode.

Currently we are lucky that display_Resolution.mirrored runs correctly
on peach_pi but the problem surfaces when running the test on samus
via DP.

This change scans the vertical line in the middle to get extrema
instead of just at two fixed positions.

BUG=chromium:469556
TEST=successfully ran display_Resolution.mirrored on samus, peach_pi
and peppy with related change 19228e3.

Change-Id: I425262d4e467783c4d85949e410042b1a4e11cf4
Reviewed-on: https://chromium-review.googlesource.com/261818
Tested-by: Hung-ying Tyan <tyanh@chromium.org>
Reviewed-by: Wai-Hong Tam <waihong@chromium.org>
Commit-Queue: Hung-ying Tyan <tyanh@chromium.org>
1 file changed