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:
Vikas Arora
2012-06-04 12:46:01 +05:30
parent 5f7bb3f53a
commit 069f903a08
6 changed files with 64 additions and 26 deletions

View File

@ -577,11 +577,12 @@ static VP8StatusCode GetFeatures(const uint8_t* data, size_t data_size,
return VP8_STATUS_BITSTREAM_ERROR;
}
} else {
int has_alpha;
// Validates raw VP8L data.
if (!VP8LGetInfo(data, data_size, width, height)) {
if (!VP8LGetInfo(data, data_size, width, height, &has_alpha)) {
return VP8_STATUS_BITSTREAM_ERROR;
}
features->has_alpha = 1;
features->has_alpha = has_alpha;
}
return VP8_STATUS_OK; // Return features from VP8 header.