mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-18 06:49:53 +02:00
remove unused 'has_alpha' from VP8GetInfo() signature
alpha information is not to be found at RIFF chunks level, not in the VP8 bitstream (that was a tmp hack) Change-Id: Idd1629c696b03c26f6f30650d7216f627f1761df
This commit is contained in:
@ -166,7 +166,7 @@ static WebPImageInfo* CreateImageInfo(uint32_t x_offset, uint32_t y_offset,
|
||||
int height;
|
||||
WebPImageInfo* image_info = NULL;
|
||||
|
||||
if (!VP8GetInfo(data, size, size, &width, &height, NULL)) {
|
||||
if (!VP8GetInfo(data, size, size, &width, &height)) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@ -1298,7 +1298,7 @@ static WebPMuxError GetImageCanvasHeightWidth(const WebPMux* const mux,
|
||||
const WebPChunk* const image_chunk = wpi->vp8_;
|
||||
assert(image_chunk != NULL);
|
||||
if (VP8GetInfo(image_chunk->data_, image_chunk->payload_size_,
|
||||
image_chunk->payload_size_, &w, &h, NULL)) {
|
||||
image_chunk->payload_size_, &w, &h)) {
|
||||
*width = w;
|
||||
*height = h;
|
||||
}
|
||||
|
Reference in New Issue
Block a user