modify WebPParseHeaders to allow reuse by GetFeatures

moves the implementation to ParseHeadersInternal. this also allows
decoding to start at a VP8X sub-chunk, e.g. 'ALPH'.

Change-Id: I06791f87d90f888de32746ecb02705e4b0ff227a
This commit is contained in:
James Zern
2012-06-08 21:50:45 +00:00
parent e2ffe446bd
commit fb4943bdf9
3 changed files with 100 additions and 87 deletions

View File

@ -25,6 +25,7 @@
// width and height.
#define VP8L_VERSION_BITS 3 // 3 bits reserved for version.
#define VP8L_VERSION 0 // version 0
#define VP8L_FRAME_HEADER_SIZE 5 // Size of the VP8L frame header.
#define MAX_PALETTE_SIZE 256
#define MAX_CACHE_BITS 11