vips 0.4.0 pins vips-sys 0.5.0 commit
8e8238df2f2221bf7b6b386f70b1d1f5989bef80
while publication is deferred. Existing lockfile updates are included, including
trybuild 1.0.125. Native CI is pinned to libvips 8.19.0-rc4 at
eef6e64bb3d956be6c3757873fa3e0631b65cd3e. Feature v8_19 requires RC4 for these
new capabilities. The default and v8_18 paths support stable native 8.18.8.
The native version string 8.19.0 cannot distinguish release candidates.
Upstream audit and merged PRs
RawLoadOptions controls half-size decoding and automatic brightness in file
and borrowed-buffer constructors. Half-size decoding can reduce decoder work
and memory. Actual RAW performance depends on the camera format and libraw.format reports pixel sample format. premultiply_uchar and
unpremultiply_uchar validate UCHAR input and retain the final alpha band with
maximum 255. These operations use integer output and can round differently
from floating-point processing.uhdr2scrgb keeps its Rust API and selects native vips_UHDR2scRGB under
v8_19. The v8_18 path uses the older symbol. UltraHDR round-trip tests cover
the new path with libultrahdr enabled.CICP correctness and native undefined behavior, mitigated. A regression
showed that an sRGB override on linear-tagged RGB [128,64,32] returned normalized
linear values [0.501961,0.250980,0.125490]. Expected sRGB inverse-transfer values
are approximately [0.215861,0.051269,0.014444]. RC4 constructs lookup tables from
original metadata locals despite receiving operation overrides. Absent or invalid
metadata can leave those locals uninitialized. The normal Rust entry validates
all four tags, their ranges, RGB identity matrix and full-range encoding.
cicp2scrgb_with_encoding creates a fresh lazy header and applies complete metadata
before conversion. Its tests check numerical results and preservation of input
metadata. This approach also avoids mutation of native operation-cache entries.
QOI source-loader issue, open. The previous thumbnail error remains reproducible in standalone C against RC4. Direct QOI decoding/encoding passes. Explicitly decoding QOI before applying decoded-image geometry is available.
Run cargo run --release --features v8_19 --example alpha_bench.
The benchmark disables native operation caching, evaluates pixels and compares
float premultiplication followed by UCHAR cast with native UCHAR processing.
It uses a 2048×2048 RGBA image, 16,777,216 output bytes, warm-up and 20 measured
samples per mode in ABBA order. Both routes return native-owned output.
On this local run, float-plus-cast median was 1.426292 ms, native UCHAR median 0.576333 ms, ratio 0.404, with 0.6% A1/A2 drift. The drift gate passed. This is about 59.6% lower elapsed time for this workload. Integer pixel rounding is checked within one level on the benchmark fixture. Separate tests cover opaque, half-transparent and zero-alpha pixels, original input preservation, output format and unsupported input formats. Service-level throughput and peak memory measurements remain future work.
The full RC4 tests include six 8.19 API tests, nine existing image/UltraHDR tests, initialization checks, eight compile-fail cases, four run-pass cases and 23 compile-only doctests. Clippy passes with warnings denied. Native 8.18.8 validates the legacy UHDR symbol path. The final Git-pinned dependency was fetched and verified with the full RC4 test suite, Clippy, rustdoc and the native 8.18.8 suite. Formatting and workflow lint also pass.
Priorities are an upstream CICP fix and broader colour fixtures, QOI source rewind, valid RAW samples, APNG frame timing and disposal coverage, typed HEIF/encoder options, safe streaming source/target ownership, native Windows RC4 validation, and full decode/resize/encode benchmarks with fixed codec and SIMD provenance.