mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-16 20:19:40 +00:00
The renderer's image paint reads sizes from the header (vectorcraft-doc's header_size, craft-image-codecs' inspect_raster) and decodes through craft-image-codecs, the pixels as stored, for the formats it drew before (PNG, JPEG, GIF, WebP, TIFF and BMP). A test compares the pixels with the image crate's for each PNG color type and depth, palettes and 1-bit gray, GIF, WebP, TIFF, BMP and JPEG. The JPEG writer goes back to main's jpeg-encoder one: the craft-image-codecs version wrote a CMYK JPEG's resolution in a little-endian EXIF of another layout, failing the tests of main's #3084 fix. TIFF LZW strips stay on craft-stream-codecs, checked against weezl (now a dev-dependency): read back the same and never larger.
54 lines
2.1 KiB
TOML
54 lines
2.1 KiB
TOML
[package]
|
|
name = "vectorcraft-render"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
description = "VectorCraft renderer: document to pixels (vello_cpu backend)"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
vectorcraft-geom = { workspace = true }
|
|
vectorcraft-color = { workspace = true }
|
|
vectorcraft-doc = { workspace = true }
|
|
vectorcraft-text = { workspace = true }
|
|
vectorcraft-effects = { workspace = true }
|
|
vectorcraft-brush = { workspace = true }
|
|
vello_cpu = { workspace = true }
|
|
# Filter types (Gaussian blur, drop shadow) are not re-exported by vello_cpu 0.2.
|
|
vello_common = { version = "0.2", default-features = false }
|
|
image = { workspace = true }
|
|
craft-gif = { workspace = true }
|
|
craft-image-codecs = { workspace = true }
|
|
jpeg-encoder = { workspace = true }
|
|
craft-stream-codecs = { workspace = true }
|
|
flate2 = { workspace = true }
|
|
log = { workspace = true }
|
|
# Combining marks inside a lam-alef cluster (MIT OR Apache-2.0; already used by vectorcraft-text).
|
|
unicode-general-category = "1"
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
vello_cpu = { workspace = true, features = ["multithreading"] }
|
|
|
|
# The shared image store's budget (src/images.rs) follows the installed memory, which it reads with GlobalMemoryStatusEx
|
|
# through winsafe's safe wrappers over Win32 (MIT), which vectorcraft-cli's src/perf.rs also uses.
|
|
[target.'cfg(windows)'.dependencies]
|
|
winsafe = { version = "0.0.29", default-features = false, features = ["kernel"] }
|
|
|
|
[dev-dependencies]
|
|
# The TIFF LZW writer before craft-stream-codecs, the reference encode/tests_tiff.rs compares it with.
|
|
weezl = "0.2"
|
|
vectorcraft-testkit = { workspace = true }
|
|
# A variable font built in code (no font file is committed).
|
|
vectorcraft-text = { workspace = true, features = ["test-fonts"] }
|
|
# Live-effect plug-ins the cache tests install, written in WebAssembly text.
|
|
vectorcraft-plugins = { workspace = true }
|
|
wat = { workspace = true }
|
|
# Decoders the export tests read their files back with.
|
|
image = { workspace = true }
|
|
craft-tiff = { workspace = true }
|
|
craft-psd = { workspace = true }
|
|
proptest = { workspace = true }
|
|
serde_json = { workspace = true }
|