Demux: WebPIterator now also denotes if the frame has alpha.

Change-Id: Ia300385a49c1ee5afa8f114f2560ee8d1c7664bb
This commit is contained in:
Urvang Joshi
2013-07-18 19:41:38 -07:00
parent 6df743a33e
commit a03c3516cb
3 changed files with 15 additions and 16 deletions

View File

@ -53,7 +53,7 @@
extern "C" {
#endif
#define WEBP_DEMUX_ABI_VERSION 0x0100 // MAJOR(8b) + MINOR(8b)
#define WEBP_DEMUX_ABI_VERSION 0x0101 // MAJOR(8b) + MINOR(8b)
// Note: forward declaring enumerations is not allowed in (strict) C and C++,
// the types are left here for reference.
@ -136,8 +136,9 @@ struct WebPIterator {
// may still be decoded with the WebP incremental decoder.
WebPData fragment; // The frame or fragment given by 'frame_num' and
// 'fragment_num'.
int has_alpha; // True if the frame or fragment contains transparency.
uint32_t pad[4]; // padding for later use.
uint32_t pad[3]; // padding for later use.
void* private_; // for internal use only.
};