mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 00:55:11 +01:00
Update doc/std/image-decoders.md
This commit is contained in:
1 parent
385c34930a
commit
a04fda42d6
1 file changed
+8
-2
@@ -21,7 +21,7 @@ wuffs_base__io_buffer src = etc;
|
|||||||
wuffs_gif__decoder* dec = etc;
|
wuffs_gif__decoder* dec = etc;
|
||||||
|
|
||||||
wuffs_base__image_config ic;
|
wuffs_base__image_config ic;
|
||||||
const char* status = wuffs_gif__decoder__decode_image_config(dec, &ic, &src);
|
wuffs_base__status status = wuffs_gif__decoder__decode_image_config(dec, &ic, &src);
|
||||||
// Error checking (inspecting the status variable) is not shown, for brevity.
|
// Error checking (inspecting the status variable) is not shown, for brevity.
|
||||||
// See the example programs, listed below, for how to handle errors.
|
// See the example programs, listed below, for how to handle errors.
|
||||||
|
|
||||||
@@ -31,7 +31,7 @@ wuffs_base__pixel_buffer pb = etc;
|
|||||||
while (true) {
|
while (true) {
|
||||||
wuffs_base__frame_config fc;
|
wuffs_base__frame_config fc;
|
||||||
status = wuffs_gif__decoder__decode_frame_config(dec, &fc, &src);
|
status = wuffs_gif__decoder__decode_frame_config(dec, &fc, &src);
|
||||||
if (status == wuffs_base__note__end_of_data) {
|
if (status.repr == wuffs_base__note__end_of_data) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// Ditto re error checking.
|
// Ditto re error checking.
|
||||||
@@ -113,12 +113,18 @@ caller can go back to the `decode_image_config` method.
|
|||||||
|
|
||||||
## Implementations
|
## Implementations
|
||||||
|
|
||||||
|
- [std/bmp](/std/bmp)
|
||||||
- [std/gif](/std/gif)
|
- [std/gif](/std/gif)
|
||||||
|
- [std/nie](/std/nie)
|
||||||
|
- [std/png](/std/png)
|
||||||
|
- [std/wbmp](/std/wbmp)
|
||||||
|
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
|
- [example/convert-to-nia](/example/convert-to-nia)
|
||||||
- [example/gifplayer](/example/gifplayer)
|
- [example/gifplayer](/example/gifplayer)
|
||||||
|
- [example/imageviewer](/example/imageviewer)
|
||||||
|
|
||||||
Examples in other repositories:
|
Examples in other repositories:
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user