Gitweb links:
...log
http://git.netsurf-browser.org/libnsgif.git/shortlog/464bec1bbec32978a41b0a0f011711df428117c3
...commit
http://git.netsurf-browser.org/libnsgif.git/commit/464bec1bbec32978a41b0a0f011711df428117c3
...tree
http://git.netsurf-browser.org/libnsgif.git/tree/464bec1bbec32978a41b0a0f011711df428117c3
The branch, master has been updated
via 464bec1bbec32978a41b0a0f011711df428117c3 (commit)
from 41d8bcf828af44c775454e46ce751f9ac1a3684e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commitdiff
http://git.netsurf-browser.org/libnsgif.git/commit/?id=464bec1bbec32978a41b0a0f011711df428117c3
commit 464bec1bbec32978a41b0a0f011711df428117c3
Author: Michael Drake <[email protected]>
Commit: Michael Drake <[email protected]>
Docs: Add note about source data lifetime to README.
diff --git a/README.md b/README.md
index d821ac6..cb380c3 100644
--- a/README.md
+++ b/README.md
@@ -54,6 +54,11 @@ function has returned `NSGIF_OK` it has enough data to
display at least one
frame. The early frames can be decoded before the later frames are scanned.
Frames have to be scanned before they can be decoded.
+> **Note**: The client must not free the data until after calling
+> `nsgif_destroy()`. You can move the data, e.g. if you realloc to a bigger
+> buffer. Just be sure to call `nsgif_data_scan()` again with the new pointer
+> before making any other calls against that nsgif object.
+
To decode the frames, you can call `nsgif_get_info()` to get the frame_count,
and then call `nsgif_frame_decode()` for each frame, and manage the animation,
and non-displayable frames yourself, or you can use the helper function,
-----------------------------------------------------------------------
Summary of changes:
README.md | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/README.md b/README.md
index d821ac6..cb380c3 100644
--- a/README.md
+++ b/README.md
@@ -54,6 +54,11 @@ function has returned `NSGIF_OK` it has enough data to
display at least one
frame. The early frames can be decoded before the later frames are scanned.
Frames have to be scanned before they can be decoded.
+> **Note**: The client must not free the data until after calling
+> `nsgif_destroy()`. You can move the data, e.g. if you realloc to a bigger
+> buffer. Just be sure to call `nsgif_data_scan()` again with the new pointer
+> before making any other calls against that nsgif object.
+
To decode the frames, you can call `nsgif_get_info()` to get the frame_count,
and then call `nsgif_frame_decode()` for each frame, and manage the animation,
and non-displayable frames yourself, or you can use the helper function,
--
NetSurf GIF Decoder
_______________________________________________
netsurf-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]