mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-15 05:19:48 +02:00
Compare commits
4 Commits
v0.3.1-rc1
...
v0.3.1-rc2
Author | SHA1 | Date | |
---|---|---|---|
2a04b034f7 | |||
7288950b88 | |||
2e377b53b0 | |||
ad9e42a6fe |
@ -1,3 +1,7 @@
|
||||
7288950 Regression fix for alpha channels using color cache:
|
||||
2e377b5 wicdec: silence a format warning
|
||||
ad9e42a muxedit: silence some uninitialized warnings
|
||||
825e73b update ChangeLog
|
||||
abf6f69 update NEWS
|
||||
5a92c1a bump version to 0.3.1
|
||||
67bc353 Revert "add WebPBlendAlpha() function to blend colors against background"
|
||||
|
@ -128,7 +128,7 @@ static HRESULT ExtractICCP(IWICImagingFactory* const factory,
|
||||
&size));
|
||||
if (SUCCEEDED(hr) && size != iccp->size) {
|
||||
fprintf(stderr, "Warning! ICC profile size (%u) != expected (%u)\n",
|
||||
size, iccp->size);
|
||||
size, (uint32_t)iccp->size);
|
||||
iccp->size = size;
|
||||
}
|
||||
break;
|
||||
|
@ -1142,11 +1142,12 @@ int VP8LDecodeAlphaImageStream(int width, int height, const uint8_t* const data,
|
||||
dec->action_ = READ_HDR;
|
||||
if (!DecodeImageStream(width, height, 1, dec, NULL)) goto Err;
|
||||
|
||||
// Special case: if alpha data contains only the color indexing transform
|
||||
// (a frequent case), we will use DecodeAlphaData() method that only needs
|
||||
// allocation of 1 byte per pixel (alpha channel).
|
||||
// Special case: if alpha data uses only the color indexing transform and
|
||||
// doesn't use color cache (a frequent case), we will use DecodeAlphaData()
|
||||
// method that only needs allocation of 1 byte per pixel (alpha channel).
|
||||
if (dec->next_transform_ == 1 &&
|
||||
dec->transforms_[0].type_ == COLOR_INDEXING_TRANSFORM) {
|
||||
dec->transforms_[0].type_ == COLOR_INDEXING_TRANSFORM &&
|
||||
dec->hdr_.color_cache_size_ == 0) {
|
||||
bytes_per_pixel = sizeof(uint8_t);
|
||||
}
|
||||
|
||||
|
@ -477,7 +477,7 @@ static WebPMuxError GetImageCanvasWidthHeight(
|
||||
int64_t image_area = 0;
|
||||
// Aggregate the bounding box for animation frames & fragmented images.
|
||||
for (; wpi != NULL; wpi = wpi->next_) {
|
||||
int x_offset, y_offset, duration, w, h;
|
||||
int x_offset = 0, y_offset = 0, duration = 0, w = 0, h = 0;
|
||||
const WebPMuxError err = GetImageInfo(wpi, &x_offset, &y_offset,
|
||||
&duration, &w, &h);
|
||||
const int max_x_pos = x_offset + w;
|
||||
|
Reference in New Issue
Block a user