[workspace] resolver = "3" members = ["crates/engine", "crates/engine-hw", "crates/engine-audio", "crates/app"] # Vendored third-party (see [patch.crates-io]); not ours to build or test. exclude = [ "vendor/cros-libva", "vendor/cros-codecs", "vendor/mp4", ] [workspace.package] version = "0.1.0" edition = "2024" # Three upstream crates vendored verbatim except for one clearly marked fix each, # all blockers on this machine and all still unfixed upstream as of # 0.0.6/0.0.13/0.14: # cros-libva - fails to build against libva >= 1.23 headers # cros-codecs - probes VA-API with a 16x16 context that Mesa radeonsi refuses; # and creates every decode context as 8-bit 4:2:0, which no HEVC # Main 10 stream can decode into (its own TODO, its own answer); # and refuses an H.264 frame_num gap outright unless the stream # declared one, which fails every seek into an open-GOP Blu-ray # remux -- the gap is the *editor's*, made by restarting at a # random access point, so the patch fills it with the §8.2.5.2 # non-existing frames the loop right below it already builds. # It also has no HEVC *encoder* at all in 0.0.6: the seven # commits behind cros-codecs' own `hevc-vaapi-encoder` branch # (`codec/h265/{nalu_writer,synthesizer}`, the VPS/SPS/PPS # builders in `codec/h265/parser.rs`, `encoder/stateless/h265` # with its predictor and VA-API backend, and the H.264 NALU # writer's emulation-prevention fix that shares that code) are # applied here verbatim -- upstream work carried early, not a # local invention, and the H.265 half of what makes edith's # HEVC export run on the GPU. # And `video_frame/generic_dma_video_frame.rs` unmapped a DMA # buffer by issuing one `CLFLUSH` per *byte* -- 64 per cache # line, 3.1 million per 1080p picture, 6.2 ms of the 8.4 ms a # hardware export spent per frame (measured on radeonsi # 2026-08-13; upstream's own TODO asks for exactly this and # reports a race that the mfence pair, not the redundancy, was # always ordering). The same `drop` wrote its `munmap` as an # unconsumed `.map()`, so no mapping was ever released and an # encode session leaked 3 MB of address space per frame # (2.2 GB over a 719-frame export). Both are fixed in place # and marked LOCAL PATCH # mp4 - reads the `mp4a` sample entry as ISO only: the 8 bytes # QuickTime uses for version/revision/vendor are skipped as # reserved, so a version-1 SoundDescription's 16-byte tail # (version 2's 36-byte one) is taken for the first child box # and the `wave`-wrapped `esds` behind it is never seen -- an # AAC track "with no esds", every Resolve / Final Cut / `ffmpeg # -f mov` file silent. The patch is `Mp4aBox::read_box` and a # `WaveBox` fourcc; writing is untouched. # A sixth, `rusty_h264-common`, left the tree on 2026-09-12 with the last # `rusty_h264` seat: it was vendored only to declaw `rusty_alloc` -- its # authors' allocator installed itself as the process `#[global_allocator]` and # segfaulted the editor on a new thread's first allocation -- and once # `ec-h264` carried both H.264 seats there was nothing left to patch. # rusty_aac - a seventh vendor whose whole entry left with its last seat: # `ec-aac`, the family's own, took the *encode* seat on # 2026-09-13 after already carrying the decode one, and the # vendored crate went with them. Its patch had routed the # decoder's O(N^2) IMDCT through the encoder's N/4-point FFT # (`dsp::dct4`, 40x the matrix version) so 5.1 was playable at # all -- a fix for a crate the tree no longer carries. # oxideav-h265 - an eighth: `ec-h265` took the HEVC encode seat on # 2026-09-13, and the vendored tree (with its §7.4.3.2.1 # conformance-window patch) went with it -- ec-h265 pads and # writes the crop itself. # Drop `vendor/` entirely once released versions handle all three. [patch.crates-io] cros-libva = { path = "vendor/cros-libva" } cros-codecs = { path = "vendor/cros-codecs" } # Drops the `pub use proc_macro;` re-export (E0365 future-incompat, rustc # warns on every workspace build); nothing in the crate or its users names it. proc-macro-error2 = { path = "vendor/proc-macro-error2" } # Reads QuickTime version-1/2 sound sample descriptions (Resolve, Final Cut, # `ffmpeg -f mov`): the 16/36-byte block after samplerate and the `esds` # inside the `wave` wrapper. Stock 0.14 walks past both and calls the AAC # track esds-less, so a `.mov` opens without sound. mp4 = { path = "vendor/mp4" }