mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-28 14:38:21 +01:00
Merge "Container spec: clarify the background color field" into 0.3.0
This commit is contained in:
commit
3e7a13a008
@ -364,6 +364,7 @@ Future specifications MAY add more fields.
|
|||||||
An animation is controlled by ANIM and ANMF chunks.
|
An animation is controlled by ANIM and ANMF chunks.
|
||||||
|
|
||||||
ANIM Chunk:
|
ANIM Chunk:
|
||||||
|
{:#anim_chunk}
|
||||||
|
|
||||||
For an animated image, this chunk contains the _global parameters_ of the
|
For an animated image, this chunk contains the _global parameters_ of the
|
||||||
animation.
|
animation.
|
||||||
@ -380,10 +381,14 @@ animation.
|
|||||||
|
|
||||||
Background Color: 32 bits (_uint32_)
|
Background Color: 32 bits (_uint32_)
|
||||||
|
|
||||||
: The background color of the canvas in \[Blue, Green, Red, Alpha\] byte order.
|
: The default background color of the canvas in \[Blue, Green, Red, Alpha\]
|
||||||
The background color is the color used for those pixels of the canvas that are
|
byte order. This color is used to fill the unused space on the canvas around the
|
||||||
not covered by a frame. Background color is also used when disposal method is
|
frames, as well as the transparent pixels of the first frame. Background color
|
||||||
`1`.
|
is also used when disposal method is `1`.
|
||||||
|
|
||||||
|
**Note**: Viewers that have a preferred background against which to present the
|
||||||
|
images (web browsers, for example) should ignore this value and use their
|
||||||
|
preferred background color instead.
|
||||||
|
|
||||||
Loop Count: 16 bits (_uint16_)
|
Loop Count: 16 bits (_uint16_)
|
||||||
|
|
||||||
@ -451,8 +456,9 @@ the next frame on canvas:
|
|||||||
* `0`: Do not dispose. Keep the area used by this frame as it is and render
|
* `0`: Do not dispose. Keep the area used by this frame as it is and render
|
||||||
the next frame on top of it.
|
the next frame on top of it.
|
||||||
|
|
||||||
* `1`: Dispose to background color (also part of this chunk). Restore the
|
* `1`: Dispose to background color. Restore the area used by this frame to
|
||||||
area used by this frame to background color before rendering the next frame.
|
background color before rendering the next frame. The background color is
|
||||||
|
part of the [ANIM chunk](#anim_chunk).
|
||||||
|
|
||||||
Frame Data: _Chunk Size_ - `16` bytes
|
Frame Data: _Chunk Size_ - `16` bytes
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user