+ // TODO: maybe use these values instead of 10-bit?
+ byte_fast = fast_10bit >> 2;
+ byte_slow = slow_10bit >> 2;
+
+ if (byte_slow > byte_fast) {
+ drop = byte_slow - byte_fast;
+ if (drop > ambient_drop)
+ ambient_drop = drop;
+ }
+
+ if (ambient_min > byte_slow)
+ ambient_min = byte_slow;
+
+ if (ambient_max < byte_slow)
+ ambient_max = byte_slow;