mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-14 21:09:55 +02:00
Change in lossless bit-stream.
Change the lossless signature to 0x2f Add 1 bit indicator for 'droppable (or trivial) alpha)'. Add 3 bit lossless version (for future extension like yuv support). Change the sub-resolution information to 3 bits implying range [2 .. 9] Change-Id: Ic7b8c069240bbcd326cf5d5d4cd2dde8667851e2
This commit is contained in:
@ -123,7 +123,7 @@ static WebPImageInfo* CreateImageInfo(uint32_t x_offset, uint32_t y_offset,
|
||||
WebPImageInfo* image_info = NULL;
|
||||
|
||||
const int ok = is_lossless ?
|
||||
VP8LGetInfo(data, size, &width, &height) :
|
||||
VP8LGetInfo(data, size, &width, &height, NULL) :
|
||||
VP8GetInfo(data, size, size, &width, &height);
|
||||
if (!ok) return NULL;
|
||||
|
||||
@ -500,7 +500,7 @@ static WebPMuxError GetImageWidthHeight(const WebPChunk* const image_chunk,
|
||||
ok = (tag == kChunks[IDX_VP8].tag) ?
|
||||
VP8GetInfo(image_chunk->data_, image_chunk->payload_size_,
|
||||
image_chunk->payload_size_, &w, &h) :
|
||||
VP8LGetInfo(image_chunk->data_, image_chunk->payload_size_, &w, &h);
|
||||
VP8LGetInfo(image_chunk->data_, image_chunk->payload_size_, &w, &h, NULL);
|
||||
if (ok) {
|
||||
*width = w;
|
||||
*height = h;
|
||||
|
Reference in New Issue
Block a user