trueMotion static method

void trueMotion(
  1. InputBuffer dst,
  2. int size
)

Implementation

static void trueMotion(InputBuffer dst, int size) {
  var di = 0;
  const top = -VP8.BPS; // dst +
  final clip0 = 255 - dst[top - 1]; // clip1 +

  for (var y = 0; y < size; ++y) {
    final clip = clip0 + dst[di - 1];
    for (var x = 0; x < size; ++x) {
      dst[di + x] = clip1[clip + dst[top + x]];
    }

    di += VP8.BPS;
  }
}