video.rs' delivery (deliver, FrameSlot, Handoff, Buffers; video.rs:360-480) ported to GPUI: the decoder hands over its newest frame only, a converter thread turns it into an Arc<RenderImage> (BGRA, spike_common::bgra), the window takes the newest from a Latest in render and drops the one it replaces from every window's atlas (cx.drop_image). A RenderImage owns its pixels with no way back to them, so Buffers' reuse cannot be ported. Sources: --mode pipeline is LocalPreview with SourceId::Synthetic through the real VP8 encoder and decoder, as Video::demo; --mode raw hands I420 frames from memory to the converter; --mode static (added in this attempt) is the control: one picture, uploaded once, the window repainted every frame. --convert rgba measures voelin-media's conversion in place, --no-drop is the negative control for drop_image, --bench times RGBA against BGRA. measure.sh runs every case on the headless display, with damage-count beside it and the Slint app's demo stream for comparison. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
24 lines
593 B
TOML
24 lines
593 B
TOML
[package]
|
|
name = "spike-video"
|
|
description = "Spike 1: decoded video frames shown with img() as BGRA RenderImages."
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
license.workspace = true
|
|
publish.workspace = true
|
|
|
|
[dependencies]
|
|
anyhow = "1"
|
|
gpui-kit = { workspace = true }
|
|
log = { workspace = true }
|
|
spike-common = { workspace = true }
|
|
futures = "0.3"
|
|
serde_json = "1"
|
|
tokio = { version = "1", features = ["rt-multi-thread", "time"] }
|
|
voelin-core = { workspace = true }
|
|
voelin-media = { workspace = true }
|
|
yuv = { workspace = true }
|
|
|
|
[lints]
|
|
workspace = true
|