remove the !WEBP_REFERENCE_IMPLEMENTATION tweak in Put8x8uv
There's no speed diff, so better remove it altogether Reported in https://code.google.com/p/webp/issues/detail?id=215 Change-Id: I991330de18bec340029d6df5fed0dfb4337e4662
This commit is contained in:
parent
d713a69644
commit
8f6f8c5dde
@ -417,14 +417,9 @@ static void HE8uv(uint8_t *dst) { // horizontal
|
|||||||
// helper for chroma-DC predictions
|
// helper for chroma-DC predictions
|
||||||
static WEBP_INLINE void Put8x8uv(uint8_t value, uint8_t* dst) {
|
static WEBP_INLINE void Put8x8uv(uint8_t value, uint8_t* dst) {
|
||||||
int j;
|
int j;
|
||||||
#ifndef WEBP_REFERENCE_IMPLEMENTATION
|
|
||||||
const uint64_t v = (uint64_t)value * 0x0101010101010101ULL;
|
|
||||||
for (j = 0; j < 8; ++j) {
|
for (j = 0; j < 8; ++j) {
|
||||||
*(uint64_t*)(dst + j * BPS) = v;
|
memset(dst + j * BPS, value, 8);
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
for (j = 0; j < 8; ++j) memset(dst + j * BPS, value, 8);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void DC8uv(uint8_t *dst) { // DC
|
static void DC8uv(uint8_t *dst) { // DC
|
||||||
|
Loading…
x
Reference in New Issue
Block a user