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

@ -20,10 +20,11 @@
// VP8L related constants.
#define VP8L_SIGNATURE_SIZE 1 // VP8L signature size.
#define VP8L_MAGIC_BYTE 0x64 // VP8L signature byte.
#define VP8L_MAGIC_BYTE_RSVD 0x65 // VP8L reserved signature byte.
#define VP8L_MAGIC_BYTE 0x2f // VP8L signature byte.
#define VP8L_IMAGE_SIZE_BITS 14 // Number of bits used to store
// width and height.
#define VP8L_VERSION_BITS 3 // 3 bits reserved for version.
#define VP8L_VERSION 0 // version 0
#define MAX_PALETTE_SIZE 256
#define MAX_CACHE_BITS 11