From 391e73c1f34a4b8f5ad3b682545b9ff7eb82ef42 Mon Sep 17 00:00:00 2001 From: Ahmet Inan Date: Wed, 1 May 2024 08:11:36 +0200 Subject: [PATCH] draw black bars around picture change signal --- app/src/main/java/xdsopl/robot36/Decoder.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/xdsopl/robot36/Decoder.java b/app/src/main/java/xdsopl/robot36/Decoder.java index fd77f41..08d2c23 100644 --- a/app/src/main/java/xdsopl/robot36/Decoder.java +++ b/app/src/main/java/xdsopl/robot36/Decoder.java @@ -331,8 +331,11 @@ public class Decoder { boolean pictureChanged = lastMode != mode || Math.abs(lastScanLineSamples - scanLineSamples) > scanLineToleranceSamples || Math.abs(lastSyncPulseIndex + scanLineSamples - pulses[pulses.length - 1]) > syncPulseToleranceSamples; - if (pictureChanged) - drawLines(0xff0000ff, 8); + if (pictureChanged) { + drawLines(0xff000000, 10); + drawLines(0xff00ffff, 8); + drawLines(0xff000000, 10); + } if (pulses[0] >= scanLineSamples && pictureChanged) { int endPulse = pulses[0]; int extrapolate = endPulse / scanLineSamples;