mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-26 05:38:22 +01:00
Merge "Alignment fix" into 0.2.0
This commit is contained in:
commit
f06c1d8f7b
@ -616,7 +616,7 @@ static WEBP_INLINE HTreeGroup* GetHtreeGroupForPos(VP8LMetadata* const hdr,
|
|||||||
typedef void (*ProcessRowsFunc)(VP8LDecoder* const dec, int row);
|
typedef void (*ProcessRowsFunc)(VP8LDecoder* const dec, int row);
|
||||||
|
|
||||||
static void ApplyInverseTransforms(VP8LDecoder* const dec, int num_rows,
|
static void ApplyInverseTransforms(VP8LDecoder* const dec, int num_rows,
|
||||||
const uint32_t* const rows) {
|
const uint32_t* const rows) {
|
||||||
int n = dec->next_transform_;
|
int n = dec->next_transform_;
|
||||||
const int cache_pixs = dec->width_ * num_rows;
|
const int cache_pixs = dec->width_ * num_rows;
|
||||||
const int start_row = dec->last_row_;
|
const int start_row = dec->last_row_;
|
||||||
|
@ -989,7 +989,7 @@ void VP8LInverseTransform(const VP8LTransform* const transform,
|
|||||||
memmove(src, out, in_stride * sizeof(*src));
|
memmove(src, out, in_stride * sizeof(*src));
|
||||||
ColorIndexInverseTransform(transform, row_start, row_end, src, out);
|
ColorIndexInverseTransform(transform, row_start, row_end, src, out);
|
||||||
} else {
|
} else {
|
||||||
ColorIndexInverseTransform(transform, row_start, row_end, in, out);
|
ColorIndexInverseTransform(transform, row_start, row_end, in, out);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user