mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 08:38:14 +01:00
snippet/uncompng: support APNG (Animated PNG)
This commit is contained in:
1 parent
742e8b78d9
commit
1ca418ef16
7 files changed
+1008
-106
No files matched your search
@@ -764,13 +764,12 @@ func (e *AnimationEncoder) EncodeFrame(
|
||||
fType |= frameTypeBitLastFrame
|
||||
}
|
||||
|
||||
ej := e.encodeFrameHeader(w, delayNumerator, delayDenominator)
|
||||
ej := e.encodeFrameHeader(delayNumerator, delayDenominator)
|
||||
return e.enc.encodeFramePayload(
|
||||
w, fType, &e.seqNum, e.depth, e.colorType, int(e.width), int(e.height), pix, stride, ej)
|
||||
}
|
||||
|
||||
func (e *AnimationEncoder) encodeFrameHeader(
|
||||
w io.Writer,
|
||||
delayNumerator uint16,
|
||||
delayDenominator uint16) int {
|
||||
|
||||
|
||||
Reference in new issue
Block a user