mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-13 06:24:27 +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:
@ -80,14 +80,7 @@ int VP8SetError(VP8Decoder* const dec,
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
int VP8GetInfo(const uint8_t* data, uint32_t data_size, uint32_t chunk_size,
|
||||
int* width, int* height, int* has_alpha) {
|
||||
// Alpha-data is stored outside VP8 data and is inferred from VP8X chunk.
|
||||
// So, this function always returns *has_alpha = 0. This value should NOT
|
||||
// be used.
|
||||
if (has_alpha != NULL) {
|
||||
*has_alpha = 0;
|
||||
}
|
||||
|
||||
int* width, int* height) {
|
||||
if (data_size < 10) {
|
||||
return 0; // not enough data
|
||||
}
|
||||
|
Reference in New Issue
Block a user