mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-24 08:52:18 +01:00
std/thumbhash: add new package
This commit is contained in:
1 parent
aa28bb076c
commit
b8740d8881
15 files changed
+1812
-2
No files matched your search
@@ -106,6 +106,11 @@ DecodeImageCallbacks::SelectDecoder(uint32_t fourcc,
|
||||
return wuffs_tga__decoder::alloc_as__wuffs_base__image_decoder();
|
||||
#endif
|
||||
|
||||
#if !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__THUMBHASH)
|
||||
case WUFFS_BASE__FOURCC__TH:
|
||||
return wuffs_thumbhash__decoder::alloc_as__wuffs_base__image_decoder();
|
||||
#endif
|
||||
|
||||
#if !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__WBMP)
|
||||
case WUFFS_BASE__FOURCC__WBMP:
|
||||
return wuffs_wbmp__decoder::alloc_as__wuffs_base__image_decoder();
|
||||
|
||||
@@ -83,8 +83,9 @@ class DecodeImageCallbacks {
|
||||
// of the FOO file format is optional (for each value of FOO) and depends on
|
||||
// the corresponding module to be enabled at compile time (i.e. #define'ing
|
||||
// WUFFS_CONFIG__MODULE__FOO).
|
||||
//
|
||||
// - WUFFS_BASE__FOURCC__BMP
|
||||
// - WUFFS_BASE__FOURCC__ETC
|
||||
// - WUFFS_BASE__FOURCC__ETC2
|
||||
// - WUFFS_BASE__FOURCC__GIF
|
||||
// - WUFFS_BASE__FOURCC__JPEG
|
||||
// - WUFFS_BASE__FOURCC__NIE
|
||||
@@ -92,8 +93,13 @@ class DecodeImageCallbacks {
|
||||
// - WUFFS_BASE__FOURCC__PNG
|
||||
// - WUFFS_BASE__FOURCC__QOI
|
||||
// - WUFFS_BASE__FOURCC__TGA
|
||||
// - WUFFS_BASE__FOURCC__TH
|
||||
// - WUFFS_BASE__FOURCC__WBMP
|
||||
// - WUFFS_BASE__FOURCC__WEBP
|
||||
//
|
||||
// The FOOBAR in WUFFS_BASE__FOURCC__FOBA is limited to four characters, but
|
||||
// the FOOBAR in the corresponding WUFFS_CONFIG__MODULE__FOOBAR macro might
|
||||
// be fuller and longer. For example, NPBM / NETPBM or TH / THUMBHASH.
|
||||
virtual wuffs_base__image_decoder::unique_ptr //
|
||||
SelectDecoder(uint32_t fourcc,
|
||||
wuffs_base__slice_u8 prefix_data,
|
||||
|
||||
Reference in new issue
Block a user