feat(palette-extract): 补 bmp 解码器(复审 r1 p2-2,定案加)
M73 的 Windows 壁纸探测只读注册表/.theme 里的路径,不筛扩展名,.bmp 壁纸真会出现; image 的 bmp 是独立 feature 且无额外传递依赖(bmp = []),代价≈0。 - features 加 "bmp",Cargo.toml 与 lib.rs 注释的口径对齐(原来注释说支持 bmp 但没开) - 新增 bmp_is_supported(真编一张 BMP 再解码取色)
This commit is contained in:
1 parent
2ce394fbfc
commit
579f3ae271
3 files changed
+29
-5
No files matched your search
@@ -40,10 +40,12 @@
|
||||
//!
|
||||
//! 许可:`image` 是 `MIT OR Apache-2.0`,在 `deny.toml` 白名单内(`[licenses].allow`)。
|
||||
//!
|
||||
//! ## 体积影响(`image` 只开 png + jpeg,关掉 default-features)
|
||||
//! ## 体积影响(`image` 只开 png + jpeg + bmp,关掉 default-features)
|
||||
//!
|
||||
//! 拉进的传递依赖就这几个:`png`(+ `fdeflate`/`miniz_oxide`/`crc32fast`/`flate2` 已在树里)、
|
||||
//! `zune-jpeg` + `zune-core`、`byteorder-lite`、`num-traits`、`moxcms`/`pxfm`(色彩转换)。
|
||||
//! `bmp` 是 `image` 的独立 feature 且**不带任何传递依赖**(`bmp = []`),加它只是因为
|
||||
//! M73 的 Windows 壁纸探测不筛扩展名、`.bmp` 壁纸真会出现。
|
||||
//! 关掉的默认特性里有 `rayon`(省一个线程池)、`avif`/`ravif`(最大的一个,编解码器整套)、
|
||||
//! `webp`/`tiff`/`gif`/`exr`/`qoi`/`hdr`/`dds`/`ff`。实测增量见 M87 报告(`cargo tree` 前后对比)。
|
||||
//!
|
||||
|
||||
Reference in new issue
Block a user