APNG Specification: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 105: Line 105:
                   +---------------------- bit 4: APNG_RENDER_OP_SKIP_FRAME
                   +---------------------- bit 4: APNG_RENDER_OP_SKIP_FRAME


Bits 5 through 7 are reserved and must be 0. Valid values for `dispose_op` are:
Bits 5 through 7 are reserved and must be 0.


     value:
Valid values for `dispose_op` are:
      0   APNG_RENDER_OP_DISPOSE_NONE
 
      1   APNG_RENDER_OP_DISPOSE_BACKGROUND
     value bit
      2   APNG_RENDER_OP_DISPOSE_PREVIOUS
    1      0     APNG_RENDER_OP_DISPOSE_NONE
    2      1     APNG_RENDER_OP_DISPOSE_BACKGROUND
    4      2     APNG_RENDER_OP_DISPOSE_PREVIOUS


* `APNG_RENDER_OP_DISPOSE_NONE`: no disposal is done on this frame before rendering the next; its contents are left on the canvas.  This is the default.
* `APNG_RENDER_OP_DISPOSE_NONE`: no disposal is done on this frame before rendering the next; its contents are left on the canvas.  This is the default.
Line 138: Line 140:


     byte
     byte
     0   sequence_number      (unsigned int)  Sequence number of the animation chunk, starting from 0
     0   sequence_number      (unsigned int)  Sequence number of the animation chunk, starting from 0
     4   frame_data            X bytes          Frame data for this frame
     4   frame_data            X bytes          Frame data for this frame


Each frame inherits every property except the width and the height specified by any critical or ancillary chunks before the first IDAT in the file.
Each frame inherits every property except the width and the height specified by any critical or ancillary chunks before the first IDAT in the file.
48

edits