Skip to content

Commit

Permalink
Merge "webp-container-spec: align anim pseudocode w/prose" into main
Browse files Browse the repository at this point in the history
  • Loading branch information
jzern authored and Gerrit Code Review committed Jul 29, 2024
2 parents 74be8e2 + c9dd9bd commit f28c837
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doc/webp-container-spec.txt
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,8 @@ _VP8X.field_ means the field in the 'VP8X' Chunk with the same description.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
VP8X.flags.hasAnimation MUST be TRUE
canvas ← new image of size VP8X.canvasWidth x VP8X.canvasHeight with
background color ANIM.background_color.
background color ANIM.background_color or
application-defined color.
loop_count ← ANIM.loopCount
dispose_method ← Dispose to background color
if loop_count == 0:
Expand Down Expand Up @@ -809,6 +810,7 @@ for loop = 0..loop_count - 1
bitstream subchunks not found in 'Frame Data' earlier MUST
be TRUE
frame_params.bitstream = bitstream_data
apply dispose_method.
render frame with frame_params.alpha and frame_params.bitstream
on canvas with top-left corner at (frame_params.frameX,
frame_params.frameY), using Blending method
Expand Down

0 comments on commit f28c837

Please sign in to comment.