WebPBitstreamFeatures: add has_animation field

Change-Id: I3e181ce463b0e4833bfd29f8052b21ebe0bca977
This commit is contained in:
James Zern
2013-03-20 12:41:29 -07:00
parent 4b956be095
commit ad452735c3
2 changed files with 12 additions and 8 deletions

View File

@ -392,9 +392,10 @@ WEBP_EXTERN(const WebPDecBuffer*) WebPIDecodedArea(
// Features gathered from the bitstream
struct WebPBitstreamFeatures {
int width; // Width in pixels, as read from the bitstream.
int height; // Height in pixels, as read from the bitstream.
int has_alpha; // True if the bitstream contains an alpha channel.
int width; // Width in pixels, as read from the bitstream.
int height; // Height in pixels, as read from the bitstream.
int has_alpha; // True if the bitstream contains an alpha channel.
int has_animation; // True if the bitstream is an animation.
// Unused for now:
int bitstream_version; // should be 0 for now. TODO(later)
@ -402,7 +403,7 @@ struct WebPBitstreamFeatures {
// recommended.
int rotate; // TODO(later)
int uv_sampling; // should be 0 for now. TODO(later)
uint32_t pad[3]; // padding for later use
uint32_t pad[2]; // padding for later use
};
// Internal, version-checked, entry point