Alpha flag fix for lossless.

- Make sure alpha flag is set in case of a lossless file with VP8X chunk.
  The semantic of ALPHA_FLAG changes with this: it means the images
  contain alpha (rather than ALPH chunk in particular).
- Update the mux container spec to add 1-line description of alpha
  flag.
- Rename "HasLosslessImages()" to "MuxHasLosslessImages()", and other
  similar function renames.
- Rename FeatureFlags to WebPFeatureFlags
- Elaborated a comment for a special case.
- A misc comment fix.

Change-Id: If212ccf4338c125b4c71c10bf281a51b3ba7ff45
This commit is contained in:
Urvang Joshi
2012-05-23 15:01:25 +05:30
parent 98ec717f1e
commit c975c44ea5
6 changed files with 60 additions and 28 deletions

View File

@ -13,7 +13,7 @@ end of this file.
WebP Container Specification
============================
_Working Draft, v0.2, 20120207_
_Working Draft, v0.3, 20120523_
* TOC placeholder
@ -271,7 +271,7 @@ Extended WebP file header:
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| ChunkHeader('VP8X') |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Rsrv |M|I|A|T| Reserved |
| Rsrv |AL|M|I|A|T| Reserved |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Canvas Width |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
@ -295,11 +295,15 @@ Metadata (M): 1 bit
: Set if the file contains a 'META' chunk.
Reserved (Rsrv): 4 bits
Alpha (AL): 1 bit
: Set if the file contains images with transparency information ("alpha").
Reserved (Rsrv): 3 bits
: SHOULD be `0`.
Reserved: 16 bits
Reserved: 24 bits
: SHOULD be `0`.