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:
Pascal Massimino
2011-12-08 06:39:53 -08:00
parent 08e865822a
commit f62d2c9497
5 changed files with 7 additions and 14 deletions

View File

@ -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
}