mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-21 08:47:28 +01:00
std/jpeg: add new package
This is just a placeholder decoder implementation (and all of the required plumbing) that produces a 1x1 reddish-purple image. Follow-up commits will add flesh to the metaphorical bones. Updates #42
This commit is contained in:
1 parent
bc86394bef
commit
0bbc4c0083
11 files changed
+1592
No files matched your search
@@ -71,6 +71,11 @@ DecodeImageCallbacks::SelectDecoder(uint32_t fourcc,
|
||||
return wuffs_gif__decoder::alloc_as__wuffs_base__image_decoder();
|
||||
#endif
|
||||
|
||||
#if !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__JPEG)
|
||||
case WUFFS_BASE__FOURCC__JPEG:
|
||||
return wuffs_jpeg__decoder::alloc_as__wuffs_base__image_decoder();
|
||||
#endif
|
||||
|
||||
#if !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__NIE)
|
||||
case WUFFS_BASE__FOURCC__NIE:
|
||||
return wuffs_nie__decoder::alloc_as__wuffs_base__image_decoder();
|
||||
|
||||
@@ -89,6 +89,7 @@ class DecodeImageCallbacks {
|
||||
// WUFFS_CONFIG__MODULE__ETC).
|
||||
// - WUFFS_BASE__FOURCC__BMP
|
||||
// - WUFFS_BASE__FOURCC__GIF
|
||||
// - WUFFS_BASE__FOURCC__JPEG
|
||||
// - WUFFS_BASE__FOURCC__NIE
|
||||
// - WUFFS_BASE__FOURCC__PNG
|
||||
// - WUFFS_BASE__FOURCC__TGA
|
||||
|
||||
Reference in new issue
Block a user