mirror of
https://github.com/storytold/lightcraft.git
synced 2026-12-06 05:53:22 -05:00
* Decode AVIF through shared image codecs * Include JPEG encoder distribution notices * Exercise AVIF HDR decoding through public API * Preserve AVIF source bit depth * Test AVIF alpha through public entrypoints * Update AVIF round trip for supported decode * Document native AVIF decode support * Clarify import feature gates * Keep RAW fixtures valid under shared container and strip bounds * Include sample-to-chunk mappings in CR3 fixtures * Find Similar test: a photo read from memory isn't a missing read (#3823) The second search after a stop plans its reads after frames in which the loupe and filmstrip decoded photos; those are measured from memory (source_ref takes the cached source), so the drive sees fewer than 12 reads on a loaded machine. Check instead that no file is read twice, the searched photo above all; the answer still needs every photo's signature. * Find Similar test: every photo is measured after the resumed search * Bound AVIF padded picture storage and preserve integer source flag * Size the AVIF picture-store budget for the stored canvas, not the clap-cropped size * Attribute the AVIF lossless decode fixture * Keep the AVIF clap test helpers free of unwrap for the codecs lint gate * lightcraft: keep the newer craft-cms pin after merging main --------- Co-authored-by: Bruno-Alumn <[email protected]> Co-authored-by: FredApps <[email protected]>
1.1 KiB
1.1 KiB
AVIF decode fixtures
Small AVIF files from an independent encoder (libaom through FFmpeg 7.1), for src/codecs/avif_decode.rs.
quad-source.rgb: the 33×17 source, raw RGB24 four-colour quadrants (red, green, blue, near-white).quad-420-bt709.avif: 8-bit 4:2:0, limited range, BT.709 matrix, odd size (FFmpeg leaves the primaries and transfer unspecified):ffmpeg -f rawvideo -pix_fmt rgb24 -s 33x17 -i quad-source.rgb -c:v libaom-av1 -crf 12 -still-picture 1 -pix_fmt yuv420p -colorspace bt709 -color_primaries bt709 -color_trc iec61966-2-1 -color_range tv quad-420-bt709.avifquad-420-bt709.dav1d.yuv: that file's AV1 picture as libdav1d decodes it, planar 8-bit 4:2:0 (Y, then Cb, then Cr):ffmpeg -c:v libdav1d -i quad-420-bt709.avif -f rawvideo -pix_fmt yuv420p quad-420-bt709.dav1d.yuvquad-444-gbr-lossless.avif: lossless 8-bit 4:4:4 with the identity (GBR) matrix, full range:ffmpeg -f rawvideo -pix_fmt rgb24 -s 33x17 -i quad-source.rgb -c:v libaom-av1 -crf 0 -still-picture 1 -pix_fmt gbrp -colorspace rgb -color_range pc quad-444-gbr-lossless.avif. It decodes toquad-source.rgbexactly.