filters_sse2,cosmetics: shorten some long lines

Change-Id: Ifd8ddec50821aba175d41237df18e41b9ac6c7d4
This commit is contained in:
James Zern 2019-07-01 12:17:43 -07:00
parent a277d197a2
commit 92dbf23775

View File

@ -163,8 +163,8 @@ static void GradientPredictDirect_SSE2(const uint8_t* const row,
_mm_storel_epi64((__m128i*)(out + i), H); _mm_storel_epi64((__m128i*)(out + i), H);
} }
for (; i < length; ++i) { for (; i < length; ++i) {
out[i] = (uint8_t)(row[i] - const int delta = GradientPredictor_SSE2(row[i - 1], top[i], top[i - 1]);
GradientPredictor_SSE2(row[i - 1], top[i], top[i - 1])); out[i] = (uint8_t)(row[i] - delta);
} }
} }
@ -297,9 +297,8 @@ static void GradientPredictInverse_SSE2(const uint8_t* const in,
_mm_storel_epi64((__m128i*)&row[i], out); _mm_storel_epi64((__m128i*)&row[i], out);
} }
for (; i < length; ++i) { for (; i < length; ++i) {
row[i] = const int delta = GradientPredictor_SSE2(row[i - 1], top[i], top[i - 1]);
(uint8_t)(in[i] + row[i] = (uint8_t)(in[i] + delta);
GradientPredictor_SSE2(row[i - 1], top[i], top[i - 1]));
} }
} }
} }