avision: Fix line numbers in debug message for software scaling

Print line numbers that are relative to the entire output, rather than
the current stripe.
escl-add-user-and-password
David Ward 2022-03-27 16:51:30 -04:00
rodzic 1277612c5b
commit c7a33643f3
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -7999,6 +7999,9 @@ reader_process (void *data)
break; break;
} }
DBG (8, "reader_process: out line: %d <- from: %d-%d\n",
line, sy, syy);
/* convert to offset in current stripe */ /* convert to offset in current stripe */
sy -= hw_line; sy -= hw_line;
syy -= hw_line; syy -= hw_line;
@ -8008,9 +8011,6 @@ reader_process (void *data)
sy = -1; sy = -1;
} }
DBG (8, "reader_process: out line: %d <- from: %d-%d\n",
line, sy, syy);
for (x = 0; x < s->params.pixels_per_line; ++x) { for (x = 0; x < s->params.pixels_per_line; ++x) {
const double bx = (-1.0 + s->avdimen.hw_pixels_per_line) * x / s->params.pixels_per_line; const double bx = (-1.0 + s->avdimen.hw_pixels_per_line) * x / s->params.pixels_per_line;
const int sx = (int)floor(bx); const int sx = (int)floor(bx);