summaryrefslogtreecommitdiff
path: root/lib/igt_frame.h
diff options
context:
space:
mode:
authorPaul Kocialkowski <paul.kocialkowski@linux.intel.com>2017-07-20 18:13:36 +0300
committerLyude <lyude@redhat.com>2017-07-20 13:12:08 -0400
commit8cf32fe06c8f54bca11c485ccc1cc3899f9d81db (patch)
tree07cdd920a0f621b1333e4bb0e63c7b83be6db55b /lib/igt_frame.h
parentc42ab4d23f4bafecf51574f538db8f5142519523 (diff)
lib/igt_frame: Add support for analog frame comparison testing
This adds support for analog frame comparison check, as used in VGA. Since VGA uses a DAC-ADC chain, its data cannot be expected to be pixel perfect. Thus, it is impossible to uses a CRC check and full frames have to be analyzed instead. Such an analysis is implemented, based on both an absolute error threshold and a correlation with the expected error trend for a DAC-ADC chain. It was tested with a couple encoders and provides reliable error detection with few false positives. Signed-off-by: Paul Kocialkowski <paul.kocialkowski@linux.intel.com> Reviewed-by: Lyude <lyude@redhat.com>
Diffstat (limited to 'lib/igt_frame.h')
-rw-r--r--lib/igt_frame.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/igt_frame.h b/lib/igt_frame.h
index ec6a1643..1d9bbf6a 100644
--- a/lib/igt_frame.h
+++ b/lib/igt_frame.h
@@ -39,5 +39,7 @@ void igt_write_compared_frames_to_png(cairo_surface_t *reference,
cairo_surface_t *capture,
const char *reference_suffix,
const char *capture_suffix);
+bool igt_check_analog_frame_match(cairo_surface_t *reference,
+ cairo_surface_t *capture);
#endif